Chatsv4.1

Find or create a chat

POST/chats

Finds or creates a 1:1 chat with a recipient on a channel. Returns the chat (with created indicating whether it was newly created).

Headers

AuthorizationRequiredstring

Your API key, sent as a bearer token: Authorization: Bearer <api_key>. Editing this stays in sync with the API key box on the right.

Bearer

Body parameters

JSON
channel_idRequiredstring
toRequiredstring

Recipient identifier (phone/email/opaque provider id).

Returns

idoptionalstring
channel_idoptionalstring
channel_typeoptionalstring
"blooio""twilio""whatsapp""whatsapp_business""rcs_business""amb""sms""voice"
contact_idoptionalstring | null
identity_idoptionalstring | null
stateoptionalstring

left: a group chat whose number is no longer in the group; sends to the group from that number return 409 not_in_group until a message arrives in the group on it again.

"open""closed""blocked""deprecated""left"
createdoptionalboolean

True if the chat was newly created.

Response codes

200Existing chat
201Created chat
401Your API key is missing or invalid. Pass it as a bearer token.
422Validation failed — one or more fields in the request are invalid or missing.

Sends a live request with your values and shows the real response below. Your key is stored only in this browser.

Request
curl -X POST https://api.blooio.com/v4.1/chats \
Body object
Response objectexample
{  "id": "obj_a1b2c3d4",  "channel_id": "ch_a1b2c3d4",  "channel_type": "blooio",  "contact_id": "ct_a1b2c3d4",  "identity_id": "idn_a1b2c3d4",  "state": "open",  "created": false}