Objects
The same object looks the same wherever you meet it: in a response, in a list, or in a webhook delivery. New fields may be added over time; nothing listed here will be renamed or removed in version 1.
Contact #
A person you can message. The phone number is stored as digits with the country code and no plus sign.
idinteger- The contact’s id.
namestring- Their name. Empty when it isn’t known yet.
phonestring or null- Digits with the country code, no plus: 919876543210. Null for people who only wrote on website chat, Instagram, Messenger or Telegram.
emailstring or null- Their email address, if known.
sourcestring- Where the contact came from: manual, import, whatsapp, widget, api, instagram, messenger, telegram, sms, shopify or woocommerce.
opted_inboolean- False once they have opted out (for example by replying STOP). Opted-out contacts are skipped by broadcasts and refused by the send endpoints.
tagslist of string- The names of their tags, in alphabetical order.
created_atdate-time- When the contact was added.
attributesobject- Your own fields, such as {"city": "Denver"}. Names are lower-case letters, numbers and underscores; values are text. They can be used in templates as {{city}}.
notesstring- The team’s notes on the contact. Customers never see them.
opted_out_atdate-time or null- When they opted out. Null while opted in.
last_seen_atdate-time or null- When they last wrote to you.
updated_atdate-time- When the contact was last changed through the API or the contact page. See “updated_since” for what counts.
Tag #
A label on contacts.
idinteger- The tag’s id.
namestring- The tag’s name, unique in the workspace.
contactsinteger- How many contacts carry it.
Segment #
A saved contact filter. It has no fixed members: who is in it is worked out each time.
idinteger- The segment’s id.
namestring- The segment’s name.
descriptionstring- The filter in words, as shown in the app.
filtersobject- The filter itself: tags (names; any of them), source, added_days (added in the last N days) and quiet_days (no message from them for N days). Unused parts are null or empty.
contactsinteger- How many contacts match right now.
reachableinteger- How many of those can get a broadcast: opted in, with a phone number.
created_atdate-time- When the segment was saved.
Conversation #
One chat with one contact on one channel.
idinteger- The conversation’s id.
contact_idinteger- The contact it is with.
channelstring- whatsapp, widget (website chat), instagram, messenger, telegram or sms.
statusstring- open or closed. A closed conversation opens again when the customer writes.
assigned_toobject or null- The team member it is assigned to, as {"id", "name"}, or null.
last_message_previewstring- The start of the latest message.
last_message_atdate-time or null- When the latest message was sent or received.
window_openboolean- True when free text can be sent right now. On WhatsApp, Instagram and Messenger that is within 24 hours of the customer’s last message.
created_atdate-time- When the conversation started.
urlstring- A link that opens the conversation in the inbox.
Message #
One message in a conversation.
idinteger- The message’s id.
conversation_idinteger- The conversation it belongs to.
directionstring- in (from the customer) or out (from you).
kindstring- text, template, image, video, audio, document, or note (an internal note).
bodystring- The text, or the caption of a file. For a template, the text as the customer saw it.
statusstring- For messages you sent: sent, delivered, read or failed. For the customer’s messages: received.
errorstring or null- Why it failed, when status is failed.
senderstring or null- What sent it when it wasn’t a team member: “API”, “Broadcast”, a bot’s name. Null otherwise.
created_atdate-time- When it was sent or received.
mediaobject or null- For files: {"mime", "name"}. Null for text.
contact_idinteger- The contact the conversation is with.
Template #
A WhatsApp message template. Only APPROVED templates can be sent.
namestring- The template’s name.
languagestring- Its language code, such as en or en_US.
categorystring- MARKETING, UTILITY or AUTHENTICATION.
statusstring- APPROVED, PENDING, REJECTED, PAUSED or DISABLED.
variablesobject- What a send must supply: header (none, text, image, video or document), header_vars and body_vars (how many {{1}}, {{2}}… the body has).
idinteger- The template’s id.
number_idinteger- The WhatsApp number it belongs to.
TemplateDetail #
A template with its text. Everything in Template, plus: See Template.
headerobject or null- {"format", "text"}: format is text, image, video or document. Null when there is no header.
bodystring- The body text with its {{1}} placeholders.
footerstring- The footer text, or empty.
buttonslist of object- Each button as {"type", "text"}.
rejected_reasonstring or null- What WhatsApp said when it rejected the template.
created_atdate-time- When the template was created here.
Number #
A connected WhatsApp number.
idinteger- Use as number_id when sending.
namestring- The name the team gave it.
phonestring- The number as WhatsApp shows it.
sandboxboolean- True for the built-in test number, which pretends to send.
statusstring- connected when it is working.
Channel #
Something the workspace can talk on.
typestring- whatsapp, instagram, messenger, telegram, sms or widget.
idinteger- The id within its type.
namestring- Its name in the app.
handlestring- The public phone number, username or sender name, where there is one.
activeboolean- False when it is paused or disconnected.
TeamMember #
Someone on the team.
idinteger- Use as assigned_to on a conversation.
namestring- Their name.
emailstring- Their sign-in email.
rolestring- owner, admin or agent.
statusstring- active, or disabled.
Campaign #
A WhatsApp broadcast: one approved template sent to many contacts.
idinteger- The broadcast’s id.
namestring- Its name. Customers never see it.
statusstring- scheduled, sending, paused, completed or failed.
totalinteger- How many contacts it is going to. Zero until sending starts.
sentinteger- Messages handed to WhatsApp so far.
deliveredinteger- Of those, delivered to the phone.
readinteger- Of those, read.
failedinteger- Messages WhatsApp refused.
repliedinteger- Contacts who wrote back.
notestring or null- Anything worth knowing, such as “Cancelled before every message was sent.”
started_atdate-time or null- When sending began.
completed_atdate-time or null- When it finished, failed or was cancelled.
urlstring- A link to the broadcast in the app.
template_idinteger- The template being sent.
number_idinteger- The WhatsApp number it is sent from.
scheduled_atdate-time or null- When it is due to start, for a scheduled broadcast.
created_atdate-time or null- When it was created.
CampaignDetail #
One broadcast in full. Everything in Campaign, plus: See Campaign.
pendinginteger- Messages still waiting to go.
templateobject or null- {"id", "name", "language"} of the template. Null if it has since been deleted.
audienceobject- Who it goes to: {"type": "all"}, {"type": "tags", "tags": [{"id", "name"}]} or {"type": "segment", "segment_id"}.
variablesobject- The values used to fill the template: {"header", "body": []}.
Product #
Something you sell in chat. Prices are whole numbers in the currency’s smallest unit.
idinteger- The product’s id.
namestring- Its name.
descriptionstring- Its description.
priceinteger- In the smallest unit of the currency: 129950 is 1,299.50.
currencystring- A three-letter code such as INR. Set from the workspace; it can’t be changed per product.
skustring- Your own code for it, or empty.
categorystring- The category it is listed under, or empty.
stockinteger or null- How many are left. Null means unlimited.
activeboolean- False hides it from customers.
has_imageboolean- Whether it has a photo.
created_atdate-time- When it was added.
updated_atdate-time or null- When it last changed.
Order #
An order a customer placed in chat. Amounts are in the currency’s smallest unit.
idinteger- The order’s id.
numberinteger- The order number customers see, counting up from 1001.
statusstring- awaiting_payment, paid, fulfilled or cancelled.
totalinteger- What the customer pays.
currencystring- A three-letter code such as INR.
contact_idinteger- Who ordered.
conversation_idinteger or null- The conversation it was placed in.
subtotalinteger- The items added up.
sourcestring- chat, or meta_catalog for orders from a Meta catalog in WhatsApp.
payment_providerstring- manual (no online payment), razorpay, stripe or revolut.
payment_methodstring- How this order is paid: whatsapp_pay (a Review and Pay card inside WhatsApp, India only), payment_link, or manual.
payment_referencestring or null- For whatsapp_pay, the reference the order was sent to WhatsApp with. It is the same reference your payment gateway shows.
payment_urlstring or null- The payment link sent to the customer, if one was made.
payment_idstring or null- The payment’s id at the provider, once paid.
itemslist of object- Each line as {"product_id", "name", "sku", "price", "quantity", "total"}: a copy taken when the order was placed.
created_atdate-time- When it was placed.
paid_atdate-time or null- When payment arrived.
fulfilled_atdate-time or null- When it was marked fulfilled.
cancelled_atdate-time or null- When it was cancelled.
urlstring- A link to the order in the app.
BookingService #
Something customers can book.
idinteger- Use as service_id.
namestring- Its name.
duration_minutesinteger- How long an appointment takes.
priceinteger or null- In the currency’s smallest unit, or null/0 when no price is shown.
currencystring- The workspace’s currency.
descriptionstring- Its description, or empty.
activeboolean- Only active services are listed.
Slot #
A free start time.
startdate-time- The start, in UTC. Send this back as “start” to book it.
local_startstring- The same moment on the business’s own clock: 2026-12-08T10:30.
staff_idslist of integer- Who is free then. Empty when the workspace has no named staff.
Page #
A page built in Pages and forms: a store, a form, an event with tickets, an invitation, an appointment page, a poll or a bill payment page.
idinteger- The page’s id.
kindstring- store, form, event, invite, booking, poll or bill.
titlestring- The name the team sees. Visitors see content.headline.
slugstring- The link name: the last part of the page’s address.
urlstring- The page’s public address.
statusstring- draft (only the team can open it) or live.
designstring- fresh, boutique or night.
colorstring or null- The page’s own button colour as #rrggbb, or null for the default colours.
viewsinteger- How many visitors opened the page.
entriesinteger- How many entries it has, not counting cancelled ones.
contentobject- Everything on the page: headline, intro, button, thanks, fields, sections, style, and the keys of its kind (items, tickets, options, programme and so on).
created_atdate-time- When it was created.
updated_atdate-time- When it was last changed.
PageEntry #
What one person sent through a page: an order, a form response, a ticket, an RSVP, an appointment, a vote or a bill payment.
idinteger- The entry’s id.
page_idinteger- The page it came from.
kindstring- The page’s kind when it was sent.
statusstring- new, pending (awaiting payment), paid, confirmed, used (checked in), maybe, declined or cancelled.
namestring- The person’s name. Empty for an anonymous vote.
phonestring or null- Digits with the country code.
emailstring or null- Their email address, when the page asked for it.
codestring or null- A ticket’s code, or a booking’s reference.
quantityinteger- Tickets, guests or items in all.
amountinteger- What it costs, in the smallest unit of the currency. 0 when nothing is to pay.
currencystring- The three-letter currency code.
itemslist of object- Each as {"name", "quantity", "price"}.
answerslist of object- Each as {"question", "answer"}.
contact_idinteger or null- The contact created or found for this person.
order_idinteger or null- The order that carries the payment.
booking_idinteger or null- The booking, for an appointment.
receipt_urlstring- The private address of the receipt, confirmation or e-ticket.
checked_in_atdate-time or null- When a ticket was checked in.
created_atdate-time- When it was sent.
Bill #
A bill on a bill payment page, looked up by the payer’s account number.
idinteger- The bill’s id.
page_idinteger- The bill payment page it belongs to.
account_nostring- The payer’s account or consumer number.
namestring- The payer’s name. Only its first letters are shown on the page.
periodstring- What the bill is for, such as “November 2026”.
amountinteger- The amount due, in the smallest unit of the currency.
currencystring- The three-letter currency code.
due_onstring or null- The due date as YYYY-MM-DD.
statusstring- unpaid or paid.
paid_atdate-time or null- When it was paid.
Booking #
An appointment. Times are UTC; local_start is the same moment on the business’s own clock.
idinteger- The booking’s id.
refstring- The short reference the customer is given, such as BK-7Q2M.
statusstring- confirmed (upcoming), completed, cancelled or no_show.
service_idinteger or null- The service booked.
servicestring- The service’s name when it was booked.
staff_idinteger or null- Who it is with, where the workspace has named staff.
staffstring or null- Their name.
contact_idinteger or null- The contact, or null for a walk-in with no phone number.
conversation_idinteger or null- The WhatsApp conversation about it, if there is one.
customer_namestring- The name on the booking.
starts_atdate-time- When it starts.
ends_atdate-time- When it ends.
local_startstring or null- The start on the business’s own clock: 2026-12-08T10:30.
timezonestring- The business’s timezone, such as Asia/Kolkata.
duration_minutesinteger- How long it takes.
priceinteger or null- In the currency’s smallest unit.
currencystring- A three-letter code such as INR.
sourcestring- whatsapp when the customer booked in chat; staff when the team or the API made it.
notesstring or null- The team’s notes.
cancel_reasonstring or null- Why it was cancelled, if a reason was given.
cancelled_bystring or null- customer or staff.
cancelled_atdate-time or null- When it was cancelled.
created_atdate-time- When it was booked.
updated_atdate-time or null- When it last changed.
urlstring- A link to the booking in the app.
Lead #
Someone who arrived from a Meta ad.
idinteger- The lead’s id.
contact_idinteger- The contact created for them.
conversation_idinteger- Their conversation.
source_typestring- ad (a click-to-WhatsApp ad) or lead_form.
ad_idstring or null- The ad’s id at Meta.
headlinestring or null- The ad’s headline.
bodystring- The ad’s text.
source_urlstring or null- A link to the ad.
created_atdate-time- When they arrived.
contactContact or null- The contact in full.
Hook #
One event sent to one address.
idinteger- Use to unsubscribe.
eventstring- The event name, such as message.received.
target_urlstring- Where deliveries are POSTed.
last_statusstring or null- How the latest delivery went, such as “HTTP 200”.
last_sent_atdate-time or null- When the latest delivery was made.
created_atdate-time- When the subscription was made.
Error #
Every failed request has this body, with a 4xx or 5xx status.
okboolean- Always false.
errorobject- {"code", "message"}: code is a fixed word your code can test for; message is a sentence for a person.