Webhooks API endpoints
The URL to send the webhook to
https://webhook.example.io
The description of the webhook
My webhook
The status of the webhook (0 = disabled, 1 = enabled)
Webhook has been created
Error creating a webhook
Transaction limit reached or upgrade required to proceed
User does not own this webhook
POST /webhooks HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 98
{
"url": "https://webhook.example.io",
"description": "My webhook",
"status": 0,
"events": [
"did_create"
]
}
{
"events": [
"did_create"
],
"url": "https://webhook.example.io",
"id": "text",
"created": "2024-09-26T12:38:10.871Z",
"secret": "text",
"description": "My Webhook",
"status": 0
}
How many items to offset by for pagination
0
How many items to return at one time (max 64)
64
A paged array of webhooks
Application error
GET /webhooks HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer JWT
Accept: */*
[
{
"events": [
"did_create"
],
"url": "https://webhook.example.io",
"id": "text",
"created": "2024-09-26T12:38:10.871Z",
"secret": "text",
"description": "My Webhook",
"status": 0
}
]
A unique numeric ID
A stored webhook JSON object
Error getting webhook
Webhook was not found
GET /webhooks/{id} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer JWT
Accept: */*
{
"events": [
"did_create"
],
"url": "https://webhook.example.io",
"id": "text",
"created": "2024-09-26T12:38:10.871Z",
"secret": "text",
"description": "My Webhook",
"status": 0
}
A unique numeric ID
The URL to send the webhook to
https://webhook.example.io
The description of the webhook
My webhook
The status of the webhook (0 = disabled, 1 = enabled)
Webhook has been updated
Error creating webhook
Transaction limit reached or upgrade required to proceed
PATCH /webhooks/{id} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 98
{
"url": "https://webhook.example.io",
"description": "My webhook",
"status": 0,
"events": [
"did_create"
]
}
{
"events": [
"did_create"
],
"url": "https://webhook.example.io",
"id": "text",
"created": "2024-09-26T12:38:10.871Z",
"secret": "text",
"description": "My Webhook",
"status": 0
}
A unique numeric ID
Webhook Deleted
Error deleting webhook
Webhook was not found
DELETE /webhooks/{id} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer JWT
Accept: */*
No content
Last updated
Was this helpful?