title: Get Assistant Workflow keywords: - get assistant workflow - get - assistant - workflow # Get Assistant Workflow Get the workflow linked to an assistant. #### Path Parameters **`assistant_id`** string required The assistant id parameter. ## Returns **`id`** string Workflow ID (flow_ prefixed) **`organization_id`** string Organization ID **`name`** string Workflow name **`description`** string or null Workflow description **`definition`** object Flow-plate workflow JSON **`version`** integer Workflow version number **`is_active`** boolean Whether workflow is active **`created_at`** integer Creation timestamp (Unix) **`updated_at`** integer Update timestamp (Unix) **`created_by`** string or null Creator user ID **`external_id`** string or null Flow-plate flow ID **`assistant_id`** string or null Linked assistant ID **`has_assistant`** boolean Whether workflow has Assistant node Example ```bash cURL curl -X GET "https://api.aitronos.com/v1/assistants/asst_abc123/workflow" \ -H "X-API-Key: $FREDDY_API_KEY" ``` ```python Python SDK from aitronos import Aitronos client = Aitronos(api_key="your-api-key") workflow = client.assistants.get_assistant_workflow("asst_abc123") print(workflow.id) ``` ```python Python import os import requests api_key = os.environ["FREDDY_API_KEY"] response = requests.get( "https://api.aitronos.com/v1/assistants/{assistant_id}/workflow", headers={"X-API-Key": api_key} ) print(response.json()) ``` ```javascript JavaScript const apiKey = process.env.FREDDY_API_KEY; const response = await fetch('https://api.aitronos.com/v1/assistants/{assistant_id}/workflow', { method: 'GET', headers: { 'X-API-Key': apiKey } }); const data = await response.json(); console.log(data); ``` **Response:** ```json 200 OK { "id": "flow_abc123def456", "organization_id": "org_abc123def456", "name": "My Resource", "description": "A description of the resource", "definition": {}, "version": 1, "is_active": true, "created_at": 1731667800, "updated_at": 1731667800, "created_by": "example_created_by", "external_id": "abc123def456", "assistant_id": "asst_abc123def456", "has_assistant": false } ``` Errors ```json 401 Unauthorized { "success": false, "error": { "code": "AUTHENTICATION_REQUIRED", "message": "Authentication required. Please provide a valid API key.", "system_message": "Missing or invalid authorization header", "type": "authentication_error", "status": 401, "trace_id": "req_abc123xyz", "timestamp": "2025-11-11T10:30:00Z", "details": {} } } ``` ```json 403 Forbidden { "success": false, "error": { "code": "INSUFFICIENT_PERMISSIONS", "message": "You do not have permission to access this resource.", "system_message": "Insufficient permissions for this operation", "type": "authorization_error", "status": 403, "trace_id": "req_def456uvw", "timestamp": "2025-11-11T10:30:00Z", "details": {} } } ``` ## Related Resources - [Create Assistant](/docs/api-reference/assistants/create) - [List Assistants](/docs/api-reference/assistants/list)