Skip to main content

Endpoint

string
default:"POST"
POST
string
/v1/prompt/{promptId}/query

Authentication

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

Path Parameters

string
required
The unique identifier of the prompt

Request Body

object
required
Time range to filter prompt usage
string
required
Start time in ISO 8601 format
string
required
End time in ISO 8601 format

Response

object
Prompt details
string
Unique identifier for the prompt
string
User-defined identifier
string
Prompt description
string
Display name for the prompt
number
Current major version number
string
ID of the latest prompt version
string
Most recently used model for this prompt
string
Prompt creation timestamp
string
Timestamp of last usage
array
Array of version IDs
object
Additional metadata
string | null
Error message if the request failed, null otherwise

Example Request

Example Response