List webhooks
Lists your webhook endpoints.
GET/v1/workspaces/{regionId}/webhooks
Returns
200 OK with the object shown in the response.
More details
Your side's endpoints and the event types they can take. Never a signing secret: secretHint shows its start and end.
A signed-in administrator (Bearer token): buyer approvalSettings edit, or a supplier administrator.
Response fields
endpoints[].eventsArray<string>The event types sent. Empty means every type of your side, including ones added later.
endpoints[].lastErrorCodestringWhy the last attempt failed: http_status (see lastStatus), blocked_address, unreachable, timeout, redirect, too_large, endpoint_off or failed.
endpoints[].failedDeliveriesnumberDeliveries given up in a row; a success or resuming the endpoint resets it.
Errors
- 403 Forbidden - An API key, or a caller who isn't an administrator of this workspace side.
- 401 Unauthorized - No credential was presented, or the Bearer token / X-Api-Key value is missing, invalid, expired, or revoked.
curl "$PLEAXY_API_BASE_URL/v1/workspaces/{regionId}/webhooks" \
-H "X-Api-Key: $PLEAXY_API_KEY"{
"endpoints": [
{
"id": "string",
"url": "string",
"description": "string",
"events": [ "string" ],
"enabled": boolean,
"secretHint": "string",
"createdAt": "string",
"lastAttemptAt": "string",
"lastStatus": number,
"lastErrorCode": "string",
"lastSuccessAt": "string",
"failedDeliveries": number
}
],
"eventTypes": [ "string" ]
}