Send a test delivery to a webhook
POST
/webhooks/{webhookID}/testSends a sample event to the webhook's target URL so you can verify signature validation and connectivity, and returns the delivery result.
Auth:
BearerPath parameters
webhookIDuuidrequired
Response
idUnique identifier for this resource.
uuid
webhook_idIdentifier of the webhook.
uuid
eventEvent type that triggered this delivery (e.g. `policy.updated`).
string
payloadThe event payload delivered to the endpoint, matching the webhook event schema.
object
response_codeHTTP status code returned by the subscriber endpoint; null if unreachable.
integernull
successWhether the delivery received a 2xx response from the subscriber.
boolean
attemptsNumber of delivery attempts made so far, including retries.
integer
next_retry_atRFC 3339 timestamp.
datetime
created_atRFC 3339 timestamp of when the resource was created.
datetime
Request
bash
curl -sS -X POST "https://phosra-api-sandbox-production.up.railway.app/api/v1/webhooks/8a1b2c3d-4e5f-4a6b-9c8d-1e2f3a4b5c6d/test" \
-H "Authorization: Bearer $PHOSRA_API_KEY"Response
json
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"webhook_id": "550e8400-e29b-41d4-a716-446655440000",
"event": "string",
"payload": {},
"response_code": null,
"success": true,
"attempts": 0,
"next_retry_at": null,
"created_at": "2025-01-15T09:30:00Z"
}