Skip to main content
POST
Send a test delivery

Authorizations

Authorization
string
header
required

The API key, created in Settings › API, in the header Authorization: Bearer . The default.

Path Parameters

webhook_endpoint_id
string<uuid>
required

The webhook endpoint id.

Response

The delivery, queued. Track its status in the endpoint's deliveries list.

object
string
required
Allowed value: "webhook_delivery"
id
string<uuid>
required

The same value as the X-Webhook-Delivery header your server receives, identical across retries.

webhook_endpoint_id
string<uuid>
required
event
enum<string>
required

call.* events belong to voice agents; the others belong to text agents. What each event carries and how to verify the signature are at https://docs.newlead.ai/webhook-events.

Available options:
call.started,
call.rejected,
call.ended,
call.analyzed,
lead.created,
lead.qualified,
lead.appointment_booked,
lead.handoff,
follow_up.sent,
message.received,
message.failed
status
enum<string>
required

pending: queued or waiting for the next attempt. delivered: your server responded 2xx. failed: no 2xx in any of the 13 attempts, or the endpoint was paused or deleted before the delivery was sent or retried.

Available options:
pending,
delivered,
failed
attempts
integer
required
Required range: x >= 0
response_status
integer | null
required

The HTTP status of your server's last response, or null if it never responded.

failure_reason
enum<string> | null
required

Why the last attempt failed, or null if it has not failed. http_error: your server responded outside 2xx (see response_status). redirect_not_followed: it responded with a redirect, which is not followed. timeout: no response within 10 seconds. connection_failed: could not connect (DNS, TLS or a private address). not_attempted: the endpoint was paused or deleted before the delivery was sent or retried.

Available options:
http_error,
redirect_not_followed,
timeout,
connection_failed,
not_attempted,
null
created_at
string<date-time>
required
delivered_at
string<date-time> | null
required