Contactsv4
Attach an identity
POST
/contacts/{contactId}/identitiesAttaches a phone/email identity (on a channel type) to a contact.
Path parameters
contactIdRequiredstringUnique identifier of the contact, prefixed with ct_. Returned when you create a contact or by the List contacts endpoint.
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
JSONidentifierRequiredstringchannel_typeoptionalstring"blooio""twilio""whatsapp""whatsapp_business""rcs_business""amb"channel_idoptionalstringRequired when channel_type is amb.
Returns
dataoptionalContactIdentity
dataoptionalContactIdentityidoptionalstringIdentity id (cid_...).
contact_idoptionalstringchannel_typeoptionalstring"blooio""twilio""whatsapp""whatsapp_business""rcs_business""amb"identifieroptionalstringPhone (E.164) or email.
channel_idoptionalstring | nullRequired for AMB identities.
created_atoptionalintegerResponse codes
201Attached identity
401Your API key is missing or invalid. Pass it as a bearer token.
404No contact was found with the provided `contactId`.
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/ct_a1b2c3d4/identities \ -H "Authorization: Bearer bl_live_..." \ -H "Content-Type: application/json" \ -d '{ "identifier": "+15551234567", "channel_type": "blooio", "channel_id": "ch_a1b2c3d4" }'{ "data": { "id": "obj_a1b2c3d4", "contact_id": "ct_a1b2c3d4", "channel_type": "blooio", "identifier": "+15551234567", "channel_id": "ch_a1b2c3d4", "created_at": 0 }}