Skip to main content
POST
Python (SDK)

Autorizações

Authorization
string
header
obrigatório

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>.

Cabeçalhos

X-On-Behalf-Of
string

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

Parâmetros de caminho

server_id
string
obrigatório

Corpo

application/json
name
string | null
Required string length: 1 - 255
auth_type
enum<string>
Opções disponíveis:
bearer,
authorization,
headers,
none
bearer_token
string
Required string length: 1 - 8192
authorization
string
Required string length: 1 - 8192
headers
object
expires_at
string<date-time> | null

Resposta

201 - application/json

OK

id
string
obrigatório
object
any
obrigatório
server_id
string
obrigatório
name
string | null
obrigatório
auth_type
enum<string>
obrigatório
Opções disponíveis:
bearer,
authorization,
headers,
none
authorization_preview
string | null
obrigatório
header_names
string[]
obrigatório
expires_at
string<date-time> | null
obrigatório
last_used_at
string<date-time> | null
obrigatório
created_at
string<date-time>
obrigatório
updated_at
string<date-time>
obrigatório
revoked_at
string<date-time> | null
obrigatório