REST ClientFabricCall Flows
list
List call flow resources in the project.
Response
linksobjectRequired
Object containing pagination links
datalist of objectsRequired
An array of objects containing the CallFlow listing response
Response Example
Response
1 { 2 "links": { 3 "self": "https://example.signalwire.com/api/fabric/resources/016e5773-c197-4446-bcc2-9c48f14e2d0a/addresses?page_number=0&page_size=50&type=call_flow", 4 "first": "https://example.signalwire.com/api/fabric/resources/016e5773-c197-4446-bcc2-9c48f14e2d0a/addresses?page_number=0&page_size=50&type=call_flow", 5 "next": "https://example.signalwire.com/api/fabric/resources/016e5773-c197-4446-bcc2-9c48f14e2d0a/addresses?page_number=1&page_size=50&page_token=PA6581c1fa-d985-4c8f-b53e-2fee11b579ad&type=call_flow", 6 "prev": "https://example.signalwire.com/api/fabric/resources/016e5773-c197-4446-bcc2-9c48f14e2d0a/addresses?page_number=0&page_size=50&page_token=PA6581c1fa-d985-4c8f-b53e-2fee11b579ad&type=call_flow" 7 }, 8 "data": [ 9 { 10 "id": "993ed018-9e79-4e50-b97b-984bd5534095", 11 "project_id": "1313fe58-5e14-4c11-bbe7-6fdfa11fe780", 12 "display_name": "Booking Assistant", 13 "type": "call_flow", 14 "created_at": "2024-05-06T12:20:00Z", 15 "updated_at": "2024-05-06T12:20:00Z", 16 "call_flow": { 17 "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", 18 "title": "Booking Assistant", 19 "flow_data": "{}", 20 "relayml": "{ \"version\": \"1.0.0\", \"sections\": { \"main\": [{ \"play\": { \"url\": \"https://cdn.signalwire.com/swml/audio.mp3\" }}]}};", 21 "document_version": 1 22 } 23 } 24 ] 25 }
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.call_flows.list() 10 for flow in response.get("data", []): 11 print(f"{flow['display_name']}: {flow['id']}")