curl --request PUT \
--url https://api.syntage.com/webhook-endpoints/{id} \
--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"
}
curl --request PUT \
--url https://api.syntage.com/webhook-endpoints/{id} \
--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"
}
Your API key is available in the Production and Sandbox dashboards.
Webhook endpoint resource response
The response is of type object
.