Skip to main content
POST
Python (SDK)

Authorizations

Authorization
string
header
required

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

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Body

application/json
key
string
required
Pattern: ^[a-z0-9][a-z0-9-]{0,62}$
name
string
required

Response

Created environment

created_at
string<date-time>
required
evaluation_key_configured
boolean
required

Whether the environment has an active evaluation key.

evaluation_key_hint
string | null
required

The active key's prefix plus the first and last four characters of its payload, for display. Null when no key is configured, or when the active key was generated before hints were recorded.

Pattern: ^mka1_key_[A-Za-z0-9_-]{4}\.\.\.[A-Za-z0-9_-]{4}$
Example:

"mka1_key_Z3sV...kwxY"

id
string<uuid>
required
key
string
required
name
string
required
updated_at
string<date-time>
required