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).
| Setting | Value |
|---|---|
| Method | GET |
| Path | /api/v1/accounts/{account_id}/contacts/{contact_id}/contactable_inboxes |
| Authorization | User token. Only inboxes where the caller may send messages are returned. Agent-bot tokens: not allowed. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
account_id | integer | Yes | Account ID. |
contact_id | integer | Yes | Contact 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
- 200
- 401
- 403
- 404
The inboxes, each with the contact's source_id in it.
The access token is missing or wrong, or its user does not belong to this account.
The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.
The resource does not exist in this account.