API referenceWebhooks

create_webhook_endpoint

POST /v1/webhook_endpoints: adds an address to send events to (an admin's key).

POST
/v1/webhook_endpoints

Adds an address to send events to (an admin's key). url is public and https. event_types lists types, groups (screening.*) or *. The response has the signing secret, shown only this once. An organization has at most 20 endpoints.

Request body

application/json

FieldTypeDescription
urlrequiredstring
event_typesrequiredarray of string
descriptionstring

Responses

The endpoint, with its secret.

Examples

Example Request
curl -X POST 'https://api.finic.ai/v1/webhook_endpoints' \  -H "Authorization: Bearer $FINIC_API_KEY" \  -H 'Content-Type: application/json' \  -d '{  "url": "https://example.com/webhooks/finic",  "event_types": [    "screening.*",    "verification.completed",    "business.status_changed"  ]}'
Example Response
{  "id": "string",  "url": "string",  "description": "string",  "event_types": [    "string"  ],  "status": "enabled",  "disabled_reason": "string",  "failing_since": "2019-08-24T14:15:22Z",  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z",  "secret": "string"}