Create a webhook subscription to receive real-time notifications when contact events occur.
Webhooks enable your application to receive real-time notifications when specific events happen in TitanX. Instead of polling for changes, webhooks push event data directly to your configured endpoint.
The webhook secret is only returned once at creation time. Store it securely - you’ll need it to verify webhook signatures. If lost, you must delete and recreate the webhook.
Currently supported event types:
job.contact.scored - Fired when a contact completes scoringX-TitanX-Signature headercurl -X POST https://app.titanx.io/api/public/v2/webhooks \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-app.com/webhooks/titanx",
"eventTypes": ["job.contact.scored"]
}'
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"url": "https://your-app.com/webhooks/titanx",
"eventTypes": ["job.contact.scored"],
"status": "active",
"secret": "whsec_abc123def456...", // Store this securely!
"createdAt": "2024-01-15T10:30:00Z"
}
When a contact is scored via the API:
For webhook payload structure and signature verification details, see the webhook callback documentation.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Name for the webhook (for your reference)
1"Production Contact Webhook"
HTTPS endpoint URL where webhook events will be sent (must be HTTPS)
"https://api.example.com/webhooks/titanx"
Array of event types to subscribe to
1job.contact.scored ["job.contact.scored"]Initial status of the webhook
active, inactive "active"
Webhook created successfully. The secret is only shown once - store it securely.