Prompts

Retrieve a prompt

The latest version of a prompt, or the one in ?version=.

get/prompts/{prompt_id}

Request

  • Base URL
    https://api.openscale.so/v1
  • URL
    https://api.openscale.so/v1/prompts/{prompt_id}
  • Auth
    HTTP bearer

Query parameters

versionstring

Response

The prompt.

idstring required
object'prompt' required
namestring nullable
versionstring required
latest_versionstring required
variablesstring[] required
created_atinteger
version_created_atinteger

Example response

{
  "id": "pmpt_9f2c...",
  "version": "2"
}

Changes

No recorded changes to this operation across all 1 revision of this API.