POST
/
webhook-endpoints
curl --request POST \
  --url https://api.syntage.com/webhook-endpoints \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "url": "https://example.com/endpoint",
  "events": [
    "credential.created",
    "credential.updated"
  ],
  "enabled": true,
  "contentType": "application/ld+json"
}'
{
  "@context": "/contexts/WebhookEndpoint",
  "@id": "/webhook-endpoints/91106968-1abd-4d64-85c1-4e73d96fb997",
  "@type": "WebhookEndpoint",
  "id": "e0a24894-7fbf-48ae-bfb0-efaae30a6319",
  "url": "https://example.com/endpoint",
  "signingSecret": "54471a278d46c86ec6cd365983552a28",
  "events": [
    "credential.created",
    "credential.updated"
  ],
  "enabled": true,
  "contentType": "application/ld+json",
  "createdAt": "2020-01-01T12:15:00.000Z",
  "updatedAt": "2020-01-01T12:15:00.000Z"
}

Authorizations

X-API-Key
string
header
required

Your API key is available in the Production and Sandbox dashboards.

Body

application/json

Response

202
application/ld+json

Webhook endpoint resource response

The response is of type object.