Pular para o conteúdo principal
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.

Corpo

application/json
name
string
obrigatório
Required string length: 1 - 120
model
string
obrigatório
Minimum string length: 1
Exemplo:

"functionary-pt"

description
string | null
Maximum string length: 2000
instructions
string | null
Maximum string length: 20000
tools
object[]
tool_choice
parallel_tool_calls
boolean
padrão:true
max_tool_calls
integer | null
Intervalo obrigatório: 1 <= x <= 300
text
object | null
reasoning
object | null
metadata
object

Resposta

Agente criado.

object
enum<string>
obrigatório
Opções disponíveis:
agent
id
string
obrigatório
name
string
obrigatório
description
string | null
obrigatório
model
string
obrigatório
Exemplo:

"functionary-pt"

instructions
string | null
obrigatório
tools
object[]
obrigatório
tool_choice
obrigatório
parallel_tool_calls
boolean
obrigatório
max_tool_calls
integer | null
obrigatório
text
object | null
obrigatório
reasoning
object | null
obrigatório
metadata
object
obrigatório
version
integer
obrigatório

Versão da configuração atual. Incrementada a cada atualização ou reversão.

Intervalo obrigatório: x >= 1
created_at
string<date-time>
obrigatório
updated_at
string<date-time>
obrigatório
deleted_at
string<date-time> | null
obrigatório