Skip to main content

List Contactable Inboxes

GET 

/accounts/:account_id/contacts/:contact_id/contactable_inboxes

Returns the inboxes the caller can use to start a new conversation with this contact, each with the source ID to use.

For phone and email channels the source_id is the contact's phone or email. For API inboxes a new ID is suggested (it is not saved until you create the conversation or contact inbox).

SettingValue
MethodGET
Path/api/v1/accounts/{account_id}/contacts/{contact_id}/contactable_inboxes
AuthorizationUser token. Only inboxes where the caller may send messages are returned. Agent-bot tokens: not allowed.

Path parameters

NameTypeRequiredDescription
account_idintegerYesAccount ID.
contact_idintegerYesContact ID.

Example request

curl -X GET 'https://online.99digital.co.il/api/v1/accounts/12/contacts/801/contactable_inboxes' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'

Example response (200 OK). Truncated: 2 of the inboxes are shown, and the inbox objects are trimmed.

{
"payload": [
{
"inbox": { "id": 33, "name": "Support Email", "channel_type": "Channel::Email" },
"source_id": "dana.cohen@example.com"
},
{
"inbox": { "id": 31, "name": "Website API", "channel_type": "Channel::Api" },
"source_id": "5f0c1a2b-3c4d-4e5f-8a9b-0c1d2e3f4a5b"
}
]
}

Request​

Responses​

The inboxes, each with the contact's source_id in it.