<!-- Generated from the canonical 99 Digital API documentation. Do not edit this file. -->

Canonical page: https://docs.99digital.co.il/online-api/contacts/list-contactable-inboxes

# List Contactable Inboxes

`GET https://online.99digital.co.il/api/v1/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](https://docs.99digital.co.il/online-api/conversations/add-conversation) or [contact inbox](https://docs.99digital.co.il/online-api/contacts/create-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**

```bash
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.

```json
{
  "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"
    }
  ]
}
```

## Authentication

`api_access_token` in the header — Your access token. A user token is in the dashboard under **Profile settings → Access Token**, and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See [Getting Started](https://docs.99digital.co.il/online-api/getting-started#authentication).

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `account_id` | path | integer | Yes | The numeric ID of your account: the number after `/app/accounts/` in the dashboard URL. Example: `12`. |
| `contact_id` | path | integer | Yes | The numeric ID of the contact. Example: `801`. |

## Responses

### 200 — The inboxes, each with the contact's `source_id` in it.

Content type: `application/json`

| Field | Type | Description |
| --- | --- | --- |
| `payload` | array of object | The inboxes where the caller can start a conversation with the contact, each with the `source_id` to use for the contact. |
| `payload[].source_id` | string | The contact inbox's source ID: the contact's ID on the inbox's channel (a phone number, an email address, or a generated ID for API and website inboxes). |
| `payload[].inbox` | object | Object containing the details of the inbox. |
| `payload[].inbox.id` | integer | The numeric ID of the inbox. |
| `payload[].inbox.channel_id` | integer | The numeric ID of the inbox's channel. |
| `payload[].inbox.account_id` | integer | The numeric ID of the account. |
| `payload[].inbox.name` | string | The name of the inbox. |
| `payload[].inbox.channel_type` | string | The type of the inbox (its channel), for example `Channel::Api`, `Channel::Whatsapp` or `Channel::Email`. |
| `payload[].inbox.enable_auto_assignment` | boolean | Whether auto-assignment is enabled: new conversations in the inbox are assigned to agents automatically. |
| `payload[].inbox.timezone` | string | The inbox's time zone. |
| `payload[].inbox.webhook_url` | string | For API inboxes, the inbox's own webhook URL. |
| `payload[].inbox.api_type` | string | For API inboxes, the kind of API inbox, for example `incoming_calls`. |

#### Example: Contactable inboxes

Shortened to two inboxes, with their `inbox` objects trimmed.

```json
{
  "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"
    }
  ]
}
```

### 401 — The access token is missing or wrong, or its user does not belong to this account.

Content type: `application/json`

| Field | Type | Description |
| --- | --- | --- |
| `error` | string | The error message. |

#### Example: Invalid token

The api_access_token header is missing or wrong.

```json
{
  "error": "Invalid Access Token"
}
```

#### Example: Another account

A valid token, for a user who is not in this account.

```json
{
  "error": "You are not authorized to access this account"
}
```

### 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See [Authorization](https://docs.99digital.co.il/online-api/getting-started#authorization).

Content type: `application/json`

| Field | Type | Description |
| --- | --- | --- |
| `error` | string | The error message. |

#### Example: No permission

The role lacks the permission.

```json
{
  "error": "You are not authorized to do this action"
}
```

#### Example: Agent bot

An agent-bot token on an endpoint that is not open to bots.

```json
{
  "error": "Access to this endpoint is not authorized for bots"
}
```

### 404 — The resource does not exist in this account.

Content type: `application/json`

| Field | Type | Description |
| --- | --- | --- |
| `error` | string | The error message. |

#### Example

```json
{
  "error": "Resource could not be found"
}
```
