Skip to main content
POST
Go (SDK)

Authorizations

Authorization
string
header
required

Send Authorization: Bearer , using an MKA1 API key for automation or an OAuth API access token for a signed-in application. Use a dynamic security callback to refresh OAuth access tokens. Browser session-only operations still require their declared cookie.

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