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
[{"links": {"self": "string","first": "string","next": "string","prev": "string"},"data": [{"type": "sip_endpoint","id": "67075301-69b2-4fc3-8a2c-c95a69a5665e","username": "c3p0","caller_id": "C-3P0","send_as": "random","ciphers": ["string"],"codecs": ["string"],"encryption": "required","call_handler": "ai_agent","calling_handler_resource_id": "fe4093d9-58c2-4931-b4b9-5679f82652c6","call_request_url": "string","call_request_method": "POST","call_fallback_url": "string","call_fallback_method": "POST","call_status_callback_url": "string","call_status_callback_method": "POST","call_laml_application_id": "string","call_dialogflow_agent_id": "string","call_relay_topic": "office","call_relay_topic_status_callback_url": "https://myapplication/handle_relay_callbacks","call_relay_context": "string","call_relay_context_status_callback_url": "https://myapplication/handle_relay_callbacks","call_relay_application": "string","call_video_room_id": "string","call_relay_script_url": "https://dev.signalwire.com/relay-bins/f9d13f68-f71e-4042-95bb-b07b9e2f2f92"}]}]
Example
from signalwire.rest import RestClientclient = 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']}")