Skip to navigation

list

View as MarkdownOpen in Claude

List SIP endpoint resources in the project.

Response

datalist of objectsRequired
An array of objects that contain a list of SIP Endpoint data

Response Example

Response
{
"data": [
{
"id": "993ed018-9e79-4e50-b97b-984bd5534095",
"project_id": "1313fe58-5e14-4c11-bbe7-6fdfa11fe780",
"display_name": "Conference Room Phone",
"type": "sip_endpoint",
"created_at": "2024-05-06T12:20:00Z",
"updated_at": "2024-05-06T12:20:00Z",
"sip_endpoint": {
"id": "993ed018-9e79-4e50-b97b-984bd5534095",
"username": "User",
"caller_id": "123456789",
"send_as": "Support",
"ciphers": [
"AEAD_AES_256_GCM_8",
"AES_256_CM_HMAC_SHA1_32"
],
"codecs": [
"G722",
"PCMA",
"PCMU",
"VP8"
],
"encryption": "default",
"call_handler": "default",
"calling_handler_resource_id": "993ed018-9e79-4e50-b97b-984bd5534095"
}
}
],
"links": {
"self": "https://example.signalwire.com/api/fabric/resources/sip_endpoints?page_number=0&page_size=50&type=sip_endpoint",
"first": "https://example.signalwire.com/api/fabric/resources/sip_endpoints?page_size=50&type=sip_endpoint",
"next": "https://example.signalwire.com/api/fabric/resources/sip_endpoints?page_number=1&page_size=50&page_token=PAbff61159-faab-48b3-959a-3021a8f5beca&type=sip_endpoint",
"prev": "https://example.signalwire.com/api/fabric/resources/sip_endpoints?page_number=0&page_size=50&page_token=PAbff61159-faab-48b3-959a-3021a8f5beca&type=sip_endpoint"
}
}

Example

from signalwire.rest import RestClient
client = RestClient(
project="your-project-id",
token="your-api-token",
host="your-space.signalwire.com",
)
response = client.fabric.sip_endpoints.list()
for endpoint in response.get("data", []):
print(f"{endpoint['name']}: {endpoint['id']}")