Skip to main content
GET
Get prompt revisions

Authorizations

Authorization
string
header
required

A Searchable API key, created under Settings → Workspace → Integrations. Send as Authorization: Bearer sea_xxxxx. Every key carries one or more scopes (read, write, admin) and may optionally be bound to a single project — see Getting started.

Path Parameters

projectId
string<uuid>
required

The project id.

promptId
string<uuid>
required

The prompt's id, as list_prompts prints it. These routes change a prompt or read its history, so they take the id only: no prefix or text lookup, and a value that is not a UUID is 404.

Query Parameters

limit
integer
default:50

Page size (default 50, max 200).

Required range: 1 <= x <= 200
beforeRevision
integer

Page backward from this revision number.

Required range: x >= 1

Response

The prompt's revision history.

currentRevision
integer
required
revisions
object[]
required