Skip to main content
GET
/
v1
/
prompts
/
{promptId}
/
versions
List all versions for a prompt
curl --request GET \
  --url https://api.example.com/v1/prompts/{promptId}/versions \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "promptId": "<string>",
    "version": 123,
    "content": "<string>",
    "createdAt": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

promptId
string
required

Response

200 - application/json
id
string
required

Version UUID

promptId
string
required

Parent prompt UUID

version
number
required

Sequential version number (starts at 1)

content
string
required

Prompt text; supports {{variable}} placeholders

createdAt
string<date-time>
required