Landing Platform Landing Platform
Developer Referrals
POST /api/webhooks/referral-update Token + HMAC

Update a referral status

Update a referral we sent to a partner. Authenticate with the inbound key we issued you (header X-Referral-Key); if a signing secret is configured for you, also sign the raw body with HMAC-SHA256 and send it as X-Signature: sha256=<hex>. Reference the referral by the reference (its UUID) included in every referral notification we send you. The update is applied through our referral state-machine — an illegal jump (e.g. changing an already-completed referral) is rejected with 422.

What you can send, from each state. Note there is NO shortcut from accepted to completed — you must pass through in_progress — and completed / declined are terminal (nothing is accepted after them):

submitted    →  accepted | declined
accepted     →  in_progress | declined
in_progress  →  completed | declined
completed    →  (terminal)
declined     →  (terminal)

(A referral can also be withdrawn, but that is the sending agency retracting it — it is not a status you can set.)

Our four statuses are deliberately domain-neutral. Milestones specific to your trade (an exchange of contracts, an offer accepted, a candidate placed) have no status of their own — send them as in_progress with the milestone in note, which lands on the referral's timeline for the agency to see.

Body parameters

reference
string optional
The referral UUID from the referral we sent you (required).
status
string optional
One of: accepted, declined, in_progress, completed (required). Case-insensitive and trimmed, so "Accepted" is accepted. Must be a legal move from the referral's current status — see above.
declined_reason
string optional
Short reason, recommended when status = declined.
your_reference
string optional
Your own case/matter reference; stored and shown on our side.
note
string optional
Free-text note added to the referral's timeline.
estimated_completion_date
string optional
Your expected completion date (YYYY-MM-DD).
event_id
string · identifier optional
Optional idempotency key; re-delivery of the same id is skipped.

Responses

200 { "success": true, "reference": "550e8400-…", "status": "accepted" }
200 { "status": "replay_skipped" }
401 { "error": "Invalid credentials" }
404 { "error": "No referral found for that reference" }
422 { "error": "Cannot change a 'completed' referral to 'accepted'" }
response
{ "success": true, "reference": "550e8400-…", "status": "accepted" }