---
title: "Assign Resource to SIP credential"
method: POST
path: "/api/fabric/resources/{id}/sip_endpoints"
tags: ["SIP Credentials"]
---

# Assign Resource to SIP credential

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

This endpoint assigns a specific resource to a SIP endpoint, allowing inbound calls to be handled by the resource.
<Note>
Currently only supports `calling` as a handler and automatically defaults to it.
</Note>

#### 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

- ResourceSipEndpointAssignRequest
  - `sip_endpoint_id` string, uuid, required — Universal Unique Identifier.

## Response `200`

The request has succeeded.

- ResourceSipEndpointResponse
  - `id` string, uuid, required — Universal Unique Identifier.
  - `name` string, required — The name for the SIP endpoint.
  - `type` 'call', required — The Resource type
  - `cover_url` string, uri, nullable, required — The cover URL for the SIP endpoint.
  - `preview_url` string, uri, nullable, required — The preview URL for the SIP endpoint.
  - `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

## 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)
