563848e0ecc0
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).
-
form.submission.submitted - Triggered when a form submission is received by POST /forms/submissions.
You can subscribe to multiple different event types in a single webhook.
Headers
Tenant ID
Request body
Example request
{
"webhookUrl": "https://example.com/webhook",
"eventTypes": [
"credential_workflow.status.changed",
"facility_credential_workflow.status.changed",
"form.submission.submitted"
],
"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"
}