API referenceWebhooks
create_webhook_endpoint
POST /v1/webhook_endpoints: adds an address to send events to (an admin's key).
POST
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
| Field | Type | Description |
|---|---|---|
urlrequired | string | |
event_typesrequired | array of string | |
description | string |
Responses
The endpoint, with its secret.
| Status | Type and when |
|---|---|
400 |
|
401 |
|
403 |
|
Every error has the same shape; see Errors.
Examples
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"}