Conventions
These rules apply to every resource. Knowing them avoids most 422 errors.
Requests
Section titled “Requests”- Every
POSTcarriesContent-Type: application/json(otherwise415). - The body is a valid JSON object of up to 1 MiB.
- Field names are lowercase with underscores (
first_name,started_at).
Create or update (upsert)
Section titled “Create or update (upsert)”Every write is a POST on the collection that creates or updates by the record’s key:
| Resource | Record key |
|---|---|
| Contacts | user_id |
| Conversations | conversation_id |
| Bookings | booking_id |
| Orders | order_id |
| Tickets | ticket_id |
The key is required: the API does not make one up. Use the identifier your system already has (the conversation id in your bot, the booking number in your booking system…). That way, resending the same record never creates a duplicate.
The response carries the saved record and the result field:
| Status | result |
Meaning |
|---|---|---|
201 |
created |
The record did not exist |
200 |
updated |
It existed and something changed |
200 |
unchanged |
Nothing changed and nothing was written. Resending is safe |
200 |
stale |
Bookings and orders only: your source_updated_at is older than the stored one. Nothing changes and the stored record is returned. Not an error: do not retry |
result is always the outcome of the write. How a conversation ended goes in conversation_result, and how an appointment ended in meeting_result. Do not send result in any body.
source_updated_at
Section titled “source_updated_at”On bookings and orders, source_updated_at is the version date in your source system. If you sync from another system, always send it: a version older than the stored one answers stale and does not overwrite newer data. If you leave it out, the stored value is kept.
null, absent and ""
Section titled “null, absent and ""”- An absent field or
nullkeeps what is stored. You do not need to resend the whole record. - In free-text fields,
""also keeps what is stored. - In typed fields (dates, numbers, fixed lists,
platform,currency, the record key),""is a422error. Sendnullor leave the field out. - The API does not clear fields. Clearing a value is done in the Manoflow dashboard.
Lists and objects:
tags(conversations) anditems(orders) replace the stored list.tags: []keeps the stored one.attributesis merged by key: the keys you send are added or updated, the rest are kept. A key set tonullkeeps its value.
attributes and unknown fields
Section titled “attributes and unknown fields”Bodies are strict: a top-level field that is not in the schema answers 422 with unknown_field and the field’s pointer. That way a misspelled name is never silently lost.
Data specific to your business goes inside attributes, which takes any JSON and comes back on reads:
{ "user_id": "+10000000042", "platform": "whatsapp", "attributes": { "orders_count": 2, "preferred_city": "Medellín" }}An attributes key named like a field of the resource (for example phone inside attributes) is 422 with reserved_name: use the real field.
Read-only fields
Section titled “Read-only fields”You can resend what you read from contacts, bookings, orders and tickets: read-only fields (id, created_at, updated_at, conversation_count, history…) are ignored. Two exceptions:
- A contact you read has no
platform, andPOST contactsrequires it: add it before resending. - A conversation response cannot be resent as a body: build the body from the input fields.
Dates and time zones
Section titled “Dates and time zones”There are two kinds of date, and the field name tells you which:
| Kind | Name | Format | Example |
|---|---|---|---|
| Instant | *_at |
YYYY-MM-DDTHH:MM:SS[.fraction] with Z or ±HH:MM |
2026-09-30T14:00:00.000Z, 2026-09-30T09:00:00-05:00 |
| Calendar day | *_date |
YYYY-MM-DD, no time or zone |
2026-10-10 |
- Every instant carries a zone. The API never guesses one. Without a zone (
2026-09-30T14:00:00) it is422withtimestamp_without_offset. - Other formats (epoch, a space instead of
T, no seconds,+0500without a colon) are422withinvalid_timestamp. - In JavaScript,
new Date().toISOString()gives a valid instant. - Responses return every instant in UTC:
2026-09-30T14:00:00.000Z. - A calendar day (a stay’s
check_in_date) is not converted. If your data is an instant, use the local day your system already knows: cutting an instant in UTC can give the wrong day.
Dates in filters
Section titled “Dates in filters”In list filters (GET contacts, GET bookings):
- A
YYYY-MM-DDday is your company’s local day, midnight to midnight (UTC if your company has no time zone set). - An instant is compared as is and must carry a zone.
- In the URL, write the
+of a zone as%2B(a bare+arrives as a space).
Numbers, booleans and text
Section titled “Numbers, booleans and text”- Numbers are JSON numbers:
150000, not"150000"(not_a_number). - Integers (
nights,guests,reachout_step…) take no decimals:2, not2.5(not_an_integer). - Money (
total_value,subtotal,tax,total) takes up to 2 decimals.currencyis 3 letters (COP,USD) and is stored in uppercase. - Yes/no is
trueorfalse, not text. - Identifiers and names are text:
"order_id": "12345", not12345(not_a_string). - Fixed lists (
status,kind,priority…) accept only the exact lowercase values (unknown_value). - The API does not convert types: a wrong type is always an error.
Naming rules
Section titled “Naming rules”| What | Name |
|---|---|
| Instant | ends in _at (started_at, scheduled_at) |
| Calendar day | ends in _date (check_in_date) |
| Author of a message | sender: user, bot or agent (a person on your team) |
| Channel | platform: a lowercase token (whatsapp, instagram, web…) |
Pagination
Section titled “Pagination”Lists answer { "data": [...], "next_cursor": "..." }. Repeat the request with cursor=<next_cursor> until next_cursor is null. limit goes from 1 to 1000 (default 100); a value out of range is 400 with invalid_query.