Competitor Tracker & Co. Docs

Register a webhook for the current organization.

Register a webhook for the current organization — Competitor Tracker & Co. API reference for POST /v1/dispatches/webhooks: request parameters, request body.

Required role: admin or higher (organization-level).

Required scope: dispatches:write (for both OAuth2 tokens and API keys).

POST
/v1/dispatches/webhooks

Authorization

X-API-Key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://api.competitortracker.io/v1/dispatches/webhooks" \  -H "Content-Type: application/json" \  -d '{    "url": "https://hooks.example.com/competitor-tracker"  }'
{
  "id": "string",
  "url": "string",
  "isActive": true,
  "secret": "string",
  "createdAt": "string"
}
{
  "code": "string",
  "message": "string",
  "resolution": "string"
}
{
  "code": "string",
  "message": "string",
  "resolution": "string"
}