REST ClientFabricResources

list

View as MarkdownOpen in Claude

List all Fabric resources across all resource types.

Response

datalist of objectsRequired
An array of objects that contain a list of Resource data

Response Example

Response
1{
2 "data": [
3 {
4 "id": "993ed018-9e79-4e50-b97b-984bd5534095",
5 "project_id": "1313fe58-5e14-4c11-bbe7-6fdfa11fe780",
6 "display_name": "My Resource",
7 "created_at": "2024-05-06T12:20:00Z",
8 "updated_at": "2024-05-06T12:20:00Z",
9 "type": "call_flow",
10 "call_flow": {
11 "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
12 "title": "Booking Assistant",
13 "flow_data": {},
14 "relayml": {
15 "version": "1.0.0",
16 "sections": {
17 "main": [
18 {
19 "denoise": {},
20 "play": {
21 "url": "https://cdn.signalwire.com/swml/audio.mp3"
22 }
23 }
24 ]
25 }
26 },
27 "document_version": 1
28 }
29 }
30 ],
31 "links": {
32 "self": "https://devspace.signalwire.com/api/fabric/resources?page_number=0&page_size=50",
33 "first": "https://devspace.signalwire.com/api/fabric/resources?page_size=50",
34 "next": "https://devspace.signalwire.com/api/fabric/resources?page_number=1&page_size=50&page_token=PA0f2b7869-304c-45ac-8863-3455ccb34cdc",
35 "prev": "https://devspace.signalwire.com/api/fabric/resources?page_number=0&page_size=50&page_token=PA0f2b7869-304c-45ac-8863-3455ccb34cdc"
36 }
37}

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.resources.list()
10for resource in response.get("data", []):
11 print(f"{resource['type']}: {resource['name']} ({resource['id']})")