Skip to content

Send test event

Request

Send a synchronous test event to the webhook endpoint to verify connectivity and signature handling. The request body names the account the test event is attributed to — webhook endpoints are integrator-scoped and serve every account the integrator is granted, so there is no implicit account to test under.

Security
PartnerApiKey and PartnerOAuth
Path
webhookIdinteger, (int64)required

Webhook endpoint ID

Bodyapplication/jsonrequired
accountIdinteger, (int64)required

Account the test event is attributed to. The authenticated partner must have an active grant to this account. The value is published verbatim as the delivery envelope's accountId, exactly as it would be on a real event.

Example:12345
curl -i -X POST \
  'https://api-docs.lobbie.com/_mock/openapi/partner/v2/webhook/{webhookId}/test' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -d '{
    "accountId": 12345
  }'

Responses

Test event was attempted. Inspect the response body for the delivery outcome (success, status code, response time, human-readable message).

Bodyapplication/json
messagestring

Human-readable summary of the delivery outcome.

Example:"Delivered successfully (HTTP 200)"
responseStatusCodeinteger, (int32)

HTTP status code returned by the endpoint. Null if the request never completed.

Example:200
responseTimeMsinteger, (int32)

Response time in milliseconds

Example:150
successboolean

Whether the test was successful

Example:true
testEventIdstring

Test event ID

Example:"evt_test_abc123"
Response
{ "message": "Delivered successfully (HTTP 200)", "responseStatusCode": 200, "responseTimeMs": 150, "success": true, "testEventId": "evt_test_abc123" }