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

Authorizations

x-api-key
string
header
required

Chave de API para autenticação. Obtenha sua chave em https://app.timelyai.com.br/developers

Path Parameters

id
string<uuid>
required

ID único do recurso (UUID)

Body

application/json
webhooks
object[]

Lista de webhooks configurados

Response

Webhooks atualizados

data
object