Contactsv4
Create a contact
POST
/contactsCreates a contact, optionally with one identity (phone/email on a channel type).
Headers
AuthorizationRequiredstringYour 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
JSONnameoptionalstring | nullidentifieroptionalstringPhone (E.164) or email to attach as the first identity.
channel_typeoptionalstring"blooio""twilio""whatsapp""whatsapp_business""rcs_business"channel_idoptionalstringReserved for future use.
Returns
dataoptionalContact
dataoptionalContactidoptionalstringContact id (ct_...).
nameoptionalstring | nullcreated_atoptionalintegertagsoptionalstring[]last_message_timeoptionalinteger | nulllast_directionoptionalstring | null"inbound""outbound"nulllast_textoptionalstring | nulllast_statusoptionalstring | nullidentitiesoptionalobject[]
identitiesoptionalobject[]Array of object
idoptionalstringchannel_typeoptionalstring"blooio""twilio""whatsapp""whatsapp_business""rcs_business"identifieroptionalstringchannel_idoptionalstring | nullcreated_atoptionalintegerResponse codes
201Created contact
400The request was malformed — check the path, query parameters, and body.
401Your API key is missing or invalid. Pass it as a bearer token.
409The request conflicts with the current state of the contact (e.g. it already exists, the chat is closed, or the channel isn't active).
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.
curl -X POST https://api.blooio.com/v4/contacts \{ "data": { "id": "ct_a1b2c3d4", "name": "Jane Doe", "created_at": 0, "tags": [ "string" ], "last_message_time": 0, "last_direction": "inbound", "last_text": "string", "last_status": "string", "identities": [ { "id": "obj_a1b2c3d4", "channel_type": "blooio", "identifier": "+15551234567", "channel_id": "ch_a1b2c3d4", "created_at": 0 } ] }}