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
{
"data": [
{
"ai_agent": {
"agent_id": "a87db7ed-8ebe-42e4-829f-8ba5a4152f54",
"name": "Support Assistant",
"prompt": {
"text": "You are a helpful customer support assistant."
}
},
"created_at": "2024-05-06T12:20:00Z",
"display_name": "Support Assistant",
"id": "993ed018-9e79-4e50-b97b-984bd5534095",
"project_id": "1313fe58-5e14-4c11-bbe7-6fdfa11fe780",
"type": "ai_agent",
"updated_at": "2024-05-06T12:25:00Z"
}
],
"links": {
"self": "https://example.signalwire.com/api/fabric/resources?page_number=0&page_size=50",
"first": "https://example.signalwire.com/api/fabric/resources?page_number=0&page_size=50"
}
}

Example

from signalwire.rest import RestClient
client = RestClient(
project="your-project-id",
token="your-api-token",
host="your-space.signalwire.com",
)
response = client.fabric.resources.list()
for resource in response.get("data", []):
print(f"{resource['type']}: {resource['name']} ({resource['id']})")