Skip to main content
POST
Subscribe an endpoint to receive captured leads

Authorizations

Authorization
string
header
required

Organization-scoped Mailr API key. Header: Authorization: Bearer ak_….

Body

application/json
target_url
string<uri>
required

Public https URL to deliver to. SSRF-guarded.

event
enum<string>
default:lead.created
Available options:
lead.created

Response

Subscribed (or already subscribed). Note this is 200, not 201, on both create and idempotent re-subscribe.

id
string<uuid>
required
signing_secret
string | null
required

Hex secret for HMAC verification. Present only when the subscription was just created (or via /api/v1/webhooks/rotate) — an idempotent re-subscribe returns null, as does a pre-signing subscription (delivered unsigned).