REST ClientFabricSIP Endpoints
list
List SIP endpoint resources in the project.
Response
linksobjectRequired
Pagination links.
datalist of objectsRequired
List of SIP endpoints.
Response Example
Response
1 [ 2 { 3 "links": { 4 "self": "string", 5 "first": "string", 6 "next": "string", 7 "prev": "string" 8 }, 9 "data": [ 10 { 11 "type": "sip_endpoint", 12 "id": "67075301-69b2-4fc3-8a2c-c95a69a5665e", 13 "username": "c3p0", 14 "caller_id": "C-3P0", 15 "send_as": "random", 16 "ciphers": [ 17 "string" 18 ], 19 "codecs": [ 20 "string" 21 ], 22 "encryption": "required", 23 "call_handler": "ai_agent", 24 "calling_handler_resource_id": "fe4093d9-58c2-4931-b4b9-5679f82652c6", 25 "call_request_url": "string", 26 "call_request_method": "POST", 27 "call_fallback_url": "string", 28 "call_fallback_method": "POST", 29 "call_status_callback_url": "string", 30 "call_status_callback_method": "POST", 31 "call_laml_application_id": "string", 32 "call_dialogflow_agent_id": "string", 33 "call_relay_topic": "office", 34 "call_relay_topic_status_callback_url": "https://myapplication/handle_relay_callbacks", 35 "call_relay_context": "string", 36 "call_relay_context_status_callback_url": "https://myapplication/handle_relay_callbacks", 37 "call_relay_application": "string", 38 "call_video_room_id": "string", 39 "call_relay_script_url": "https://dev.signalwire.com/relay-bins/f9d13f68-f71e-4042-95bb-b07b9e2f2f92" 40 } 41 ] 42 } 43 ]
Example
1 from signalwire.rest import RestClient 2 3 client = RestClient( 4 project="your-project-id", 5 token="your-api-token", 6 host="your-space.signalwire.com", 7 ) 8 9 response = client.fabric.sip_endpoints.list() 10 for endpoint in response.get("data", []): 11 print(f"{endpoint['name']}: {endpoint['id']}")