cURL
curl --request POST \ --url https://devtune.ai/api/v2/projects/{projectId}/webhooks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "url": "<string>", "events": [ "search-tracking.completed" ] } '
{ "data": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "url": "<string>", "events": [ "<string>" ], "isActive": true, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "secret": "<string>" }, "meta": { "timestamp": "2023-11-07T05:31:56Z", "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } }
Registers a new webhook subscription. Returns the subscription including the signing secret (only shown once).
API key with dtk_live_ prefix. Obtain from Settings > API Keys.
URL to POST webhook payloads to
2048
Event types to subscribe to
1
search-tracking.completed
visibility.changed
actions.generated
Webhook created
Show child attributes