# Get call routing

> The order of lines a workspace's calls try.

Source: https://docs.mycrmsim.com/docs/calls/get-call-routing

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

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

`routing` is a list of rows, each with one line; the first row dials first and the next rows back it up. Empty means no routing is set: a call then tries the Mac, then Android. `lines` are the names a row may hold.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `workspace_id` | query | number | yes | A workspace of the installer. Example: `7` |

## Response 200

OK

```json
{
  "success": true,
  "data": {
    "workspace_id": 7,
    "routing": [
      [
        "imessage"
      ],
      [
        "android"
      ]
    ],
    "lines": [
      "imessage",
      "android",
      "whatsapp",
      "twilio"
    ],
    "max_rows": 4
  }
}
```

## 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"
}
```
