Skip to navigation

Assign Resource to SIP credential

View as MarkdownOpen in Claude

Assigns an existing resource as the calling handler for a SIP Credential. Use it when calls placed by the registered SIP device should run that resource’s instructions. This operation does not create a credential; use Create SIP credential first when the device does not yet have one.

Currently only supports calling as a handler and automatically defaults to it.

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.

Authentication

AuthorizationBasic

SignalWire Basic Authentication using Project ID and API Token.

The client sends HTTP requests with the Authorization header containing the word Basic followed by a space and a base64-encoded string of project_id:token. The project ID will be used as the username and the API token as the password.

Example:

Authorization: Basic base64(project_id:token)

Path parameters

idstringRequiredformat: "uuid"
ID of the resource to assign as the SIP Credential's outbound call handler.

Request

This endpoint expects an object.
sip_endpoint_idstringRequiredformat: "uuid"

ID of the SIP Credential to assign the handler to. Use the sip_endpoint.id value from the SIP Credential’s response, not the top-level resource id; a resource ID returns 404.

Response

The request has succeeded and a new resource has been created as a result.
idstringformat: "uuid"
Unique ID of the SIP Endpoint.
project_idstringformat: "uuid"
Unique ID of the Project.
display_namestring
Display name of the SIP Endpoint Fabric Resource
typeenum
Type of the Fabric Resource
Allowed values:
created_atdatetime
Date and time when the resource was created.
updated_atdatetime
Date and time when the resource was updated.
sip_endpointobject
SIP Endpoint data.

Errors

422
Unprocessable Entity Error
500
Internal Server Error