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 '
{
"webhooks": [
{
"url": "https://exemplo.com/webhook",
"events": [
"conversation.started",
"conversation.ended",
"message.received"
],
"headers": {},
"is_active": true
}
]
}
'{
"data": {
"webhooks": [
{
"url": "https://exemplo.com/webhook",
"events": [
"conversation.started",
"conversation.ended",
"message.received"
],
"headers": {},
"is_active": true
}
]
}
}Atualiza os webhooks de um agente. Requer scope agents:write.
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 '
{
"webhooks": [
{
"url": "https://exemplo.com/webhook",
"events": [
"conversation.started",
"conversation.ended",
"message.received"
],
"headers": {},
"is_active": true
}
]
}
'{
"data": {
"webhooks": [
{
"url": "https://exemplo.com/webhook",
"events": [
"conversation.started",
"conversation.ended",
"message.received"
],
"headers": {},
"is_active": true
}
]
}
}Chave de API para autenticação. Obtenha sua chave em https://app.timelyai.com.br/developers
ID único do recurso (UUID)
Lista de webhooks configurados
Show child attributes
Webhooks atualizados
Show child attributes