Skip to main content
PUT
/
v1
/
agents
/
{id}
/
webhooks
Update agent webhooks
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>"
  }
}

Authorizations

x-api-key
string
header
required

API key obtained from the dashboard

Path Parameters

id
string<uuid>
required

Agent ID

Body

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

Response

Webhooks updated

data
object