Python (SDK)
Prompts
Create a new version
Creates a new version of a prompt. The new version automatically becomes the active version. Fields not provided are carried forward from the previous version.
POST
Python (SDK)
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.
Authorizations
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>.
Headers
Optional external end-user identifier forwarded by the API gateway.
Path Parameters
Parent prompt identifier
Body
application/json
The prompt template text
Required string length:
1 - 100000Response
201 - application/json
OK
Unique version identifier
Parent prompt identifier
Version number
Required range:
-9007199254740991 <= x <= 9007199254740991Object type
The prompt template text with {{variable}} placeholders
Timestamp when this version was created