Skip to main content
POST
Send a test event
Needs webhooks:update, and a role that can manage notifications (owners and managers) in the endpoint’s workspace and in every workspace it also sends events from. See Permissions.
Sends one webhook.test event to this endpoint alone, signed like any other event. No other endpoint gets it and no notification is made. Its data is { "message": "This is a test event from PostSyncer." }. The answer is the delivery, pending: the send happens right after. Read List webhook deliveries a moment later to see what your server answered. A failed test is retried like any event (see Delivery and retries). An endpoint that is turned off still gets a delivery, marked failed with the error The destination is off.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

The webhook's id.

Response

The test delivery, before it is sent.

One event sent to an endpoint: the last request and what came back.

id
integer
required
destination_id
integer
required

The webhook's id.

event_id
string
required

The event's id, also the webhook-id header. The same on every try.

event_type
string
required

The event, like post.failed.

status
enum<string>
required

pending waits for a try or a retry, sent got a 2xx, failed isn't tried again, gave_up used every retry. A webhook gets 7 tries over about 41 hours.

Available options:
pending,
sent,
failed,
gave_up
attempts
integer
required

The tries so far.

response_status
integer | null
required

The HTTP status your server answered on the last try; null when no answer came.

response_body
string | null
required

The start of your server's answer, up to 1000 characters.

error
string | null
required

What went wrong on the last try, in plain words.

duration_ms
integer | null
required

How long the last try took.

next_attempt_at
string<date-time> | null
required

When the next try is due, for a pending delivery whose last try failed; null otherwise.

request_headers
object | null
required

The headers of the last request: webhook-id, webhook-timestamp, webhook-signature and content-type. Null before the first try.

request_body
string | null
required

The JSON body of the last request, as sent, up to its first 64 KB. Null before the first try.

created_at
string<date-time>
required
updated_at
string<date-time>
required