provider llm_prompts GET /api/projects/{project_id}/llm_prompts/name/{prompt_name}/
@utdk/posthog /api/projects/{project_id}/llm_prompts/name/{prompt_name}/
llm_prompts_name_retrieve
content query
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. * `full` - full * `preview` - preview * `none` - none
enum: full, preview, none
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string
prompt_name path required
string
version query
Specific prompt version to fetch. If omitted, the latest version is returned.
integer

Try it

Authentication
Configure credentials for PostHog API
llmPromptsNameRetrieve
GET/api/projects/{project_id}/llm_prompts/name/{prompt_name}/

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

required

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. * `full` - full * `preview` - preview * `none` - none

Specific prompt version to fetch. If omitted, the latest version is returned.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.llmPromptsNameRetrieve({
  "content": "full"
})