# List lines

> Every line of a workspace that can carry a call, on every medium, and whether calling is on for it.

Source: https://docs.mycrmsim.com/docs/calls/list-lines

```http
GET https://backend.mysmsgateway.app/api/v1/ext/calls/lines
```

- Category: myCRMSIM Calls / Calls
- Auth: Bearer access token
- Scope: `calls.read`

The dashboard's Calling overview for one workspace: its **Mac** (FaceTime), each **SIM** in its Android gateway phone (one line per SIM slot, with the SIM's number and carrier), its **WhatsApp** numbers, and its **Twilio** numbers and verified caller IDs. `calling_enabled` is the line's calling switch; `can_enable` whether it could be switched on now (the phone on with a SIM in, the WhatsApp session ready, the Twilio number voice-capable). Calling is switched on per line in the dashboard's Calling settings (a billed add-on), so this is read-only here. A medium whose store cannot be read at the moment is named in `meta.unavailable` instead of failing the call.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `workspace_id` | query | number | yes | A workspace of the installer. Example: `7` |
| `channel` | query | enum | no | One medium only. One of: `imessage`, `android`, `whatsapp`, `twilio`. |

## Response 200

OK

```json
{
  "success": true,
  "data": [
    {
      "id": "11",
      "channel": "imessage",
      "name": "Office Mac",
      "number": null,
      "status": "online",
      "calling_enabled": true,
      "can_enable": true,
      "is_default": true,
      "device_id": "A1B2C3D4-MAC"
    },
    {
      "id": "7:0",
      "channel": "android",
      "name": "Pixel 7",
      "number": "+61400000077",
      "status": "online",
      "calling_enabled": true,
      "can_enable": true,
      "is_default": null,
      "device_id": 7,
      "slot": 0,
      "sim_name": "Sales SIM",
      "carrier": "Telstra",
      "model": "Pixel 7"
    },
    {
      "id": "7:1",
      "channel": "android",
      "name": "Pixel 7",
      "number": null,
      "status": "online",
      "calling_enabled": false,
      "can_enable": false,
      "is_default": null,
      "device_id": 7,
      "slot": 1,
      "sim_name": null,
      "carrier": null,
      "model": "Pixel 7"
    },
    {
      "id": "21",
      "channel": "whatsapp",
      "name": "Sales",
      "number": "+61400000099",
      "status": "ready",
      "calling_enabled": true,
      "can_enable": true,
      "is_default": true
    },
    {
      "id": "3|n:40",
      "channel": "twilio",
      "name": null,
      "number": "+15550001111",
      "status": "number",
      "calling_enabled": false,
      "can_enable": true,
      "is_default": null,
      "twilio_account_id": 3,
      "ref": "n:40"
    }
  ]
}
```

## Response 400

Unknown channel

```json
{
  "success": false,
  "message": "channel must be one of imessage, android, whatsapp, twilio."
}
```

## Response 401

Missing or invalid token

```json
{
  "success": false,
  "message": "Invalid or expired access token."
}
```

## Response 403

Missing scope

```json
{
  "success": false,
  "message": "Missing scope(s): calls.read. This integration was granted: …"
}
```

## Response 404

Workspace does not exist or is not the installer's (same response for both)

```json
{
  "success": false,
  "message": "Workspace not found or not accessible to this token"
}
```
