import { SDK } from "@meetkai/mka1";
const sdk = new SDK({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await sdk.llm.prompts.getVersion({
id: "prompt_aa87e2b1112a455b8deabed784372198",
version: 1,
});
console.log(result);
}
run();{
"id": "pver_bb98f3c2223b566c9dfbcef895483209",
"prompt_id": "prompt_aa87e2b1112a455b8deabed784372198",
"version": 1,
"object": "prompt.version",
"template": "Classify the following customer message into one of these categories: {{categories}}\n\nMessage: {{message}}",
"created_at": "2026-03-15T10:30:00Z"
}Retrieves a specific version of a prompt by version number.
import { SDK } from "@meetkai/mka1";
const sdk = new SDK({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await sdk.llm.prompts.getVersion({
id: "prompt_aa87e2b1112a455b8deabed784372198",
version: 1,
});
console.log(result);
}
run();{
"id": "pver_bb98f3c2223b566c9dfbcef895483209",
"prompt_id": "prompt_aa87e2b1112a455b8deabed784372198",
"version": 1,
"object": "prompt.version",
"template": "Classify the following customer message into one of these categories: {{categories}}\n\nMessage: {{message}}",
"created_at": "2026-03-15T10:30:00Z"
}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>.
Parent prompt identifier
Version number to retrieve
-9007199254740991 <= x <= 9007199254740991OK
Unique version identifier
Parent prompt identifier
Version number
-9007199254740991 <= x <= 9007199254740991Object type
The prompt template text with {{variable}} placeholders
Timestamp when this version was created
Was this page helpful?