Skip to main content
POST
Restore prompt wording to an earlier revision

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.

Headers

Idempotency-Key
string

Optional client-generated key (e.g. a UUID). Retrying with the same key within 24h replays the original stored response (X-Idempotent-Replay: true) instead of repeating the side effect. See Idempotency.

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.

revision
integer
required

The revision number to restore.

Required range: x >= 1

Body

application/json
expectedRevision
integer
required

Response

Prompt wording restored.

prompt
object
required

The curated prompt shape update_prompt, the tracking endpoint, and restore_prompt_wording all return — never the raw internal row (no userId, workspaceId, or textEmbedding).

success
boolean
required