from mka1 import SDK
with SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:
res = sdk.llm.prompts.get(id="prompt_aa87e2b1112a455b8deabed784372198")
# Handle response
print(res){
"id": "prompt_aa87e2b1112a455b8deabed784372198",
"object": "prompt",
"name": "Customer Support Classifier",
"description": "Classifies incoming customer messages by intent",
"active_version": 1,
"latest_version": 1,
"metadata": {},
"created_at": "2026-03-15T10:30:00Z",
"updated_at": "2026-03-15T10:30:00Z",
"active_template": "Classify the following customer message into one of these categories: {{categories}}\n\nMessage: {{message}}"
}Retrieves a prompt by its ID, including the active template. Pass version to get a specific version’s template. Pass variables as a JSON-encoded map to render the template with substitutions.
from mka1 import SDK
with SDK(
bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
) as sdk:
res = sdk.llm.prompts.get(id="prompt_aa87e2b1112a455b8deabed784372198")
# Handle response
print(res){
"id": "prompt_aa87e2b1112a455b8deabed784372198",
"object": "prompt",
"name": "Customer Support Classifier",
"description": "Classifies incoming customer messages by intent",
"active_version": 1,
"latest_version": 1,
"metadata": {},
"created_at": "2026-03-15T10:30:00Z",
"updated_at": "2026-03-15T10:30:00Z",
"active_template": "Classify the following customer message into one of these categories: {{categories}}\n\nMessage: {{message}}"
}Documentation Index
Fetch the complete documentation index at: https://docs.mka1.com/llms.txt
Use this file to discover all available pages before exploring further.
Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.
Optional external end-user identifier forwarded by the API gateway.
Prompt identifier
Version to retrieve — defaults to active version
-9007199254740991 <= x <= 9007199254740991JSON-encoded key-value map to render into the template, e.g. {"name":"Alice"}
OK
Unique prompt identifier
Object type
Human-readable prompt name
Currently active version number
-9007199254740991 <= x <= 9007199254740991Most recent version number
-9007199254740991 <= x <= 9007199254740991Custom metadata key-value pairs
Show child attributes
Timestamp when the prompt was created
Timestamp when the prompt was last updated
The template text for the requested version
Detailed description of the prompt
The template with variables substituted — only present when variables are provided
Was this page helpful?