Webhooks API endpoints
Authorizations
Body
urlstringRequiredExample:
The URL to send the webhook to
https://webhook.example.io
descriptionstringOptionalExample:
The description of the webhook
My webhook
statusinteger · enumOptionalPossible values:
The status of the webhook (0 = disabled, 1 = enabled)
Responses
200
Webhook has been created
application/json
400
Error creating a webhook
application/json
402
Transaction limit reached or upgrade required to proceed
application/json
404
User does not own this webhook
application/json
post
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
}
Authorizations
Query parameters
offsetinteger · int32OptionalDefault:
How many items to offset by for pagination
0
limitinteger · int32 · min: 1 · max: 64OptionalDefault:
How many items to return at one time (max 64)
64
Responses
200
A paged array of webhooks
application/json
400
Application error
application/json
get
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
}
]
Authorizations
Path parameters
idstringRequired
A unique numeric ID
Responses
200
A stored webhook JSON object
application/json
400
Error getting webhook
application/json
404
Webhook was not found
application/json
get
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
}
Authorizations
Path parameters
idstringRequired
A unique numeric ID
Body
urlstringRequiredExample:
The URL to send the webhook to
https://webhook.example.io
descriptionstringOptionalExample:
The description of the webhook
My webhook
statusinteger · enumOptionalPossible values:
The status of the webhook (0 = disabled, 1 = enabled)
Responses
200
Webhook has been updated
application/json
400
Error creating webhook
application/json
402
Transaction limit reached or upgrade required to proceed
application/json
patch
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
}
Authorizations
Path parameters
idstringRequired
A unique numeric ID
Responses
200
Webhook Deleted
400
Error deleting webhook
application/json
404
Webhook was not found
application/json
delete
DELETE /webhooks/{id} HTTP/1.1
Host: api-testnet.truvera.io
Authorization: Bearer JWT
Accept: */*
No content
Last updated
Was this helpful?