Skip to main content

Endpoint

string
default:"POST"
POST
string
/v1/prompt/query

Authentication

This endpoint requires API key authentication. Include your API key in the request headers:

Request Body

object
required
Filter criteria for prompts. Can be β€œall” for no filtering, or an object with prompt_v2 filters:
  • id: Filter by prompt ID
  • user_defined_id: Filter by user-defined ID
Each filter supports operators like equals, like, ilike, contains, etc.

Response

array
Array of prompt objects
string
Unique identifier for the prompt
string
User-defined identifier
string
Prompt description
string
Display name for the prompt
string
Prompt creation timestamp
number
Current major version number
object
Additional metadata
string | null
Error message if the request failed, null otherwise

Example Request - Get All Prompts

Example Request - Filter by User-Defined ID

Example Response

Filter Operators

The following operators are available for text filters:
  • equals: Exact match
  • not-equals: Does not match
  • like: SQL LIKE pattern matching (case-sensitive)
  • ilike: SQL LIKE pattern matching (case-insensitive)
  • contains: Contains substring
  • not-contains: Does not contain substring