Webhooks
Ready POSTs a signed JSON event to a URL you own for replies, deliveries and opt-outs, so you can verify each one came from Ready. Your endpoint should answer within 5 seconds, and Ready retries a failed delivery on a schedule.
Key facts
- Request: POST of { event, timestamp, data }
- Timeout: 5 seconds
- Retries: after 1, 5, 15, 40, 120, 360, 720 and 1440 minutes
- Verify: check the signature on each event
- Test: send a test event before you go live
Ready POSTs a JSON event to a URL you own when something happens: a reply, a delivery, an opt-out, or a call if you ask for call events. You need a public URL that accepts POST; no-code tools such as n8n and Make.com give you one (see Integrations). Save it with PUT /v1/webhooks, then verify the signature on every event. For tags, pipeline stages and the other events not in the table below, use trigger subscriptions. Running a different app on each number? Give a number its own URL with PUT /v1/numbers/:id: its replies and delivery statuses go there, signed with the same secret.
#The Event object
Every event is a JSON POST shaped { event, timestamp, data }.
eventstring- The event type, from the table below, or
testfor a generic test event. A sample of a real event sent by POST /v1/webhooks/test keeps its real event name and carries"test": truenext todata; live events never carrytest, so skip any event where it istruein production. A generic test event’sdata.user_idis the id of the user who sent the test; live events do not carry it. timestampstring- When it happened, ISO 8601 UTC with milliseconds. A retry keeps the first try’s timestamp.
dataobject- The fields listed for the event type below. When your webhook takes your sub-accounts’ events (
include_sub_accounts), a sub-account’s event also hassub_account:{ "id", "name" }, the sub-account it happened in. On a call event, that copy’srecording_urlends in?sub_account=and the sub-account’s id, so your own key opens it.
Each event also carries an X-Ready-Event-Id header that stays the same on every retry: use it to skip a repeat. contact_opted_out, contact_opted_in and contact_created have no message_id. contact_id is safe for them: a contact is created once, and a repeated opt-out or opt-in for the same contact changes nothing.
#Event types
| Event | Sent when | data |
|---|---|---|
inbound_reply |
A contact texts one of your numbers, or sends an iMessage to your iMessage line. | message_id, public_message_id, contact_id, from, to, body, segments, optional media_url, optional channel
Field notesTo look the reply up, passmessage_id to GET /v1/messages/:id. It is Ready’s numeric id for the incoming message and works for every reply. public_message_id is the same message as a string, and GET /v1/messages/:id accepts it too; it and segments are missing for numbers connected through GoHighLevel. media_url is included for a carrier reply when Ready saved its attachment. It is a Ready-hosted URL; a text-only reply or failed media capture has no media_url. A reply with several photos sends one inbound_reply for the text and first photo, then one more per extra photo Ready saved, each with an empty body, segments 0 and its own public_message_id. A reply from a contact who is blocked on your account (inbound_blocked is 1, or their status is the text blocked) is saved but fires no inbound_reply, automation or Zapier/n8n trigger. An iMessage reply has channel: "imessage" and no segments. Its to is your iMessage line, or null when it came in on Ready’s shared line. Its media_url is the photo or voice message it carried, and Ready writes its body: Sent a photo, followed by : and the caption when there is one, for a photo, and Sent a voice message for a voice message. Those two sentences are part of the contract, so match on them if you need to. A voice message also fires voice_message_received if you subscribed to it. An email reply (from a cold email you sent) has channel: "email", no segments, email addresses in from and to, and a numeric public_message_id (the same number as message_id). GET /v1/messages lists texts only, so an email reply is not in it; read it with GET /v1/messages/:id and its message_id. A WhatsApp reply has channel: "whatsapp" and no segments. A tapback (a heart or thumbs up on your message) doesn’t fire inbound_reply: subscribe to imessage_tapback. A photo Ready could not copy fires no event, and none fires later if a retry recovers it. Ready retries the copy for 24 hours; when it works, the photo’s media_url appears on GET /v1/messages/:id although the webhook never carried one, so re-read the message if you expected a photo. A reply inside an iMessage group fires no inbound_reply either: read group replies with GET /imessage/groups/:id/messages. A reply is saved but fires no inbound_reply when the contact is blocked, or when the same contact has sent more than 50 texts in 24 hours (the cap is rolling, and counts every channel). To catch up on replies that fired nothing, list GET /v1/messages with direction=inbound.
|
message_delivered |
The carrier confirms delivery. Once per attempt. An iMessage sent through some lines can’t report delivery, so for those this fires when the iMessage is sent. When Ready resends a failed text, the resend fires its own event under the same public message_id (see Failures Ready resends for you). | message_id, from, to, contact_id, status, error_reason, error_detail, error, body, sent_body; a text Ready sent for you, such as the automatic reply to STOP, HELP or START, adds source: "system_compliance" (no other text has source); an iMessage or WhatsApp event adds channel, and an iMessage event adds ready_message_id
Field notesmessage_id is the string your send returned, preserved across automatic resends (an iMessage send returns Ready’s integer row id instead; its events carry that integer as ready_message_id, so match on it, and carry the carrier’s string id in message_id, which can start with a short prefix such as im: or br: (it was zs: before 2026-11-15, see the changelog); treat it as opaque). body is the text you asked to send and sent_body is the text that went out, with any opt-out line Ready added. A WhatsApp event has channel: "whatsapp"; on a failure its error_detail is WhatsApp not delivered and its error_reason takes the same values as a text’s (unknown when none fits). error is a copy of error_detail on a text message; an iMessage event has no error. error_reason and error_detail mean the same as on GET /v1/messages/:id and take the same values. Both are null on delivery. A text message event’s status is delivered or failed. GET /v1/messages/:id can report the same failed text as undelivered (the carrier took it but could not reach the phone); its error_reason is the same in both, so match the two on error_reason, not on status. For an iMessage from your iMessage line, data has only message_id, to, contact_id, status and channel: "imessage", plus error_detail (iMessage not delivered) on a failure. It has no from and no error_reason. When that iMessage was to a saved contact, Ready resends it as a text on its own unless it was sent as iMessage only, and the text fires its own message_delivered or message_failed, so don’t resend it yourself.
|
message_failed |
The carrier reports a failure. Once per attempt, and not always final. Only for messages the carrier accepted: a send refused up front returns its error directly instead. If Ready resends the text, a message_delivered or another message_failed follows under the same public id. | |
contact_opted_out | A contact opts out: they text STOP or another opt-out keyword, Ready reads their reply as a request to stop, or a complaint scan of their replies finds one. An opt-out you add through the in-app assistant fires it too. Opt-outs you add on a contact or by import, TCPA scrubbing and CRM sync don’t trigger it. When Ready reads a reply as a wrong number, it sets the contact’s status to wrong_number and stops texts to it, and no contact_opted_out fires: poll GET /contacts/:id to see it. The Zapier and n8n trigger for the same fact is new_opt_out, which carries more fields (names, email, opted_out_at and the keyword). | contact_id, phone |
contact_opted_in off by default | A contact who had opted out texts START or another opt-in keyword, and Ready lifts the opt-out. Use it to undo a contact_opted_out you saved. An opt-out you remove yourself doesn’t trigger it. | contact_id, phone |
call_received off by default |
A call to one of your numbers, or a FaceTime Audio call to your iMessage line, starts ringing. A number with Forward calls turned on in Settings is forwarded by the carrier before it reaches Ready, so its calls aren’t recorded and send no call webhooks. | The call: call_id, channel, direction, from, to, status, outcome, duration_seconds, disposition, notes, contact_id, contact_name, agent_id, agent_name, recording_url, created_at, transcript, transcript_starts_ms, legs
Field notescall_id is in_ plus a number for a call to your numbers, out_ plus a number for a Ready Dialer call and ft_ plus a number for a FaceTime Audio call. channel is phone or facetime. direction is inbound or outbound. outcome is one of answered, voicemail, no_answer, busy, failed or missed, and is null on call_received because the call is still ringing. On call_completed for a recorded outbound call it can still be provisional: Ready may change it to voicemail or no_answer after it reads the transcript, usually within a few minutes, with no new event. Read the call (GET /v1/calls/{call_id}) for the final value. status for a call to your numbers is received, forwarding or ringing_agent on call_received, and answered or missed on call_completed. For a FaceTime Audio call (channel facetime) call_received carries initiated or ringing, and completed or failed when Ready first sees the call after it has already ended. The full list is under The Call object. recording_url is a Ready API address that returns the audio when you call it with your API key, or null when the call has no recording. transcript is null until a transcript exists, and always null when the call isn’t recorded. transcript_starts_ms is the start of each transcript line in milliseconds, or null when there are no times. legs says who answered each side of an outbound call (your team member, then the lead), and is null on other calls; on a call from Start a call where nobody pressed 1, call_completed carries rep_not_confirmed as the rep leg’s ended_reason and the lead leg reads not_dialed. disposition and notes are set only on Ready Dialer calls. Any field can be null except call_id, channel, direction and duration_seconds.
|
call_completed off by default | A call to one of your numbers, a Ready Dialer call or a FaceTime Audio call ends. Sent once per call. Calls to a number with Forward calls turned on send no call webhooks (see call_received). | |
call_recording_ready off by default | The recording of a call to one of your numbers, a Ready Dialer call or a FaceTime Audio call is saved and recording_url can be fetched. | |
voice_message_received off by default | A contact sends a voice message to your iMessage line. Fields: message_id, contact_id, from, to (your iMessage line), media_url (plays the audio) and received_at. | |
registration_in_review off by default |
A paid brand or campaign registration is accepted and queued for the carriers' review. It fires when payment settles, which can be before the filing reaches the carriers. | registration_id, sub_account_id, registration_type, brand_status, campaign_status, rejection_reason
Detailsregistration_id is the brand or campaign that moved: the id of its Registration object. sub_account_id is the Ready account the registration belongs to. If that account is a sub-account, the event also goes to its agency’s webhook, so an agency can follow every client from one URL. registration_type is brand or campaign: the one that just changed. brand_status and campaign_status are the status of the account’s newest brand and newest campaign (by creation, not by approval), or null if it has none yet. Cancelled and unpaid rows are left out, as in GET /v1/registration. The values are the ones status takes in the Registration object. GET also shows an approved row first, so an account with an approved campaign and a newer rejected one can read campaign_status: "rejected" here and approved with can_send_registered: true there. Don’t turn sending on or off from these fields; read GET /v1/registration. Only moves to approved, rejected or in review are announced. A registration that is suspended, deregistered or cancelled sends no event, and neither does one restored from suspension to approved: check GET /v1/registration to learn that a registration stopped sending. rejection_reason is the carrier’s reason on registration_rejected, the same value as rejection_reason in GET /v1/registration, and null on the other two.
|
registration_approved off by default | The carriers approve a brand or campaign. | |
registration_rejected off by default | The carriers reject a brand or campaign. Fix it and resubmit, and you get registration_in_review again. | |
registration_approval_revoked off by default | The carriers take back an approval they gave: the campaign moves from approved to suspended or deregistered, and its texts are blocked again. campaign_status says which. Stop sending until you fix it and it is approved again. | |
vetting_completed off by default | The carrier finishes a paid brand vetting and sends its result. | registration_id, result, vetting_type, vetting_score
Field notesresult is passed or failed. vetting_type is standard or enhanced, or null when the carrier didn’t name the tier, and vetting_score is the carrier’s score, or null when it gave none. Unlike the registration_* events, vetting_completed goes to an agency only when its webhook takes sub-account events (include_sub_accounts), and then the client is named in sub_account: { "id", "name" }; there is no sub_account_id. On failed, Ready’s team is alerted to sort out a refund or a new vet with you.
|
number_active off by default |
A number Ready ordered from the carrier for you is set up and can be used. A number that was ready at once (instant: true when you bought it) doesn’t send it. | phone_number_id, phone_number, status, replaces_phone_id
Field notesphone_number_id is the id Buy a number returned. status is active. Use this instead of polling Get a number. replaces_phone_id is set when Ready ordered this number to replace one of yours (for example a number flagged as spam): it is the id of the number being replaced, which Ready releases shortly after. If you send with that number in from, switch to phone_number. It is null for a number you bought.
|
number_rejected off by default | The carrier can’t fill a number Ready ordered for you. For a US number, Ready may first try other area codes in the same state, so this comes after those tries. | phone_number_id, status, country, area_code, reason, can_replace
Field notesstatus is provider_rejected. reason is no_stock when the area code ran out of numbers, else carrier_rejected. can_replace is true for a US local number: pick a new area code with Replace a rejected number, at no charge. For a toll-free number or a number in another country it is false, and we have already tried to return your payment. If that refund fails, our team is alerted and finishes it by hand.
|
port_request_updated off by default | A port request changes status: it goes to the carrier, it completes, it is rejected, or it is cancelled. It’s also sent when the carrier’s port date is set later, with status and previous_status both with_carrier. | port_request_id, status, previous_status, numbers, cutover_on, reason
Field notesstatus is the new status: with_carrier, rejected, cancelled or completed. numbers lists the numbers in the request. cutover_on is the carrier’s port date, or null before it gave one. reason says why it couldn’t port, on rejected only; otherwise it is null. On completed the numbers are on your account: list them with GET /v1/numbers.
|
reply_sorted off by default | Reply sorting labels a text reply. iMessage replies aren’t sorted. | message_id, public_message_id, contact_id, conversation_id, reply_category
Field notesmessage_id is the same as on that reply’s inbound_reply, so you can match the two. reply_category is the label, the same value GET /v1/messages/:id shows.
|
imessage_tapback off by default | A contact puts a tapback (a heart, a thumbs up and so on) on a message in an iMessage thread on your own iMessage line, or takes one back. | message_id, message_direction, contact_id, from, reaction, emoji, channel
Field notesmessage_id is the message they reacted to: for a message you sent, the same message_id as its message_delivered. from (here and on imessage_typing) is the handle as iMessage reports it, not normalized: usually E.164, sometimes an email address. Don’t reject an event because from isn’t a phone number. message_direction is outbound for your message and inbound for one of theirs. reaction is one of love, like, dislike, laugh, emphasize or question, or null when they took their tapback back (then emoji is null too). A tapback on a message Ready can’t match is sent as an inbound_reply instead, as before.
|
message_read off by default | The contact reads an iMessage you sent. iMessage lines that can’t report reads never send it. | message_id, to, contact_id, status, read_at, channel |
imessage_typing off by default | A contact starts or stops typing to your own iMessage line in a one to one thread. Group threads and Ready’s shared line don’t send it. | from, contact_id, typing, channel
Field notestyping is true when they start and false when they stop. contact_id is null when no contact has their number. A retried event can arrive after a newer one, so order them by timestamp.
|
contact_created off by default |
A contact is created one at a time (POST /contacts or in the app). Imports, forms, Zapier, GoHighLevel sync and contacts created by an incoming text don’t trigger it. |
contact_id, first_name, last_name, phone, email, source |
Which events you get. Saving a URL with no events list subscribes you to the four text events: inbound_reply, message_delivered, message_failed and contact_opted_out. Every other event, marked off by default in the table, is sent only when you list it in events.
To retrieve photos from earlier replies, use GET /v1/messages?direction=inbound and read each message’s media_url. The list returns the public message reference used by the single-message endpoint.
Test it: POST /v1/webhooks/test sends a signed test event, or a sample of any event above, to your saved URL and tells you what your endpoint answered. Send test in Settings → Developers → Webhooks sends a sample of every event you subscribe to. It has a 5-second timeout. Return a 2xx, and ignore events you don’t handle. Ready ignores the body of your answer, so a TwiML reply doesn’t send a text. To reply, call POST /v1/messages. A status_callback on a /v1 send is ignored. Sends made with a test key don’t trigger message_delivered or message_failed, so use Send test to try your endpoint.
{
"event": "inbound_reply",
"timestamp": "2026-10-01T20:40:12.004Z",
"data": {
"message_id": 19408828,
"public_message_id": "479088672338905475139912",
"contact_id": 101,
"from": "+12125550199",
"to": "+14155550100",
"body": "Yes, I'm interested!",
"segments": 1
}
}
{
"event": "message_delivered",
"timestamp": "2026-10-01T20:32:09.912Z",
"data": {
"message_id": "179088672338905475132359",
"from": "+14155550142",
"to": "+12125550199",
"contact_id": 101,
"body": "Your appointment is tomorrow at 3pm.",
"sent_body": "Your appointment is tomorrow at 3pm. Reply STOP to opt out.",
"status": "delivered",
"error_reason": null,
"error_detail": null
}
}
{
"event": "message_failed",
"timestamp": "2026-10-01T20:33:14.380Z",
"data": {
"message_id": "179088672338905475132360",
"from": "+15550100123",
"to": "+15559876543",
"contact_id": 102,
"body": "Your order shipped.",
"sent_body": "Your order shipped. Reply STOP to opt out.",
"status": "failed",
"error_reason": "recipient_cannot_receive_sms",
"error_detail": "This contact's number can't receive texts. Try calling instead.",
"error": "This contact's number can't receive texts. Try calling instead."
}
}
{
"event": "contact_opted_out",
"timestamp": "2026-10-01T20:45:00.731Z",
"data": {
"contact_id": 102,
"phone": "+15559876543"
}
}
{
"event": "contact_opted_in",
"timestamp": "2026-10-02T09:12:40.118Z",
"data": {
"contact_id": 102,
"phone": "+15559876543"
}
}
{
"event": "contact_created",
"timestamp": "2026-10-01T21:04:51.779Z",
"data": {
"contact_id": 103,
"first_name": "Ada",
"last_name": "Lovelace",
"phone": "+12125550199",
"email": "ada@example.com",
"source": "manual"
}
}
{
"event": "test",
"timestamp": "2026-10-01T21:10:00.000Z",
"data": {
"message": "Test event",
"user_id": 1042
}
}
{
"event": "call_completed",
"timestamp": "2026-10-01T21:20:44.118Z",
"data": {
"call_id": "in_4821",
"channel": "phone",
"direction": "inbound",
"from": "+12125550199",
"to": "+14155550100",
"status": "answered",
"outcome": "answered",
"duration_seconds": 94,
"disposition": null,
"notes": null,
"contact_id": 101,
"contact_name": "Ada Lovelace",
"agent_id": 7,
"agent_name": "Sam Lee",
"recording_url": null,
"created_at": "2026-10-01T21:19:08.512Z",
"transcript": null
}
}
{
"event": "registration_rejected",
"timestamp": "2026-10-01T22:05:31.220Z",
"data": {
"registration_id": 481,
"sub_account_id": 4821,
"registration_type": "campaign",
"brand_status": "approved",
"campaign_status": "rejected",
"rejection_reason": "Message samples don't match the use case."
}
}
{
"event": "number_active",
"timestamp": "2026-10-03T15:02:11.540Z",
"data": {
"phone_number_id": 5512,
"status": "active",
"phone_number": "+14155550123",
"replaces_phone_id": null
}
}
{
"event": "port_request_updated",
"timestamp": "2026-10-04T16:20:05.002Z",
"data": {
"port_request_id": 88,
"status": "with_carrier",
"previous_status": "submitted",
"numbers": ["+14155550188"],
"cutover_on": null,
"reason": null
}
}
{
"event": "reply_sorted",
"timestamp": "2026-10-01T20:40:13.910Z",
"data": {
"message_id": 19408828,
"public_message_id": "479088672338905475139912",
"contact_id": 101,
"conversation_id": 7731,
"reply_category": "interested"
}
}
{
"event": "imessage_tapback",
"timestamp": "2026-10-05T18:11:40.233Z",
"data": {
"message_id": "im:4512",
"message_direction": "outbound",
"contact_id": 101,
"from": "+12125550199",
"reaction": "love",
"emoji": "❤️",
"channel": "imessage"
}
}
#Set webhook settings
Sets your webhook URL and events. Saving replaces the previous settings. Needs a live key of the account owner or an admin, with the manage_integrations permission.
Parameters
urlstringRequired- Your endpoint, sent on every call. To pause and keep it, send
urland"enabled": false: a save withouteventskeeps the events you saved. Usehttps://: anhttp://URL is refused withinvalid_url, since it would send your customers' messages unencrypted, and nothing is sent to one saved before that rule. The response returns the URL normalized. eventsstring[]- Any of
inbound_reply,message_delivered,message_failed,contact_opted_out,contact_opted_in,call_received,call_completed,call_recording_ready,voice_message_received,registration_approved,registration_rejected,registration_in_review,registration_approval_revoked,number_active,number_rejected,port_request_updated,vetting_completed,reply_sorted,imessage_tapback,message_read,imessage_typing,contact_created. Leave it out for the four text events; a later save withouteventskeeps the events you saved, and a list you send replaces them. The other events are sent only when you list them.Field notes
It must be an array: anything else counts as leaving it out. A webhook saved earlier keeps the events it was saved with until you save again, so checkeventsinGET /v1/webhooks. An unknown name is refused with400 invalid_event, and nothing is saved.contact_createdis never on by default: list it ineventsto get it. It is also the New contact box in the dashboard, and an API save that leaves it out turns it off. enabledbooleanDefaulttrue- Send the JSON boolean
falseto pause. regenerate_secretboolean- Send the JSON boolean
trueonly when you want a new signing secret. The old one stops working immediately, so leave it out of anything you run more than once.Field notes
The response includessecretthe first time you save, when Ready creates your secret, and whenever you sendtrue. That’s the only time the API shows it:GET /v1/webhooksdoesn’t return it, and Settings → Developers → Webhooks shows it in full only once, when it’s created, then a masked value. If you lose it, rotate it. include_sub_accountsbooleanDefaultfalse- Send the JSON boolean
trueto also get every sub-account’s events at this URL, each with asub_accountfield. Leave it out to keep what you saved last.Field notes
Each copy is its own event with its ownX-Ready-Event-Id, signed with your secret and sent for the events you picked here. A sub-account with its own webhook still gets its events there too. Registration events already reach your webhook for every sub-account, withsub_account_id, whatever this says.
Returns
dataobjecturl,events,enabled,include_sub_accounts, andsecretonly when this save created or rotated it.
Errors
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_event | A name in events isn’t one Ready sends. |
| 400 | invalid_url | Not a URL, not http or https, or a private or internal host. |
| 400 | invalid_field | url is a list or object, or enabled, regenerate_secret or include_sub_accounts isn’t a JSON boolean. |
| 400 | url_required | url is missing. |
| 403 | permission_denied | The key’s user lacks manage_integrations. |
| 403 | OWNER_ONLY | The key isn’t the account owner’s or an admin’s. |
| 403 | test_key_not_allowed | A test key. Nothing is saved. |
curl -X PUT "https://api.tryready.com/v1/webhooks" \
-H "X-API-Key: $READY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://you.example.com/ready-webhook",
"events": [
"inbound_reply",
"message_failed"
]
}'
const res = await fetch('https://api.tryready.com/v1/webhooks', {
method: 'PUT',
headers: {
'X-API-Key': process.env.READY_API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"url": "https://you.example.com/ready-webhook",
"events": [
"inbound_reply",
"message_failed"
]
}),
signal: AbortSignal.timeout(35 * 1000),
});
const json = await res.json().catch(() => ({}));
if (!res.ok || json.success === false) {
throw new Error(`${res.status}${json.error_code || json.code ? ' ' + (json.error_code || json.code) : ''}: ${json.error || json.message || res.statusText} (request ${res.headers.get('x-request-id')})`);
}
import os, requests
r = requests.put(
"https://api.tryready.com/v1/webhooks",
headers={"X-API-Key": os.environ["READY_API_KEY"]},
json={
"url": "https://you.example.com/ready-webhook",
"events": ["inbound_reply", "message_failed"]
},
timeout=35,
)
data = r.json() if r.headers.get("content-type", "").startswith("application/json") else {}
if not r.ok or data.get("success") is False:
raise RuntimeError(f'{r.status_code} {data.get("error_code") or data.get("code") or ""}: {data.get("error") or data.get("message") or r.reason} (request {r.headers.get("x-request-id")})')
{
"success": true,
"data": {
"url": "https://you.example.com/ready-webhook",
"events": [
"inbound_reply",
"message_failed"
],
"enabled": true,
"include_sub_accounts": false,
"secret": "whsec_3f9a…"
}
}
{
"success": false,
"error": "That doesn't look like a web address. Use a full URL that starts with https://.",
"error_code": "invalid_url",
"code": "invalid_url"
}
#Get webhook settings
Your webhook URL, events and on/off state.
Returns
data.urlstring | null- Your endpoint. A key without the
manage_integrationspermission sees only its origin (https://host). data.eventsstring[]- Subscribed events.
data.enabledboolean- Always
falsewhen there’s no URL. data.include_sub_accountsboolean- Whether this webhook also gets your sub-accounts’ events.
data.unknown_eventsstring[]- Names in
eventsthat aren’t events Ready sends, so nothing goes out for them. Usually empty; a webhook saved before unknown names were refused can hold some. Save the events you want to clear them.
Errors
| HTTP | Code | When |
|---|---|---|
| 500 | internal_error | Read failed. |
curl "https://api.tryready.com/v1/webhooks" \
-H "X-API-Key: $READY_API_KEY"
const res = await fetch('https://api.tryready.com/v1/webhooks', {
headers: {
'X-API-Key': process.env.READY_API_KEY,
},
signal: AbortSignal.timeout(35 * 1000),
});
const json = await res.json().catch(() => ({}));
if (!res.ok || json.success === false) {
throw new Error(`${res.status}${json.error_code || json.code ? ' ' + (json.error_code || json.code) : ''}: ${json.error || json.message || res.statusText} (request ${res.headers.get('x-request-id')})`);
}
import os, requests
r = requests.get(
"https://api.tryready.com/v1/webhooks",
headers={"X-API-Key": os.environ["READY_API_KEY"]},
timeout=35,
)
data = r.json() if r.headers.get("content-type", "").startswith("application/json") else {}
if not r.ok or data.get("success") is False:
raise RuntimeError(f'{r.status_code} {data.get("error_code") or data.get("code") or ""}: {data.get("error") or data.get("message") or r.reason} (request {r.headers.get("x-request-id")})')
{
"success": true,
"data": {
"url": "https://you.example.com/ready-webhook",
"events": [
"inbound_reply",
"message_delivered",
"message_failed"
],
"enabled": true,
"include_sub_accounts": false,
"unknown_events": []
}
}
#Send a test webhook
Sends a signed test event to your saved URL and tells you what your endpoint answered. With no body it sends the generic test event. Send event to get a sample of any event type instead. A test key works too.
Parameters
eventstringOptional- What to send:
test(the default), the name of any event in the table above, orallfor one sample of every event you subscribe to (the generictestwhen you subscribe to none). A sample has the samedatakeys as the live event, made-up values (ids,+1555555xxxxnumbers,example.comaddresses) and"test": truenext todata. It is signed and sent the same way as a live event. Sending a sample touches no message, call, contact, opt-out list or balance. An unknown name is a400invalid_field.
Returns
successbooleantruewhen your endpoint answered2xx.statusinteger- The HTTP status your endpoint returned.
pausedboolean- Only present, as
true, when the webhook is switched off. It still takes a test, but gets no live events. eventsarray- Only present when you sent
event: the event names that were sent. Withallthe events go out at the same time, so they can arrive in any order.statusis the first answer, and a failure from any one of them is the response.
Errors
| HTTP | Code | When |
|---|---|---|
| 400 | webhook_endpoint_error | Your server answered with a non-2xx status. The response includes it as status. |
| 400 | webhook_not_set | No URL is saved. Save one with PUT /v1/webhooks, then send a test. |
| 400 | webhook_unreachable | Your server didn’t answer, refused or dropped the connection, or the secure connection failed; error says which, in the same words as the delivery log. |
| 400 | webhook_url_invalid, webhook_url_private, webhook_url_unresolved or webhook_url_redirect | The saved URL was refused; error says why. |
| 500 | internal_error | The test failed on our side. |
curl -X POST "https://api.tryready.com/v1/webhooks/test" \
-H "X-API-Key: $READY_API_KEY"
const res = await fetch('https://api.tryready.com/v1/webhooks/test', {
method: 'POST',
headers: {
'X-API-Key': process.env.READY_API_KEY,
},
signal: AbortSignal.timeout(35 * 1000),
});
const json = await res.json().catch(() => ({}));
if (!res.ok || json.success === false) {
throw new Error(`${res.status}${json.error_code || json.code ? ' ' + (json.error_code || json.code) : ''}: ${json.error || json.message || res.statusText} (request ${res.headers.get('x-request-id')})`);
}
import os, requests
r = requests.post(
"https://api.tryready.com/v1/webhooks/test",
headers={"X-API-Key": os.environ["READY_API_KEY"]},
timeout=35,
)
data = r.json() if r.headers.get("content-type", "").startswith("application/json") else {}
if not r.ok or data.get("success") is False:
raise RuntimeError(f'{r.status_code} {data.get("error_code") or data.get("code") or ""}: {data.get("error") or data.get("message") or r.reason} (request {r.headers.get("x-request-id")})')
{
"success": true,
"status": 200
}
{
"success": false,
"status": 401,
"error_code": "webhook_endpoint_error",
"code": "webhook_endpoint_error",
"error": "Your server answered with an error (status 401). Check your server, then send another test."
}
#Missed call text back
You do not need to build a missed call text back. Ready sends it for you when nobody answers a call to one of your numbers. Turn it on under Settings for the number, or build your own in Automations with the A call is missed trigger, then add a Send text step.
To know a call was missed from your own code, listen for call_completed (off by default, see Event types). A call to your numbers that nobody answered has direction inbound, status missed and outcome missed. Calls that were answered carry answered. To list them later, call GET /v1/calls?direction=inbound&outcome=missed.
#Verifying the signature
Every event carries X-Signature: sha256=<hex>: the lowercase hex HMAC-SHA256 of the exact raw request body, keyed with your whole signing secret (including the whsec_ prefix).
Compare in constant time, and reject anything that doesn’t match.
- Verify the raw bytes. A body that was parsed and re-serialized won’t match.
- To block replays, check
X-Ready-Signature-V2(next point) and drop repeats byX-Ready-Event-Id: a retry and a resend keep the original event’s id and thetimestampin the body, so the event id is how you tell a repeat. The samples here check the V2 signature and its 5-minute window; keep theX-Ready-Event-Ids you have handled in your own store to drop repeats. - A signed event also carries
X-Ready-Timestamp(unix seconds when this try was sent) andX-Ready-Signature-V2: v2=<hex>, the HMAC-SHA256 of the timestamp, a dot and the exact raw body (${timestamp}.${body}), with the same secret. Every try and resend is signed again at its own send time, so you can check that one and refuse a timestamp more than 5 minutes off: a request copied from a log can’t be posted to you again later.X-Signaturestays as it is. - No
X-Signatureheader? Webhooks saved before signing existed are sent unsigned. Save your webhook once, or rotate the secret, to start signing. - Treat the secret like a password. Rotating it takes effect immediately, so update your receiver at the same time.
#Request headers
Content-Type: application/json, User-Agent: Ready-Webhooks/1.0 and X-Ready-Event-Id (on a test event it starts with test_), and, when the webhook has a signing secret, X-Signature, X-Ready-Timestamp and X-Ready-Signature-V2.
#Delivery
Each try has a 5-second timeout. If your endpoint times out, can’t be reached, or answers 5xx, 408 or 429, Ready tries again after 1, 5, 15, 40, 120, 360, 720 and 1440 minutes, with the same body and the same X-Ready-Event-Id. Any other 4xx is not retried, and automatic retries stop 4320 minutes after the event (a resend from the delivery log can come later). If Ready crashes or is stopped while it is still sending an event, that event and its retry can be lost and won’t be in the delivery log: reconcile with GET /v1/messages. Respond quickly with a 2xx and do slow work afterwards. Redirects are followed (up to 5) and 301, 302, 307 and 308 stay POST with the same body, except that one from https:// to http:// is refused and logged in the delivery log, so the body never goes out unencrypted; a 303 is followed with a GET. Events can arrive in any order. If your endpoint was down for longer than that, find what failed with the delivery log and resend it, or reconcile with GET /v1/messages and GET /v1/opt-outs.
In n8n or Make.com, add a Webhook trigger and paste its URL into the URL field in Ready’s Settings → Developers → Webhooks (or send it with PUT /v1/webhooks). In n8n, use the Production URL, not the Test URL. Signature checks are optional for no-code tools.
// Node.js + Express (save as .mjs, like the other Node examples)
import express from 'express';
import crypto from 'node:crypto';
const app = express();
const SECRET = process.env.READY_WEBHOOK_SECRET; // whsec_...
const handled = new Set(); // event ids already handled; keep them in a database in production, this empties on restart
// X-Ready-Signature-V2 signs the X-Ready-Timestamp header (unix seconds when this try was sent), a dot and the raw body.
// Every try and resend is signed again when it is sent, so refuse a timestamp more than 5 minutes off: a request copied from a log can't be posted again later.
function isFromReady(rawBody, timestamp, header) {
const sent = /^\d+$/.test(String(timestamp || '')) ? Number(timestamp) : NaN;
if (!Number.isFinite(sent) || Math.abs(Date.now() / 1000 - sent) > 300) return false;
const expected = 'v2=' + crypto.createHmac('sha256', SECRET).update(timestamp + '.').update(rawBody).digest('hex');
const got = Buffer.from(String(header || ''));
const want = Buffer.from(expected);
return got.length === want.length && crypto.timingSafeEqual(got, want);
}
// express.raw keeps the exact bytes Ready signed; do not use express.json() on this route
app.post('/ready-webhook', express.raw({ type: 'application/json' }), (req, res) => {
if (!isFromReady(req.body, req.get('X-Ready-Timestamp'), req.get('X-Ready-Signature-V2'))) return res.sendStatus(401);
let event, timestamp, data;
try {
({ event, timestamp, data } = JSON.parse(req.body));
} catch {
return res.sendStatus(401);
}
// a retry or a resend carries the same X-Ready-Event-Id: answer 200 again, but handle the event once
const eventId = req.get('X-Ready-Event-Id');
if (handled.has(eventId)) return res.sendStatus(200);
handled.add(eventId);
res.sendStatus(200); // answer within 5 seconds
// data holds phone numbers and message text: do not log it
setImmediate(() => console.log('OK', event, eventId, timestamp));
});
app.listen(4789);
# Python (standard library only)
import hmac, hashlib, os, re, time
SECRET = os.environ["READY_WEBHOOK_SECRET"].encode() # whsec_...
# X-Ready-Signature-V2 signs the X-Ready-Timestamp header (unix seconds when this try was sent), a dot and the raw body.
# Every try and resend is signed again when it is sent, so refuse a timestamp more than 5 minutes off: a request copied from a log can't be posted again later.
def is_from_ready(raw_body: bytes, timestamp: str, header: str) -> bool:
if not re.fullmatch(r"\d+", timestamp or ""):
return False
if abs(time.time() - int(timestamp)) > 300:
return False
expected = "v2=" + hmac.new(SECRET, timestamp.encode() + b"." + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, header or "")
# A retry or a resend carries the same X-Ready-Event-Id: keep the ids you have handled in your store and answer 200 again without handling the event twice.
# Flask: is_from_ready(request.get_data(), request.headers.get("X-Ready-Timestamp"), request.headers.get("X-Ready-Signature-V2"))
# Django: is_from_ready(request.body, request.headers.get("X-Ready-Timestamp"), request.headers.get("X-Ready-Signature-V2"))
#Trigger subscriptions
Trigger subscriptions are a second, separate way to get events, built for Zapier and n8n. Each subscription is one event and one URL, and you can hold up to 200. They are not your account webhook: they don’t show in GET /v1/webhooks, and the /v1/webhooks events above have no campaign, drip or automation events. To hear when a contact finishes a drip, subscribe to drip_completed here.
Five trigger events are the same facts as account webhook events under other names: new_message is inbound_reply, message_delivered and message_failed keep their names, new_opt_out is contact_opted_out (but new_opt_out fires only on a contact’s reply; an opt-out added through the in-app assistant reaches contact_opted_out alone) and new_contact is contact_created. Their fields differ too. A trigger sends from_number and to_number where the account webhook sends from and to, and a trigger’s message_id is Ready’s numeric id for the message, not the id your send returned. On message_delivered and message_failed triggers, public_message_id is the id your send returned, the same as the account webhook’s message_id.
Subscribe with a personal API key (in X-API-Key or as Authorization: Bearer) that has the manage_campaigns permission. Test keys can’t subscribe or unsubscribe (403 test_key_not_allowed), and a key of a team member who sees only assigned contacts is refused with 403 RESTRICTED_KEY. GET /zapier/webhooks lists your subscriptions (each has id, user_id, event, target_url, active as 1 or 0, consecutive_failures, last_triggered_at, created_at and filter_config), and GET /zapier/sample/:event returns a sample payload for any event.
Compatibility: the /zapier routes and the fields of each event only grow. A key or route is never renamed or removed without a dated notice in the changelog first, with the 90 days’ notice described under Versioning.
The events you can subscribe to are new_message, new_contact, new_opt_out, message_delivered, message_failed, pipeline_stage_changed, contact_tag_added, contact_tag_removed, new_conversation, drip_completed, keyword_reply, contact_dnd_changed, auto_topup_charged, subscription_billed, client_charged. The ones your account webhook doesn’t send carry these fields:
| Event | Sent when | Fields |
|---|---|---|
contact_tag_added, contact_tag_removed | A tag is added to or removed from a contact. Tags Ready applies on its own, such as Landline from a landline check or an import, do not send it; filter on the tag instead. | contact_id, first_name, last_name, phone, email, tag, all_tags, and added_at or removed_at |
pipeline_stage_changed | A contact moves to a new pipeline stage. | The contact fields, old_stage, new_stage, new_stage_name, pipeline, changed_at |
keyword_reply | A contact replies. With keywords set, only a reply that matches. | The contact fields, message_id, keyword, body, from_number, to_number, received_at |
new_conversation | A contact texts you first, starting a new thread. | The contact fields, conversation_id, first_message, from_number, to_number, started_at |
contact_dnd_changed | A contact’s do not disturb setting changes. | The contact fields, dnd_sms (a boolean here; the contact record carries it as 0 or 1), changed_at |
drip_completed | A contact finishes a drip campaign. | drip_completed fields |
#How a trigger is sent
Each event is a JSON POST with a flat body: the event’s fields at the top level, then _event (the event name), _timestamp, _delivery_id and _attempt (1 on the first try). When the event names a contact, its custom fields are added as custom_<field>. Ready sets Content-Type: application/json and, when the subscription has a signing secret, X-Signature: sha256=<hex>, the HMAC-SHA256 of the exact raw body (the same check as Verifying the signature). POST /zapier/subscribe returns the secret as signing_secret. A signed request also carries X-Ready-Timestamp (unix seconds when it was sent), X-Ready-Event-Id (the same as _delivery_id, kept on every retry) and X-Ready-Signature-V2: v2=<hex>, the HMAC-SHA256 of the timestamp, a dot and the exact raw body (${timestamp}.${body}). Check that one and refuse a timestamp more than 5 minutes off, and a request copied from a log can’t be posted to you again later. A subscription saved without one is sent unsigned. Subscriptions made before 2026-11-12 have no secret and stay unsigned until they are subscribed again (for a Zap, turn it off and on); POST /zapier/subscribe then returns one. Unsigned delivery is kept for those old subscriptions only. Use _delivery_id to dedupe. Trigger bodies follow the same rule as account webhooks: fields are only added, and removing or renaming one gets the 90 days’ email notice described under Versioning. Ignore fields you don’t know. Also keep a hard-to-guess path in your URL and treat it as a secret.
Each try has a 10-second timeout. Ready tries again, after 1, 5, 15, 40, 120, 360, 720 and 1440 minutes, only when your endpoint couldn’t be reached at all (its name didn’t resolve, or the connection was refused) or answered 429. A timeout, a 5xx or any other error is not retried, because your endpoint may already have acted on it. A retry keeps the same body and _delivery_id; only _attempt changes. Trigger events are sent best effort from memory: an event still being sent when Ready restarts (every deploy) or crashes may never arrive, is not retried and leaves no delivery to resend, so reconcile with GET /v1/messages. A 410 answer turns the subscription off. After 10 failed events in a row with no delivery in the last hour, Ready turns it off too and emails the account owner.
#drip_completed
Sent when a contact finishes a drip campaign, whether by its last step, a branch, a timer, a reply or an end step. Sending is best effort: if it fails on our side, the event is not sent later.
contact_idinteger- The contact who finished.
first_namestring- The contact’s first name, or
"". last_namestring- The contact’s last name, or
"". phonestring- The contact’s phone number in E.164. Missing if we couldn’t read the contact.
emailstring- The contact’s email, or
"". sequence_idinteger- The drip campaign id.
sequence_namestring- The drip campaign’s name.
completed_atISO 8601 string- When the contact finished.
{
"contact_id": 101,
"first_name": "John",
"last_name": "Smith",
"phone": "+15551234567",
"email": "john@example.com",
"sequence_id": 5,
"sequence_name": "7-Day Follow Up",
"completed_at": "2026-04-07T14:30:00.000Z",
"_event": "drip_completed",
"_timestamp": "2026-04-07T14:30:00.120Z",
"_delivery_id": "6f1c2b9e-3d4a-4c1f-9b7e-2a8d5e0c4f13",
"_attempt": 1
}
#Send a text (Zapier and n8n action)
Sends one text, charged and checked the same way as POST /sms/send. Needs the send_sms permission. The path starts with /zapier because the Zapier and n8n apps call it. Send an Idempotency-Key header so a retry is not sent twice; without one, an identical text to the same number inside 60 seconds is refused with 409 duplicate_send. A test key answers in the same shape with "test": true and sends nothing. status sent means Ready accepted the text for delivery, not that the phone received it: delivery comes as message_delivered or message_failed.
Parameters
tostringRequired- The number to text.
messagestringRequired- The text to send.
from_phone_number_idinteger- The Ready number to send from. Leave it out to let Ready pick.
media_urlstring- A public URL to attach as a picture message.
consent_attestedboolean- Send
truewhen you have the contact’s consent to text.
Errors
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_phone | to isn’t a number we can text. |
| 400 | no_active_number | No Ready number to send from, or the picked one isn’t on your account. |
| 402 | insufficient_balance | Not enough balance. Nothing was sent or charged. |
| 403 | number_not_assigned | The From number isn’t one you may send from. |
| 403 | opted_out | The contact opted out. The code can also be another consent reason. |
| 409 | duplicate_send | An identical text just went out. |
| 500 | charge_failed | We couldn’t confirm the charge, so nothing was sent. |
| 503 | send_dedupe_unavailable | We couldn’t check for a duplicate. Nothing was sent or charged. Replay in a minute. |
| 500 | compliance_gate_failed | Our texting-rules check couldn’t run. Nothing was sent or charged. Replay in a few minutes. |
| 202 | send_outcome_unknown | We couldn’t confirm the text went out. Check the conversation before you retry. |
curl -X POST "https://api.tryready.com/zapier/actions/send-sms" \
-H "X-API-Key: $READY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "+15550100123",
"message": "Your table is ready."
}'
const res = await fetch('https://api.tryready.com/zapier/actions/send-sms', {
method: 'POST',
headers: {
'X-API-Key': process.env.READY_API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"to": "+15550100123",
"message": "Your table is ready."
}),
signal: AbortSignal.timeout(35 * 1000),
});
const json = await res.json().catch(() => ({}));
if (!res.ok || json.success === false) {
throw new Error(`${res.status}${json.error_code || json.code ? ' ' + (json.error_code || json.code) : ''}: ${json.error || json.message || res.statusText} (request ${res.headers.get('x-request-id')})`);
}
import os, requests
r = requests.post(
"https://api.tryready.com/zapier/actions/send-sms",
headers={"X-API-Key": os.environ["READY_API_KEY"]},
json={
"to": "+15550100123",
"message": "Your table is ready."
},
timeout=35,
)
data = r.json() if r.headers.get("content-type", "").startswith("application/json") else {}
if not r.ok or data.get("success") is False:
raise RuntimeError(f'{r.status_code} {data.get("error_code") or data.get("code") or ""}: {data.get("error") or data.get("message") or r.reason} (request {r.headers.get("x-request-id")})')
{
"success": true,
"data": {
"message_id": "msg_123",
"to": "+15550100123",
"from": "+15550100456",
"segments": 1,
"sent_body": "Your table is ready.",
"compliance_text_added": null,
"status": "sent"
}
}
#Create a contact (Zapier and n8n action)
Adds one contact and answers 201 with it. If the number is already saved, answers 200 with the saved contact and a message, and changes nothing unless update_existing is true (then new tags are added and empty fields filled; nothing is removed or overwritten). Needs the edit_contacts permission.
Parameters
phonestringRequired- The contact’s phone number. It must match the saved number once both are formatted.
More parameters
first_namestring- First name.
last_namestring- Last name.
company_namestring- Company, up to 200 characters.
emailstring- Email address.
tagsstring- Comma-separated tags, like
buyer, hot-lead. pipeline_stagestring- A stage on your board, matched by name.
sourcestring- Where the contact came from. Default
zapier. custom_fieldsobject- Custom field values by name.
update_existingboolean- Fill an existing contact’s empty fields and add tags.
Errors
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_phone | phone isn’t a number we can text. |
curl -X POST "https://api.tryready.com/zapier/actions/create-contact" \
-H "X-API-Key: $READY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"phone": "+15550100123",
"first_name": "Ada",
"tags": "lead"
}'
const res = await fetch('https://api.tryready.com/zapier/actions/create-contact', {
method: 'POST',
headers: {
'X-API-Key': process.env.READY_API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"phone": "+15550100123",
"first_name": "Ada",
"tags": "lead"
}),
signal: AbortSignal.timeout(35 * 1000),
});
const json = await res.json().catch(() => ({}));
if (!res.ok || json.success === false) {
throw new Error(`${res.status}${json.error_code || json.code ? ' ' + (json.error_code || json.code) : ''}: ${json.error || json.message || res.statusText} (request ${res.headers.get('x-request-id')})`);
}
import os, requests
r = requests.post(
"https://api.tryready.com/zapier/actions/create-contact",
headers={"X-API-Key": os.environ["READY_API_KEY"]},
json={
"phone": "+15550100123",
"first_name": "Ada",
"tags": "lead"
},
timeout=35,
)
data = r.json() if r.headers.get("content-type", "").startswith("application/json") else {}
if not r.ok or data.get("success") is False:
raise RuntimeError(f'{r.status_code} {data.get("error_code") or data.get("code") or ""}: {data.get("error") or data.get("message") or r.reason} (request {r.headers.get("x-request-id")})')
{
"success": true,
"data": { "id": 9001, "phone": "+15550100123", "first_name": "Ada", "tags": ["lead"] }
}
#Update a contact (Zapier and n8n action)
Sets the fields you send on one contact and answers with the updated contact. A field left out or sent empty is not changed. tags replaces the tag list; the opt-out tag is never added or removed. Needs the edit_contacts permission.
Parameters
contact_idinteger- The contact. Send this or
phone. phonestring- The contact’s phone number. It must match the saved number once both are formatted.
first_namestring- First name.
last_namestring- Last name.
emailstring- Email address.
pipeline_stagestring- A stage on your board, matched by name.
tagsstring- Comma-separated tags that replace the current ones.
Errors
| HTTP | Code | When |
|---|---|---|
| 400 | contact_ref_required | Neither contact_id nor phone was sent. |
| 400 | nothing_to_update | No field to change was sent. |
| 404 | contact_not_found | No such contact on your account. |
curl -X PUT "https://api.tryready.com/zapier/actions/update-contact" \
-H "X-API-Key: $READY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contact_id": 9001,
"pipeline_stage": "Qualified"
}'
const res = await fetch('https://api.tryready.com/zapier/actions/update-contact', {
method: 'PUT',
headers: {
'X-API-Key': process.env.READY_API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"contact_id": 9001,
"pipeline_stage": "Qualified"
}),
signal: AbortSignal.timeout(35 * 1000),
});
const json = await res.json().catch(() => ({}));
if (!res.ok || json.success === false) {
throw new Error(`${res.status}${json.error_code || json.code ? ' ' + (json.error_code || json.code) : ''}: ${json.error || json.message || res.statusText} (request ${res.headers.get('x-request-id')})`);
}
import os, requests
r = requests.put(
"https://api.tryready.com/zapier/actions/update-contact",
headers={"X-API-Key": os.environ["READY_API_KEY"]},
json={
"contact_id": 9001,
"pipeline_stage": "Qualified"
},
timeout=35,
)
data = r.json() if r.headers.get("content-type", "").startswith("application/json") else {}
if not r.ok or data.get("success") is False:
raise RuntimeError(f'{r.status_code} {data.get("error_code") or data.get("code") or ""}: {data.get("error") or data.get("message") or r.reason} (request {r.headers.get("x-request-id")})')
{
"success": true,
"data": { "id": 9001, "phone": "+15550100123", "first_name": "Ada", "tags": ["lead"] }
}
#Add a tag (Zapier and n8n action)
Adds one tag to a contact. A replay finds the tag already there and still answers success. Needs the edit_contacts permission.
Parameters
tagstringRequired- The tag.
contact_idinteger- The contact. Send this or
phone. phonestring- The contact’s phone number. It must match the saved number once both are formatted.
Errors
| HTTP | Code | When |
|---|---|---|
| 400 | tag_required | No tag was sent. |
| 400 | tag_reserved | The tag is the opt-out tag, which changes only when the contact opts out or back in. |
| 400 | contact_ref_required | Neither contact_id nor phone was sent. |
| 404 | contact_not_found | No such contact on your account. |
curl -X POST "https://api.tryready.com/zapier/actions/add-tag" \
-H "X-API-Key: $READY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contact_id": 9001,
"tag": "vip"
}'
const res = await fetch('https://api.tryready.com/zapier/actions/add-tag', {
method: 'POST',
headers: {
'X-API-Key': process.env.READY_API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"contact_id": 9001,
"tag": "vip"
}),
signal: AbortSignal.timeout(35 * 1000),
});
const json = await res.json().catch(() => ({}));
if (!res.ok || json.success === false) {
throw new Error(`${res.status}${json.error_code || json.code ? ' ' + (json.error_code || json.code) : ''}: ${json.error || json.message || res.statusText} (request ${res.headers.get('x-request-id')})`);
}
import os, requests
r = requests.post(
"https://api.tryready.com/zapier/actions/add-tag",
headers={"X-API-Key": os.environ["READY_API_KEY"]},
json={
"contact_id": 9001,
"tag": "vip"
},
timeout=35,
)
data = r.json() if r.headers.get("content-type", "").startswith("application/json") else {}
if not r.ok or data.get("success") is False:
raise RuntimeError(f'{r.status_code} {data.get("error_code") or data.get("code") or ""}: {data.get("error") or data.get("message") or r.reason} (request {r.headers.get("x-request-id")})')
{
"success": true,
"data": { "contact_id": 9001, "tags": ["lead", "vip"] }
}
#Remove a tag (Zapier and n8n action)
Removes one tag from a contact. A replay finds the tag already gone and still answers success. Needs the edit_contacts permission.
Parameters
tagstringRequired- The tag.
contact_idinteger- The contact. Send this or
phone. phonestring- The contact’s phone number. It must match the saved number once both are formatted.
Errors
| HTTP | Code | When |
|---|---|---|
| 400 | tag_required | No tag was sent. |
| 400 | tag_reserved | The tag is the opt-out tag, which changes only when the contact opts out or back in. |
| 400 | contact_ref_required | Neither contact_id nor phone was sent. |
| 404 | contact_not_found | No such contact on your account. |
curl -X POST "https://api.tryready.com/zapier/actions/remove-tag" \
-H "X-API-Key: $READY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contact_id": 9001,
"tag": "vip"
}'
const res = await fetch('https://api.tryready.com/zapier/actions/remove-tag', {
method: 'POST',
headers: {
'X-API-Key': process.env.READY_API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"contact_id": 9001,
"tag": "vip"
}),
signal: AbortSignal.timeout(35 * 1000),
});
const json = await res.json().catch(() => ({}));
if (!res.ok || json.success === false) {
throw new Error(`${res.status}${json.error_code || json.code ? ' ' + (json.error_code || json.code) : ''}: ${json.error || json.message || res.statusText} (request ${res.headers.get('x-request-id')})`);
}
import os, requests
r = requests.post(
"https://api.tryready.com/zapier/actions/remove-tag",
headers={"X-API-Key": os.environ["READY_API_KEY"]},
json={
"contact_id": 9001,
"tag": "vip"
},
timeout=35,
)
data = r.json() if r.headers.get("content-type", "").startswith("application/json") else {}
if not r.ok or data.get("success") is False:
raise RuntimeError(f'{r.status_code} {data.get("error_code") or data.get("code") or ""}: {data.get("error") or data.get("message") or r.reason} (request {r.headers.get("x-request-id")})')
{
"success": true,
"data": { "contact_id": 9001, "tags": ["lead"] }
}
#Subscribe to a trigger
Starts sending one event to your URL. Needs the manage_campaigns permission. Returns 201 with the subscription id and its signing_secret, the key that signs every POST to this URL in X-Signature. Store it now. Subscribing the same event to the same URL again returns the same id and signing_secret with 200 and deduped: true, so a retry is safe.
Parameters
eventstringRequired- One of the trigger events, like
drip_completed. target_urlstringRequired- A public
httpsURL. A new subscription to anhttpURL is refused with400 TARGET_URL_INVALID; an existinghttpsubscription keeps working and a repeat subscribe still answers. Private and internal addresses are refused. keywordsstring- For
new_messageandkeyword_replyonly: send the event only when the text matches. Separate several with commas, up to 500 characters. Leave it out to get every reply. match_modeenumDefaultany- How
keywordsmatch:any,all,exact,not_containsoris_not.
Errors
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_event (code: INVALID_EVENT) | event isn’t one of the trigger events. |
| 400 | target_url_required (code: TARGET_URL_REQUIRED) | No target_url. |
| 400 | target_url_invalid (code: TARGET_URL_INVALID) | The URL isn’t a public https address. A new subscription to an http URL is refused; an existing http subscription keeps working. |
| 400 | too_many_webhooks (code: TOO_MANY_WEBHOOKS) | You already have 200 active subscriptions. List them with GET /zapier/webhooks and remove one with Unsubscribe from a trigger, then subscribe again. |
| 400 | invalid_field | keywords or match_mode isn’t valid. |
| 500 | subscribe_failed (code: SUBSCRIBE_FAILED) | The subscription wasn’t saved, so it won’t fire. Try again. |
curl -X POST "https://api.tryready.com/zapier/subscribe" \
-H "X-API-Key: $READY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"event": "drip_completed",
"target_url": "https://you.example.com/hooks/k7Qp2x/drip-done"
}'
const res = await fetch('https://api.tryready.com/zapier/subscribe', {
method: 'POST',
headers: {
'X-API-Key': process.env.READY_API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"event": "drip_completed",
"target_url": "https://you.example.com/hooks/k7Qp2x/drip-done"
}),
signal: AbortSignal.timeout(35 * 1000),
});
const json = await res.json().catch(() => ({}));
if (!res.ok || json.success === false) {
throw new Error(`${res.status}${json.error_code || json.code ? ' ' + (json.error_code || json.code) : ''}: ${json.error || json.message || res.statusText} (request ${res.headers.get('x-request-id')})`);
}
import os, requests
r = requests.post(
"https://api.tryready.com/zapier/subscribe",
headers={"X-API-Key": os.environ["READY_API_KEY"]},
json={
"event": "drip_completed",
"target_url": "https://you.example.com/hooks/k7Qp2x/drip-done"
},
timeout=35,
)
data = r.json() if r.headers.get("content-type", "").startswith("application/json") else {}
if not r.ok or data.get("success") is False:
raise RuntimeError(f'{r.status_code} {data.get("error_code") or data.get("code") or ""}: {data.get("error") or data.get("message") or r.reason} (request {r.headers.get("x-request-id")})')
{
"success": true,
"data": {
"id": 311,
"signing_secret": "whsec_..."
}
}
#Unsubscribe from a trigger
Stops a subscription and deletes it, with any of its retries still waiting. id is the one subscribe returned. Needs the manage_campaigns permission. Returns success and a message.
Errors
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_field | The id isn’t a whole number. |
| 404 | webhook_not_found (code: WEBHOOK_NOT_FOUND) | No subscription with this id on your account, or it was already removed. |
| 500 | unsubscribe_failed (code: UNSUBSCRIBE_FAILED) | The delete failed and the subscription is still live. Try again. |
curl -X DELETE "https://api.tryready.com/zapier/unsubscribe/311" \
-H "X-API-Key: $READY_API_KEY"
const res = await fetch('https://api.tryready.com/zapier/unsubscribe/311', {
method: 'DELETE',
headers: {
'X-API-Key': process.env.READY_API_KEY,
},
signal: AbortSignal.timeout(35 * 1000),
});
const json = await res.json().catch(() => ({}));
if (!res.ok || json.success === false) {
throw new Error(`${res.status}${json.error_code || json.code ? ' ' + (json.error_code || json.code) : ''}: ${json.error || json.message || res.statusText} (request ${res.headers.get('x-request-id')})`);
}
import os, requests
r = requests.delete(
"https://api.tryready.com/zapier/unsubscribe/311",
headers={"X-API-Key": os.environ["READY_API_KEY"]},
timeout=35,
)
data = r.json() if r.headers.get("content-type", "").startswith("application/json") else {}
if not r.ok or data.get("success") is False:
raise RuntimeError(f'{r.status_code} {data.get("error_code") or data.get("code") or ""}: {data.get("error") or data.get("message") or r.reason} (request {r.headers.get("x-request-id")})')
{
"success": true,
"message": "Webhook removed"
}