# List preset prompts div strong 🔨 In Development — This section is still being developed and may change. Get all preset prompts for a specific assistant with their order and status. #### Path Parameters **`assistant_id`** string required The unique identifier of the assistant to get preset prompts for. #### Query Parameters **`include_inactive`** boolean optional · Defaults to `false` Whether to include inactive preset prompts in results. List Preset Prompts ```bash curl "https://api.freddy.aitronos.com/v1/assistants/ass_0c23daea5e34/preset-prompts" \ -H "Authorization: Bearer $FREDDY_API_KEY" ``` ```python import requests response = requests.get( "https://api.freddy.aitronos.com/v1/assistants/ass_0c23daea5e34/preset-prompts", headers={"Authorization": f"Bearer {api_key}"} ) prompts = response.json() print(f"Found {len(prompts['preset_prompts'])} preset prompts") ``` ```javascript const response = await fetch('https://api.freddy.aitronos.com/v1/assistants/ass_0c23daea5e34/preset-prompts', { headers: { 'Authorization': `Bearer ${api_key}` } }); const prompts = await response.json(); console.log(`Found ${prompts.preset_prompts.length} preset prompts`); ``` Include Inactive ```bash curl "https://api.freddy.aitronos.com/v1/assistants/ass_0c23daea5e34/preset-prompts?include_inactive=true" \ -H "Authorization: Bearer $FREDDY_API_KEY" ``` ```python import requests response = requests.get( "https://api.freddy.aitronos.com/v1/assistants/ass_0c23daea5e34/preset-prompts", headers={"Authorization": f"Bearer {api_key}"}, params={"include_inactive": True} ) prompts = response.json() ``` ```javascript const response = await fetch('https://api.freddy.aitronos.com/v1/assistants/ass_0c23daea5e34/preset-prompts?include_inactive=true', { headers: { 'Authorization': `Bearer ${api_key}` } }); const prompts = await response.json(); ``` ## Response ## Returns A list of [Preset Prompt objects](/docs/api-reference/objects/preset-prompt-object). 200 OK ```json { "preset_prompts": [ { "preset_prompt_id": 1, "preset_prompt_name": "Welcome Message", "preset_prompt_value": "Hello! How can I help you today?", "preset_prompt_icon": { "id": "icon_welcome", "url": "https://cdn.aitronos.com/icons/icon-welcome.svg", "alt": "Speech bubble icon" }, "order_index": 0, "is_active": true, "created_at": "2025-01-20T10:30:00Z", "updated_at": "2025-01-20T10:30:00Z" }, { "preset_prompt_id": 2, "preset_prompt_name": "Product Information", "preset_prompt_value": "Can you tell me about your products and services?", "preset_prompt_icon": { "id": "icon_product", "url": "https://cdn.aitronos.com/icons/icon-product.svg", "alt": "Box icon" }, "order_index": 1, "is_active": true, "created_at": "2025-01-20T11:15:00Z", "updated_at": "2025-01-20T11:15:00Z" }, { "preset_prompt_id": 3, "preset_prompt_name": "Technical Support", "preset_prompt_value": "I need help with a technical issue.", "preset_prompt_icon": { "id": "icon_support", "url": "https://cdn.aitronos.com/icons/icon-support.svg", "alt": "Lifebuoy icon" }, "order_index": 2, "is_active": false, "created_at": "2025-01-20T12:00:00Z", "updated_at": "2025-01-20T12:00:00Z" } ], "total_count": 3 } ``` Errors ```json { "message": "Assistant not found", "detail": "Assistant with ID 'ass_0c23daea5e34' not found", "error_code": "ASSISTANT_NOT_FOUND", "status_code": 404, "path": "/v1/assistants/ass_0c23daea5e34/preset-prompts", "method": "GET" } ```