Pular para o conteúdo principal
PUT
/
v1
/
agents
/
{id}
/
webhooks
Atualizar webhooks do agente
curl --request PUT \
  --url https://api.timelyai.com.br/v1/agents/{id}/webhooks \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "on_message": "<string>",
  "on_conversation_start": "<string>",
  "on_conversation_end": "<string>"
}
'
{
  "data": {
    "on_message": "<string>",
    "on_conversation_start": "<string>",
    "on_conversation_end": "<string>"
  }
}

Autorizações

x-api-key
string
header
obrigatório

Chave de API obtida no dashboard

Parâmetros de caminho

id
string<uuid>
obrigatório

ID do agente

Corpo

application/json
on_message
string<uri>
on_conversation_start
string<uri>
on_conversation_end
string<uri>

Resposta

Webhooks atualizados

data
object