Pular para o conteúdo principal
PATCH
/
api
/
v1
/
campaigns
/
{campaign_id}
/
webhooks
/
{webhook_id}
/
toggle
curl -X PATCH "https://app.talkover.ai/api/v1/campaigns/campaign-uuid/webhooks/webhook-uuid-1/toggle" \
  -H "Authorization: Bearer talq_your_environment_token_here"
{
  "success": true,
  "message": "Webhook disabled",
  "data": {
    "id": "webhook-uuid-1",
    "enabled": false
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.talkover.ai/llms.txt

Use this file to discover all available pages before exploring further.

Alternar Webhook da Campanha

Alterna um webhook de campanha entre habilitado e desabilitado. Desabilitar interrompe todas as entregas sem excluir a configuração.

Endpoint

PATCH /api/v1/campaigns/{campaign_id}/webhooks/{webhook_id}/toggle

Parâmetros de Caminho

campaign_id
string
obrigatório
UUID da campanha.
webhook_id
string
obrigatório
UUID do webhook.

Cabeçalhos da Requisição

Authorization
string
obrigatório
Token Bearer. Formato: Bearer talq_your_environment_token_here

Exemplos

curl -X PATCH "https://app.talkover.ai/api/v1/campaigns/campaign-uuid/webhooks/webhook-uuid-1/toggle" \
  -H "Authorization: Bearer talq_your_environment_token_here"

Resposta

{
  "success": true,
  "message": "Webhook disabled",
  "data": {
    "id": "webhook-uuid-1",
    "enabled": false
  }
}