Create a webhook subscription
const url = 'https://api.ultimateteam.ai/api/v1/integrations/webhooks';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/json'}, body: '{"event_filters":["example"],"metadata":{},"platform":"example","webhook_url":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.ultimateteam.ai/api/v1/integrations/webhooks \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <X-API-Key>' \ --data '{ "event_filters": [ "example" ], "metadata": {}, "platform": "example", "webhook_url": "example" }'Creates a new webhook subscription for the tenant. Auto-generates an HMAC signing secret. The secret is only returned in full on creation – subsequent reads will mask it.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Request body for creating a webhook subscription.
Attributes: platform: Integration platform (zapier, make, custom). webhook_url: The HTTPS URL to deliver events to. event_filters: List of event type strings to subscribe to. metadata: Optional metadata dict.
object
Event types to filter (empty = all events)
Optional metadata
object
Platform: zapier, make, or custom
HTTPS webhook URL
Examplegenerated
{ "event_filters": [ "example" ], "metadata": {}, "platform": "example", "webhook_url": "example"}Responses
Section titled “ Responses ”Successful Response
Response body for a webhook subscription.
Attributes: id: Subscription UUID. platform: Integration platform. webhook_url: The webhook URL. signing_secret: HMAC signing secret (full on create, masked on read). event_filters: Active event filters. is_active: Whether the subscription is active. failure_count: Consecutive delivery failures. created_at: When the subscription was created.
object
Examplegenerated
{ "created_at": "example", "event_filters": [ "example" ], "failure_count": 1, "id": "example", "is_active": true, "platform": "example", "signing_secret": "example", "webhook_url": "example"}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}