v1
latestOpenAPI 3.1.02026-08-063776831.4 MBWebhook
Create a new webhook
Creates a new webhook subscription with the provided details. The webhook will receive events asynchronously when the specified event types occur.
Available Event Types:
-
credential_workflow.status.changed - Triggered automatically when a credentialing workflow status changes (timeline event is created). See webhook-api-credential-workflow-events.md for detailed payload structure and documentation.
-
facility_credential_workflow.status.changed - Triggered automatically when a facility credentialing workflow status changes (timeline event is created).
You can subscribe to multiple different event types in a single webhook.
post/webhooks
Headers
tenant-idstring required
Tenant ID
Request body
Example request
{
"webhookUrl": "https://example.com/webhook",
"eventTypes": [
"credential_workflow.status.changed",
"facility_credential_workflow.status.changed"
],
"headers": {
"Authorization": "Bearer token",
"X-Custom-Header": "custom-value"
},
"isActive": true,
"oauthConfiguration": {
"tokenUrl": "https://auth.example.com/oauth/token",
"resource": "resource"
}
}Response
Successfully created the webhook
Example response
{
"id": "webhook-123",
"tenantId": "tenant-123",
"createdBy": "user-123",
"updatedBy": "user-123",
"createdAt": "2022-03-10T16:15:50Z",
"updatedAt": "2022-03-10T16:15:50Z"
}