cURL
curl --request GET \ --url https://api.trillet.ai/v1/api/call-flows \ --header 'x-api-key: <api-key>' \ --header 'x-workspace-id: <x-workspace-id>'
[ { "_id": "flowId1", "workspaceId": "workspaceIdExample1", "name": "Customer Support Flow", "direction": "inbound", "agent": "agentIdExample1", "isActive": true, "promptType": "simple", "createdAt": "2025-01-02T09:00:00Z", "updatedAt": "2025-01-02T09:30:00Z", "__v": 0 }, { "_id": "flowId2", "workspaceId": "workspaceIdExample2", "name": "Sales Inquiry Flow", "direction": "bidirectional", "agent": "agentIdExample2", "isActive": false, "promptType": "flow", "createdAt": "2025-01-05T09:00:00Z", "updatedAt": "2025-01-06T12:00:00Z", "__v": 0 } ]
Retrieve a list of all call flows in the workspace.