All webhook subscriptions related paths.
/auth/verify_keysReturns a list of signing keys used to verify webhooks.
upvest-client-idstringrequired
Tenant Client ID
authorizationstringrequired
Bearer (access) token from the OAuth flow with correct scopes. https://datatracker.ietf.org/doc/html/rfc6750
signaturestringrequired
https://tools.ietf.org/id/draft-ietf-httpbis-message-signatures-01.html#name-the-signature-http-header
signature-inputstringrequired
https://tools.ietf.org/id/draft-ietf-httpbis-message-signatures-01.html#name-the-signature-input-http-he
upvest-api-versionstringUpvest API version (Note: Do not include quotation marks)
JWKS signing public keys
{
"keys": [
{
"kid": "9ed77463-c18e-4794-ab5c-17423f9b801a",
"kty": "EC",
"crv": "P-521",
"x": "AcYAf5Ou0UvtehpeRvyhnvvrUQvjI4B3VCxfSmxK4gqKJGxO_jTB-nTdrHbBfmZpwmwYR86DppMg43E579K5MQ54",
"y": "ALkrId77iD0Ye2vBS5bTkLqPH-bo8urTpTXiNc6Ub-VOFbXfJrR0tQ8COvVXXu58BTu8jWV-1mtbjfJpDl3ISbcK"
}
]
}/webhooksReturns a list of all webhook subscriptions.
sortstringSort the result by created_at, updated_at, title, url, or enabled.
orderstringSort order of the result list if the sort parameter is specified. Use ASC for ascending or DESC for descending sort order.
offsetintUse the offset argument to specify where in the list of results to start when returning items for a particular query.
limitintUse the limit argument to specify the maximum number of items returned.
An object with a data property that contains an array of webhook subscription objects.
{
"meta": {
"offset": 0,
"limit": 100,
"count": 1,
"total_count": 1,
"sort": "id",
"order": "ASC"
},
"data": [
{
"id": "a8eb3540-5a84-40f9-b2bb-7f99f282fc5a",
"created_at": "2021-07-21T14:10:00.00Z",
"updated_at": "2021-07-21T14:10:00.00Z",
"title": "User webhook",
"url": "https://tenant.tld/webhooks/users",
"type": [
"USER"
],
"enabled": false,
"config": {
"delay": "5s",
"max_package_size": 10240
}
}
]
}/webhooksCreates a webhook subscription.
titlestringrequired
Title of the webhook for use on tenant side.
urlstringrequired
The callback URL to be called by the webhook.
typearrayWhat kind of events to be sent by the webhook.
configobjectConfiguration of webhook packages collection.
delaystringMaximum time of package collection (1s-30s).
max_package_sizeintMaximum package size (bytes)
{
"title": "User webhook",
"url": "https://tenant.tld/webhooks/users",
"type": [
"USER"
],
"config": {
"delay": "1s",
"max_package_size": 51200
}
}Returns a webhook subscription object if a valid webhook subscription object ID was provided.
{
"id": "a8eb3540-5a84-40f9-b2bb-7f99f282fc5a",
"created_at": "2021-07-21T14:10:00.00Z",
"updated_at": "2021-07-21T14:10:00.00Z",
"title": "User webhook",
"url": "https://tenant.tld/webhooks/users",
"type": [
"USER"
],
"enabled": false,
"config": {
"delay": "5s",
"max_package_size": 10240
}
}/webhooks/{webhook_id}Returns a webhook subscription specified by its ID.
webhook_idstringrequired
Webhook identifier
Returns a webhook subscription object if a valid webhook subscription object ID was provided.
{
"id": "a8eb3540-5a84-40f9-b2bb-7f99f282fc5a",
"created_at": "2021-07-21T14:10:00.00Z",
"updated_at": "2021-07-21T14:10:00.00Z",
"title": "User webhook",
"url": "https://tenant.tld/webhooks/users",
"type": [
"USER"
],
"enabled": true,
"config": {
"delay": "5s",
"max_package_size": 1024
}
}/webhooks/{webhook_id}Deletes a webhook subscription specified by its ID.
webhook_idstringrequired
Webhook identifier
Request has been processed successfully.
Empty response
/webhooks/{webhook_id}Updates a webhook subscription specified by its ID.
titlestringTitle of the webhook for use on tenant side.
urlstringThe callback URL to be called by the webhook.
enabledbooleanEnable/disable webhook.
typearrayWhat kind of events to be sent by the webhook.
configobjectConfiguration of webhook packages collection.
delaystringMaximum time of package collection (1s-30s).
max_package_sizeintMaximum package size (bytes)
{
"url": "https://tenant.tld/webhooks/users",
"type": [
"USER"
]
}Returns a webhook subscription object if a valid webhook subscription object ID was provided.
{
"id": "a8eb3540-5a84-40f9-b2bb-7f99f282fc5a",
"created_at": "2021-07-21T14:10:00.00Z",
"updated_at": "2021-07-21T14:10:00.00Z",
"title": "User webhook",
"url": "https://tenant.tld/webhooks/users",
"type": [
"USER"
],
"enabled": true,
"config": {
"delay": "1s",
"max_package_size": 51200
}
}/webhooks/{webhook_id}/testTests a webhook subscription specified by its ID.
webhook_idstringrequired
Webhook identifier
OK
{
"url": "https://api.example.com/test",
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json",
"X-Request-ID": "abc123"
},
"body": ""
}
}Was this page helpful?