list
List all Fabric resources across all resource types.
Response
data
An array of objects that contain a list of Resource data
links
Object containing pagination links
Response Example
Response
List all Fabric resources across all resource types.
1 { 2 "data": [ 3 { 4 "ai_agent": { 5 "agent_id": "a87db7ed-8ebe-42e4-829f-8ba5a4152f54", 6 "name": "Support Assistant", 7 "prompt": { 8 "text": "You are a helpful customer support assistant." 9 } 10 }, 11 "created_at": "2024-05-06T12:20:00Z", 12 "display_name": "Support Assistant", 13 "id": "993ed018-9e79-4e50-b97b-984bd5534095", 14 "project_id": "1313fe58-5e14-4c11-bbe7-6fdfa11fe780", 15 "type": "ai_agent", 16 "updated_at": "2024-05-06T12:25:00Z" 17 } 18 ], 19 "links": { 20 "self": "https://example.signalwire.com/api/fabric/resources?page_number=0&page_size=50", 21 "first": "https://example.signalwire.com/api/fabric/resources?page_number=0&page_size=50" 22 } 23 }
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.resources.list() 10 for resource in response.get("data", []): 11 print(f"{resource['type']}: {resource['name']} ({resource['id']})")