Skip to main content
GET
Retrieve a webhook endpoint

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 endpoint, without the secret.

object
string
required
Allowed value: "webhook_endpoint"
id
string<uuid>
required
url
string<uri>
required
events
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
text_agent_id
string<uuid> | null
required

The endpoint's text agent, or null if it belongs to a voice agent.

voice_agent_id
string<uuid> | null
required

The endpoint's voice agent, or null if it belongs to a text agent.

description
string | null
required
active
boolean
required

false: paused, receives no deliveries. It pauses itself after 20 consecutive failed deliveries; when reactivated, consecutive_failures resets to 0.

last_success_at
string<date-time> | null
required
last_failure_at
string<date-time> | null
required
consecutive_failures
integer
required

Consecutive failed deliveries, each after its 13 attempts. Test deliveries do not count.

Required range: x >= 0
created_at
string<date-time>
required
secret
string

Only in the POST /webhook_endpoints response: the key that signs deliveries (X-Webhook-Signature header). Store it: it is never shown again.

Pattern: ^whsec_[0-9a-f]{64}$