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

agent_id
string
obrigatório

Corpo

application/json
schedule
object
obrigatório
input
obrigatório
Required string length: 1 - 20000
name
string
Required string length: 1 - 120
conversation
any

Valor JSON arbitrário.

previous_response_id
string
context_management
object[]

Estratégias de gerenciamento de contexto a serem aplicadas durante a geração de respostas executadas por agentes. Suporta compactação, que resume o histórico de conversa mais antigo quando o contexto excede um limite de tokens.

metadata
object

Resposta

Agenda criada.

object
enum<string>
obrigatório
Opções disponíveis:
agent.schedule
id
string
obrigatório
agent_id
string
obrigatório
name
string | null
obrigatório
status
enum<string>
obrigatório
Opções disponíveis:
active,
paused,
completed,
deleted
schedule
object
obrigatório
input
any
obrigatório

Valor JSON arbitrário.

conversation
any | null
obrigatório

Valor JSON arbitrário.

previous_response_id
string | null
obrigatório
context_management
object[] | null
obrigatório
metadata
object | null
obrigatório
temporal_schedule_id
string | null
obrigatório
last_run_at
string<date-time> | null
obrigatório
last_run_id
string | null
obrigatório
run_count
integer
obrigatório
created_at
string<date-time>
obrigatório
updated_at
string<date-time>
obrigatório
deleted_at
string<date-time> | null
obrigatório