Skip to main content

Webhook Events

List webhook events​

GET /webhook-events

Code samples


curl -X GET https://localhost:9543/api-portal/api/v0.9/webhook-events \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: application/json'

Returns a paginated list of webhook events for the organization. Each event includes a summary of its delivery rows. Requires the dp:event:read scope.

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:event:read`

Parameters​

NameInTypeRequiredDescription
statusquerystringfalseFilter events by status.
limitqueryintegerfalseMaximum number of records to return.
offsetqueryintegerfalseNumber of records to skip before returning results.

Enumerated Values​

ParameterValue
statusPENDING
statusDISPATCHED
statusALL_DELIVERED
statusFAILED

Example responses

200 Response

{
"list": [
{
"eventId": "evt-abc123",
"eventType": "apikey.generated",
"orgId": "org-default",
"aggregateType": "apikey",
"aggregateId": "key-12345",
"status": "ALL_DELIVERED",
"occurredAt": "2019-08-24T14:15:22Z",
"deliveries": [
{
"deliveryId": "del-abc123",
"subscriberId": "sub-xyz789",
"targetUrl": "https://example.com/webhook",
"status": "DELIVERED",
"lastHttpStatus": 200,
"lastError": "string",
"lastAttemptAt": "2019-08-24T14:15:22Z",
"deliveredAt": "2019-08-24T14:15:22Z"
}
]
}
],
"count": 1,
"pagination": {
"total": 42,
"limit": 20,
"offset": 0
}
}

403 Response

{
"status": "error",
"code": "FORBIDDEN",
"message": "Forbidden"
}

500 Response

{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred."
}

Responses​

StatusMeaningDescriptionSchema
200OKPaginated list of webhook events.Inline
403ForbiddenRequest is forbidden. The caller lacks the required permission, or the current runtime mode disallows the operation (read-only mode). It is also returned when the request names an organization other than the single one this instance serves. A nonexistent organization is answered identically to one belonging to someone else, so the response cannot be used to discover what a shared database holds.ErrorResponse
500Internal Server ErrorInternal server error.ErrorResponse

Response schema​

Status Code 200

NameTypeRequiredRestrictionsDescription
» list[WebhookEvent]falsenone[A webhook event with its delivery rows.]
»» eventIdstringfalsenonenone
»» eventTypestringfalsenonenone
»» orgIdstringfalsenonenone
»» aggregateTypestringfalsenonenone
»» aggregateIdstringfalsenonenone
»» statusstringfalsenonenone
»» occurredAtstring(date-time)falsenonenone
»» deliveries[WebhookEventDelivery]falsenone[A single webhook delivery attempt.]
»»» deliveryIdstringfalsenonenone
»»» subscriberIdstringfalsenonenone
»»» targetUrlstring¦nullfalsenonenone
»»» statusstringfalsenonenone
»»» lastHttpStatusinteger¦nullfalsenonenone
»»» lastErrorstring¦nullfalsenonenone
»»» lastAttemptAtstring(date-time)¦nullfalsenonenone
»»» deliveredAtstring(date-time)¦nullfalsenonenone
» countintegerfalsenoneNumber of items returned in this page.
» paginationPaginationfalsenoneStandard pagination metadata returned with collection responses.
»» totalintegertruenoneTotal number of records matching the query.
»» limitintegertruenoneMaximum number of records returned in this response.
»» offsetintegertruenoneNumber of records skipped before this page.

Enumerated Values​

PropertyValue
statusPENDING
statusDISPATCHED
statusALL_DELIVERED
statusFAILED
statusPENDING
statusIN_FLIGHT
statusDELIVERED
statusFAILED

Get a webhook event​

GET /webhook-events/{eventId}

Code samples


curl -X GET https://localhost:9543/api-portal/api/v0.9/webhook-events/{eventId} \
-H 'Authorization: Bearer {access_token}' \
-H 'Accept: application/json'

Returns a single webhook event with the full details of all its delivery rows. Requires the dp:event:read scope.

Authentication​

This operation requires a Bearer JWT access token in the Authorization header. Required scopes (the token must carry at least one of): `dp:event:read`

Parameters​

NameInTypeRequiredDescription
eventIdpathstringtrueWebhook event identifier.

Example responses

200 Response

{
"eventId": "evt-abc123",
"eventType": "apikey.generated",
"orgId": "org-default",
"aggregateType": "apikey",
"aggregateId": "key-12345",
"status": "ALL_DELIVERED",
"occurredAt": "2019-08-24T14:15:22Z",
"deliveries": [
{
"deliveryId": "del-abc123",
"subscriberId": "sub-xyz789",
"targetUrl": "https://example.com/webhook",
"status": "DELIVERED",
"lastHttpStatus": 200,
"lastError": "string",
"lastAttemptAt": "2019-08-24T14:15:22Z",
"deliveredAt": "2019-08-24T14:15:22Z"
}
]
}

403 Response

{
"status": "error",
"code": "FORBIDDEN",
"message": "Forbidden"
}

404 Response

{
"status": "error",
"code": "ORG_NOT_FOUND",
"message": "Organization not found."
}

500 Response

{
"status": "error",
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred."
}

Responses​

StatusMeaningDescriptionSchema
200OKSingle webhook event with full delivery details.WebhookEvent
403ForbiddenRequest is forbidden. The caller lacks the required permission, or the current runtime mode disallows the operation (read-only mode). It is also returned when the request names an organization other than the single one this instance serves. A nonexistent organization is answered identically to one belonging to someone else, so the response cannot be used to discover what a shared database holds.ErrorResponse
404Not FoundResource not found.ErrorResponse
500Internal Server ErrorInternal server error.ErrorResponse

Was this page helpful?