provider llm_prompts GET /api/projects/{project_id}/llm_prompts/
@utdk/posthog /api/projects/{project_id}/llm_prompts/
llm_prompts_list
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
created_by_id query
Filter prompts by the ID of the user who created them.
integer
limit query
Number of results to return per page.
integer
offset query
The initial index from which to return the results.
integer
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
search query
Optional substring filter applied to prompt names and prompt content.
string

Try it

Authentication
Configure credentials for PostHog API
llmPromptsList
GET/api/projects/{project_id}/llm_prompts/

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/.

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

Filter prompts by the ID of the user who created them.

Number of results to return per page.

The initial index from which to return the results.

Optional substring filter applied to prompt names and prompt content.

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.llmPromptsList({
  "content": "full"
})