Skip to content

Send a webhook.test event now and return the result

POST/v1/webhooks/{id}/testKey ·

Send a webhook.test event now (one attempt, no retries) and return the result.

Authentication

API key: Authorization: Bearer sl_live_… with any scope. The dashboard session works too.

An API key always acts in its own workspace. With a dashboard session, pass ?workspaceId= to choose the workspace (default: your first).

Parameters

NameInDescription
id
required
path

string

Response

200 — The test delivery and its attempt

FieldDescription
deliveryWebhookDelivery
attemptWebhookAttempt | null
200 example (values are illustrative)
{
"delivery": {
"id": "whd_AuER0XoaWoMaTw3bPa7KoQ",
"endpointId": "whe_Vb3nq0x5cE1h2kF8sYp4Tg",
"eventId": "evt_cbb3ca99be3d5358e027f561a3c72896",
"eventType": "message.received",
"replayOf": "replayOf",
"status": "pending",
"attempts": 1,
"nextAttemptAt": "2026-11-28T09:13:57.390Z",
"lastStatusCode": 1,
"lastError": "lastError",
"createdAt": "2026-11-28T09:13:57.390Z",
"completedAt": "2026-11-28T09:13:57.390Z"
},
"attempt": {
"id": 1,
"deliveryId": "whd_AuER0XoaWoMaTw3bPa7KoQ",
"eventId": "evt_cbb3ca99be3d5358e027f561a3c72896",
"eventType": "message.received",
"attempt": 1,
"ok": true,
"statusCode": 1,
"error": "bad_request",
"latencyMs": 1,
"responseSnippet": "responseSnippet",
"at": "2026-11-28T09:13:57.390Z"
}
}

Errors

Errors are JSON: {"error": "<code>", "message": "<a sentence>"}. Branch on error, show message. Every code is explained in Errors.

StatuserrorWhen
401unauthorizedMissing or invalid API key / session
403forbiddenAPI key lacks the read + send scopes
404not_foundWebhook or delivery not found
500internalInternal error

Examples

Set SIMLINE_API_KEY to your key first. Node examples use the built-in fetch (Node 18+, run as an ES module); Python uses requests.

Terminal window
curl -X POST "https://api.simline.dev/v1/webhooks/whe_Vb3nq0x5cE1h2kF8sYp4Tg/test" \
-H "Authorization: Bearer $SIMLINE_API_KEY"