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
keyId
string
required
Minimum string length: 1
scopes
string[]
required
Minimum array length: 1
Minimum string length: 1
name
string
Required string length: 1 - 120
rateLimitEnabled
boolean
rateLimitTimeWindow
rateLimitMax
number
Required range: x >= 1

Response

Updated

id
string
required
userId
string
required
userType
enum<string>
required
Available options:
user,
service-account
orgId
string | null
required
teamId
string | null
required
scopes
string[]
required
name
string | null
key
string
prefix
string | null
start
string | null
expiresAt
string | null