Skip to main content
POST
/
get_prompt
Get Prompt
curl --request POST \
  --url https://api.promptstream.ai/get_prompt \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <x-api-key>' \
  --data '
{
  "prompt_id": "<string>",
  "inputs": {},
  "external_user_id": "<string>"
}
'
{
  "prompt_text": "<string>",
  "variant_assigned": "<string>",
  "experiment_id": "<string>"
}

Headers

X-API-Key
string
required

Body

application/json
prompt_id
string
required
inputs
Inputs · object
required
external_user_id
string | null

User ID for A/B bucketing; required if an experiment is running

Response

Successful Response

prompt_text
string
required
variant_assigned
string | null
experiment_id
string | null