Webhooks
Ready to test
Get information about existing webhooks.
GET /webhooks HTTP/1.1
Host: tvda-api.platform-test.tradevest.ai
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
OK
[
{
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"eventType": "CUSTOMER_NOTIFICATION",
"url": "https://client-address.de/e9c1a702ccab"
},
{
"createdOn": "2019-08-24T14:15:22Z",
"modifiedOn": "2019-08-24T14:15:22Z",
"eventType": "DOCUMENT_NOTIFICATION",
"url": "https://client-address.de/2de0d16efb49",
"headers": [
{
"name": "api-key",
"value": "secret-api-key"
}
]
}
]
Ready to test
Create webhook, replacing the webhook for this event type if one already exists. It is possible to create only one webhook per event.
The URL must be HTTPS.
POST /webhooks HTTP/1.1
Host: tvda-api.platform-test.tradevest.ai
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 140
{
"eventType": "CUSTOMER_NOTIFICATION",
"url": "https://client-address.de/e9c1a702ccab",
"headers": [
{
"name": "api-key",
"value": "secret-api-key"
}
]
}
No content
Ready to test
Delete webhook with given eventType.
Event type of webhook.
DELETE /webhooks/{eventType} HTTP/1.1
Host: tvda-api.platform-test.tradevest.ai
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
Webhook deleted
No content
Ready to test
Get webhook by eventType.
Event type of webhook.
GET /webhooks/{eventType} HTTP/1.1
Host: tvda-api.platform-test.tradevest.ai
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"createdOn": "2025-06-30T16:33:56.713Z",
"modifiedOn": "2025-06-30T16:33:56.713Z",
"eventType": "CUSTOMER_NOTIFICATION",
"url": "text",
"headers": [
{
"name": "text",
"value": "text"
}
]
}
Ready to test
Get all missing webhooks. This is an auxiliary endpoint to help avoid situations where a notification could be missed.
GET /webhooks-missing HTTP/1.1
Host: tvda-api.platform-test.tradevest.ai
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
OK
[
{
"eventType": "CUSTOMER_NOTIFICATION"
}
]
Ready to test
Get undelivered webhooks to retry sending them. Undelivered webhooks will be kept in database for 30 days. After this time they may be removed. It is an auxiliary endpoint that helps to find webhooks that have not been delivered.
Maximum number of items to return
20
Example: 20
String value used for pagination
Beginning of the range. Date time is after this parameter.
2019-04-12T23:20:50.52Z
End of the range. Date time is before this parameter.
2019-05-12T23:20:50.52Z
Event type of webhook.
GET /undelivered-webhooks HTTP/1.1
Host: tvda-api.platform-test.tradevest.ai
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
OK
{
"data": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"webhook": {
"createdOn": "2025-06-30T16:33:56.713Z",
"modifiedOn": "2025-06-30T16:33:56.713Z",
"eventType": "CUSTOMER_NOTIFICATION",
"url": "text",
"headers": [
{
"name": "text",
"value": "text"
}
]
},
"body": "text",
"errorMessage": "text",
"createdOn": "2025-06-30T16:33:56.713Z",
"modifiedOn": "2025-06-30T16:33:56.713Z"
}
],
"pagination": {
"cursor": "text",
"limit": 1
}
}
Ready to test
Mark the webhook with the specified id and all previous ones as delivered. They will no longer appear in the Get Undelivered Webhooks response.
Id of the newest undelivered webhook to be marked as delivered. All older webhooks will also be marked.
POST /undelivered-webhooks HTTP/1.1
Host: tvda-api.platform-test.tradevest.ai
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 63
{
"undeliveredWebhookId": "123e4567-e89b-12d3-a456-426614174000"
}
OK
No content
Last updated