Skip to main content
The Messages API sends one text to a client on the practice’s behalf. On phones that support RCS, the client sees the practice’s name, logo and verified badge, plus rich content: cards with images and buttons, carousels, and reply chips. Every message also carries plain fallback_text, which Oliver sends as an SMS when RCS isn’t available. Messages appear in the practice’s Oliver inbox like any other text, so staff see what was sent and can pick up the client’s reply.
Identifiers. The X-Client-Id header is the practice’s id. recipient.client_id is a pet owner (an Oliver client). Webhooks call the practice clinic_id, the same value as X-Client-Id.

How it works

  1. Send: POST to /messages with a recipient, the fallback_text and the content.
  2. Delivery: with channel: "auto" (the default), Oliver sends RCS when the practice’s RCS sender is live and the client’s phone supports it, and fallback_text as an SMS otherwise. The client gets one or the other, never both.
  3. Status: follow the message through sent → delivered → read (RCS only) with GET /messages/{id}, or pass a callback_url to get a status webhook on each change.
An RCS message is either a text bubble or a card, never both. Put the key facts in the card itself; see Writing card text.

Content types

media_id is a file you uploaded to Oliver once, so your messages don’t depend on your own hosting. A hosted media_url works anywhere media_id does; use it for an image that differs per client, like the per-pet carousel above.

Sending with cURL

Buttons and suggestions

Card buttons show on the card. suggestions show after the message, as a list of taps on iPhone and a row of chips on Android.

What fallback_text is used for

fallback_text is required on every message. It’s always the text the client gets when RCS isn’t available, and the copy staff see in the practice’s inbox. Over RCS it also does this, by content type: At a practice with RCS, a media message reaches a phone without RCS as an MMS: the image, with fallback_text as its text. Every other type arrives as fallback_text alone. Write it to stand on its own as an SMS: include any link or phone number the buttons carry. Calendar and share-location actions aren’t supported by our RCS provider; requests that use them return 400.

Limits

Writing card text

Phones decide how RCS content looks; the API can’t change it. These screenshots are from an iPhone, October 2026. Layouts that work
Card: Bella is due for her rabies vaccine, with three reply taps

One pet: the key fact in the title, a short note, and reply taps.

Card: Bella and Max are due for vaccines, with three reply taps

Several pets in one card. Through AI Outbound, the AI books them together.

Text: Max is due for his annual exam. Want me to find a time? with three reply taps

A plain text message with reply taps. It shows in full.

Card with a Schedule now button and two reply taps below

One link button and two reply suggestions: every action is one tap.

Avoid
Card with an Options menu and two reply taps below

Two or more link or dial buttons fold into an Options menu the client has to open.

Two cards on iPhone: one cut off at a line break, one showing three lines

A line break ends the preview (top). One paragraph shows up to three lines (bottom).

Card text
  • The description shows up to three lines, about 110 characters, then a chevron the client taps to read the rest. Keep it to one short paragraph with no line breaks.
  • Put the most important fact, such as the due date, in the title. A long title wraps in full.
  • A card with no title shows its text small and grey, so it’s easy to miss. Put the call to action in the title.
  • A plain text message shows in full, with no preview cut-off.
  • An image sent as media shows fallback_text as a small grey caption under it, and a URL in that caption isn’t tappable.
Buttons
  • One link or dial button shows on the card as a tappable button. Two or more fold into “Options”, so give the card one main action and put the phone number in the text.
  • Reply suggestions show as separate taps under the message, up to 10, whatever else the card has.
  • Under a message with a link or dial button, iPhone adds a note: “Practice name will see actions you select”. With replies only, there’s no note.
Images and carousels
  • Use one image for every send, uploaded once; the date belongs in the text, not the image. Images: jpeg, png or gif; video: mp4; at most 5 MB, the MMS limit (an image message reaches phones without RCS as an MMS). Wide (2:1), square (1:1) and tall (3:4) images all showed uncropped, at full card width; a tall image makes a tall card.
  • A carousel shows as a stack of cards with a “1 of N” counter, each card’s link as a tap. Each card follows the button rules on its own, and a reply button on a card shows as a tap under the carousel.
  • A carousel’s fallback_text isn’t shown above the cards on iPhone, so put everything the client needs in the cards.
Carousel of two cards on iPhone, first card showing a Schedule Millie button

A two-card carousel: a stack with a 1 of 2 counter and one link per card.

Invalid content returns 400 with every offending field:

Statuses

Statuses only move forward, in the order of this table: pending → held → sent → failed → delivered → read. suppressed is final. failed comes before delivered because a message that falls back from RCS to SMS can report a delivery error for the RCS attempt and then be delivered by SMS, so don’t treat failed as final: a later delivered or read replaces it.

Sending hours

Messages go out straight away during the practice’s sending hours, 8am to 9pm clinic time, the same window as the practice’s own reminders. A message sent outside them is checked as usual (bad input is still a 400), then held: the response is 202 with status: "held" and send_at, and Oliver sends it at the next 8am clinic time.
At 8am the message goes through the normal send: a client who opted out overnight is suppressed, not texted. With a callback_url you get message.held when it’s accepted, then the usual statuses. If the send is refused at 8am (for example, the number can’t receive texts), there is no request to return a 400 to, so the message becomes failed with the reason in error_code.

Errors that mean nothing was sent

A 400 stores nothing, so you can fix the request and reuse its reference_id.

Opt-outs

Clients who replied STOP are never texted. The response is 200 with status: "suppressed" and no text is sent. The first message Oliver sends to a number at a practice ends with “Reply STOP at any time to unsubscribe.” Oliver adds it to fallback_text when the message goes out as SMS, and to a plain text message without suggestions. Cards, carousels, images and text with suggestions never show it over RCS.

Idempotency

Set reference_id to a unique value per message. Re-sending the same reference_id returns the existing message instead of texting the client again, so retries are safe, including after a 502 or a timeout. reference_id is echoed in every response and webhook.

Rate limits

Each practice is limited to 120 messages per minute. Exceeding the limit returns 429 Too Many Requests.