REST ClientFabricCall Flows

list

View as MarkdownOpen in Claude

List call flow resources in the project.

Response

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/call_flows?page_number=0&page_size=50",
4 "first": "https://example.signalwire.com/api/fabric/resources/call_flows?page_number=0&page_size=50"
5 },
6 "data": [
7 {
8 "id": "993ed018-9e79-4e50-b97b-984bd5534095",
9 "project_id": "1313fe58-5e14-4c11-bbe7-6fdfa11fe780",
10 "display_name": "Welcome Call Flow",
11 "type": "call_flow",
12 "created_at": "2024-05-06T12:20:00Z",
13 "updated_at": "2024-05-06T12:25:00Z",
14 "call_flow": {
15 "id": "993ed018-9e79-4e50-b97b-984bd5534095",
16 "title": "Welcome Call Flow",
17 "flow_data": {},
18 "relayml": {
19 "sections": {
20 "main": [
21 {
22 "play": {
23 "url": "https://cdn.signalwire.com/swml/audio.mp3"
24 }
25 }
26 ]
27 },
28 "version": "1.0.0"
29 },
30 "document_version": 1
31 }
32 }
33 ]
34}

Example

1from signalwire.rest import RestClient
2
3client = RestClient(
4 project="your-project-id",
5 token="your-api-token",
6 host="your-space.signalwire.com",
7)
8
9response = client.fabric.call_flows.list()
10for flow in response.get("data", []):
11 print(f"{flow['display_name']}: {flow['id']}")