cURL
curl --request GET \ --url https://api.trillet.ai/v1/api/message-flows/{id} \ --header 'x-api-key: <api-key>' \ --header 'x-workspace-id: <x-workspace-id>'
{ "_id": "exampleId1", "workspaceId": "exampleWorkspaceId1", "name": "My-SMS-Flow", "direction": "bidirectional", "description": "Example message flow for SMS marketing", "agent": "exampleAgentId1", "settings": { "knowledgeBases": [], "security": {} }, "prompt": "You are an AI that handles inbound messages.", "isActive": true, "autopilot": false, "messageChannel": "SMS", "createdAt": "2025-01-02T10:15:00Z", "updatedAt": "2025-01-02T10:30:00Z" }
Retrieve a specific message flow.