{ "opencollection": "1.0.0", "info": { "name": "PostHog actions llm_prompts API", "version": "1.0.0" }, "items": [ { "info": { "name": "llm_prompts", "type": "folder" }, "items": [ { "info": { "name": "llm_prompts_list", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/environments/:project_id/llm_prompts/", "params": [ { "name": "content", "value": "", "type": "query", "description": "Controls how much prompt content is included in the response. 'full' includes the full prompt, 'preview' includes a short prompt_preview, and 'none' omits prompt content entirely. The outline field is always included.\n\n* `full` - full\n* `preview` - preview\n* `none` - none" }, { "name": "created_by_id", "value": "", "type": "query", "description": "Filter prompts by the ID of the user who created them." }, { "name": "limit", "value": "", "type": "query", "description": "Number of results to return per page." }, { "name": "offset", "value": "", "type": "query", "description": "The initial index from which to return the results." }, { "name": "project_id", "value": "", "type": "path", "description": "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/." }, { "name": "search", "value": "", "type": "query", "description": "Optional substring filter applied to prompt names and prompt content." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } } }, { "info": { "name": "llm_prompts_create", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/environments/:project_id/llm_prompts/", "params": [ { "name": "project_id", "value": "", "type": "path", "description": "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } } }, { "info": { "name": "llm_prompts_name_retrieve", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/environments/:project_id/llm_prompts/name/:prompt_name/", "params": [ { "name": "content", "value": "", "type": "query", "description": "Controls how much prompt content is included in the response. 'full' includes the full prompt, 'preview' includes a short prompt_preview, and 'none' omits prompt content entirely. The outline field is always included.\n\n* `full` - full\n* `preview` - preview\n* `none` - none" }, { "name": "project_id", "value": "", "type": "path", "description": "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/." }, { "name": "prompt_name", "value": "", "type": "path" }, { "name": "version", "value": "", "type": "query", "description": "Specific prompt version to fetch. If omitted, the latest version is returned." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } } }, { "info": { "name": "llm_prompts_name_partial_update", "type": "http" }, "http": { "method": "PATCH", "url": "{{baseUrl}}/api/environments/:project_id/llm_prompts/name/:prompt_name/", "params": [ { "name": "project_id", "value": "", "type": "path", "description": "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/." }, { "name": "prompt_name", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } } }, { "info": { "name": "llm_prompts_name_archive_create", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/environments/:project_id/llm_prompts/name/:prompt_name/archive/", "params": [ { "name": "project_id", "value": "", "type": "path", "description": "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/." }, { "name": "prompt_name", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } } }, { "info": { "name": "llm_prompts_name_duplicate_create", "type": "http" }, "http": { "method": "POST", "url": "{{baseUrl}}/api/environments/:project_id/llm_prompts/name/:prompt_name/duplicate/", "params": [ { "name": "project_id", "value": "", "type": "path", "description": "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/." }, { "name": "prompt_name", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } } }, { "info": { "name": "llm_prompts_resolve_name_retrieve", "type": "http" }, "http": { "method": "GET", "url": "{{baseUrl}}/api/environments/:project_id/llm_prompts/resolve/name/:prompt_name/", "params": [ { "name": "before_version", "value": "", "type": "query", "description": "Return versions older than this version number. Mutually exclusive with offset." }, { "name": "limit", "value": "", "type": "query", "description": "Maximum number of versions to return per page (1-100)." }, { "name": "offset", "value": "", "type": "query", "description": "Zero-based offset into version history for pagination. Mutually exclusive with before_version." }, { "name": "project_id", "value": "", "type": "path", "description": "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/." }, { "name": "prompt_name", "value": "", "type": "path" }, { "name": "version", "value": "", "type": "query", "description": "Specific prompt version to fetch. If omitted, the latest version is returned." }, { "name": "version_id", "value": "", "type": "query", "description": "Exact prompt version UUID to resolve. Can be used together with version for extra safety." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } } } ] } ], "bundled": true }