Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Webhooks

You can manage webhooks programmatically through the API.

List Webhooks for a Project

curl https://your-telebugs-instance.com/api/telebugs/v1/projects/PROJECT_ID/webhooks \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Create a Webhook

curl https://your-telebugs-instance.com/api/telebugs/v1/projects/PROJECT_ID/webhooks \
  -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "webhook": {
      "url": "https://example.com/webhook",
      "events": ["group.resolved", "group.muted"],
      "enabled": true
    }
  }'

Update a Webhook

curl https://your-telebugs-instance.com/api/telebugs/v1/projects/PROJECT_ID/webhooks/WEBHOOK_ID \
  -X PATCH \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "webhook": {
      "enabled": false
    }
  }'

Delete a Webhook

curl https://your-telebugs-instance.com/api/telebugs/v1/projects/PROJECT_ID/webhooks/WEBHOOK_ID \
  -X DELETE \
  -H "Authorization: Bearer YOUR_API_KEY"

Send a Test Webhook

curl https://your-telebugs-instance.com/api/telebugs/v1/projects/PROJECT_ID/webhooks/WEBHOOK_ID/test \
  -X POST \
  -H "Authorization: Bearer YOUR_API_KEY"