cURL
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>" }
Show child attributes
User ID for A/B bucketing; required if an experiment is running
Successful Response