Skip to main content
GET
/
prompt
Get a specific prompt version by project ID and either version number or tag
curl --request GET \
  --url https://api.promptrun.ai/v1/prompt \
  --header 'Authorization: Bearer <token>'
{
  "updatedAt": "2025-07-21T04:17:39.294Z",
  "prompt": "Generate {{word_count}} words essay about Georgian History",
  "version": 9,
  "versionMessage": "I have updated system prompt to generate {{word_count}}",
  "project": {
    "id": "d0d52c6e-85ba-4025-a84c-3c99834fe2ac",
    "name": "Helpful AI Assistant"
  },
  "tag": "latest"
}

Authorizations

Authorization
string
header
required

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

Query Parameters

projectId
string
required

Project ID (UUID)

version
number

Version number of the prompt

tag
string

Tag of the prompt

Response

Returns the specified prompt version

updatedAt
string<date-time>
required

Last updated timestamp

Example:

"2025-07-21T04:17:39.294Z"

prompt
string
required

The prompt content

Example:

"Generate {{word_count}} words essay about Georgian History"

version
number
required

Version number of the prompt

Example:

9

versionMessage
string
required

Version message describing the changes

Example:

"I have updated system prompt to generate {{word_count}}"

project
object
required

Project information

tag
string

Tag assigned to the prompt

Example:

"latest"