Webhooks API endpoints
The URL to send the webhook to
https://webhook.example.ioThe description of the webhook
My webhookThe status of the webhook (0 = disabled, 1 = enabled)
Webhook has been created
The URL to send the webhook to.
https://webhook.example.ioA unique numeric ID
^[0-9]+$The timestamp when the webhook was created.
2024-09-26T12:38:10.871ZThe secret token of the webhook.
The description of the webhook.
My WebhookThe status of the webhook (0 = disabled, 1 = enabled)
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 YOUR_SECRET_TOKEN
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
0How many items to return at one time (max 64)
64A paged array of webhooks
The URL to send the webhook to.
https://webhook.example.ioA unique numeric ID
^[0-9]+$The timestamp when the webhook was created.
2024-09-26T12:38:10.871ZThe secret token of the webhook.
The description of the webhook.
My WebhookThe status of the webhook (0 = disabled, 1 = enabled)
Application error
GET /webhooks HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
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
^[0-9]+$A stored webhook JSON object
The URL to send the webhook to.
https://webhook.example.ioA unique numeric ID
^[0-9]+$The timestamp when the webhook was created.
2024-09-26T12:38:10.871ZThe secret token of the webhook.
The description of the webhook.
My WebhookThe status of the webhook (0 = disabled, 1 = enabled)
Error getting webhook
Webhook was not found
GET /webhooks/{id} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
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
^[0-9]+$The URL to send the webhook to
https://webhook.example.ioThe description of the webhook
My webhookThe status of the webhook (0 = disabled, 1 = enabled)
Webhook has been updated
The URL to send the webhook to.
https://webhook.example.ioA unique numeric ID
^[0-9]+$The timestamp when the webhook was created.
2024-09-26T12:38:10.871ZThe secret token of the webhook.
The description of the webhook.
My WebhookThe status of the webhook (0 = disabled, 1 = enabled)
Error creating webhook
Transaction limit reached or upgrade required to proceed
PATCH /webhooks/{id} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
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
^[0-9]+$Webhook Deleted
No content
Error deleting webhook
Webhook was not found
DELETE /webhooks/{id} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated
Was this helpful?