---
title: "Assign Resource to phone route"
method: POST
path: "/api/fabric/resources/{id}/phone_routes"
tags: ["Phone Routes"]
---

# Assign Resource to phone route

`POST /api/fabric/resources/{id}/phone_routes`

This endpoint assigns a specific resource to a phone route, allowing inbound calls & messages to be handled by the resource.

#### Permissions

The API token used to authenticate must have the following scope(s) enabled to make a successful request: _Voice_, _Messaging_, _Fax_, or _Video_.

[Learn more about API scopes](/docs/platform/your-signalwire-api-space).

## Path parameters

- `id` string, uuid, required — Universal Unique Identifier.

## Request body

- PhoneRouteAssignRequest
  - `phone_route_id` string, uuid, required — Universal Unique Identifier.
  - `handler` 'calling' | 'messaging', required — Sets the handler to handle incoming `calls` or `messages`.

## Response `200`

The request has succeeded.

- PhoneRouteResponse
  - `id` string, uuid, required — Universal Unique Identifier.
  - `name` string, required — Name of the Fabric Address.
  - `display_name` string, required — Display name of the Fabric Address.
  - `cover_url` string, required — Cover url of the Fabric Address.
  - `preview_url` string, required — Preview url of the Fabric Address.
  - `locked` boolean, required — Locks the Fabric Address. This is used to prevent the Fabric Address from accepting calls.
  - `channels` union, required
    - AudioChannel
      - `audio` string, required — Audio Channel of Fabric Address
    - MessagingChannel
      - `messaging` string, required — Messaging Channel of Fabric Address
    - VideoChannel
      - `video` string, required — Video Channel of Fabric Address
  - `created_at` string, date-time, required — Fabric Address Creation Date.
  - `type` 'app', required — The display type of a fabric address pointing to an application.

## Other responses

- `401` — Access is unauthorized.
- `404` — The server cannot find the requested resource.
- `422` — The request contains invalid parameters. See errors for details.
- `500` — An internal server error occurred.

---

[API](https://skmtc.net/signalwire/apis/signalwire-rest-api.md) · [All operations](https://skmtc.net/signalwire/apis/signalwire-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/signalwire/signalwire-rest-api/versions/05c5164b85c7/schema)
