Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Get prompts by project

GET/v1/private/projects/{projectId}/promptsGet prompts by project

Get prompts scoped to a project

Parameters

projectIdstring · uuidpathrequired
pageinteger · int32query

default 1 · minimum 1

sizeinteger · int32query

default 10 · minimum 1

namestringquery

Filter prompts by name (partial match, case insensitive)

sortingstringquery
filtersstringquery

Responses

200OKapplication/json
objectPromptPage_Public
contentarray of object
Show child attributes
Show array items
created_atstring · date-time
created_bystring
descriptionstring

maxLength 255 · minLength 0 · pattern (?s)^\s*(\S.*\S|\S)\s*$

idstring · uuid
last_updated_atstring · date-time
last_updated_bystring
namestringrequired

minLength 1

project_idstring · uuid

Project ID. Takes precedence over project_name when both are provided.

tagsarray of string

uniqueItems true

Show child attributes

uniqueItems true

template_structurestring

Template structure type: 'text' or 'chat'. Immutable after creation.

one of "text", "chat" · default "text"

version_countinteger · int64
pageinteger · int32
sizeinteger · int32
sortableByarray of string
Show child attributes
totalinteger · int64
Example response
{
  "content": [
    {
      "created_at": "2026-06-09T00:00:00Z",
      "created_by": "string",
      "description": "string",
      "id": "00000000-0000-0000-0000-000000000000",
      "last_updated_at": "2026-06-09T00:00:00Z",
      "last_updated_by": "string",
      "name": "string",
      "project_id": "00000000-0000-0000-0000-000000000000",
      "tags": [
        "string"
      ],
      "template_structure": "text",
      "version_count": 0
    }
  ],
  "page": 0,
  "size": 0,
  "sortableBy": [
    "string"
  ],
  "total": 0
}
Documentation menu