Try Bifrost Enterprise free for 14 days. Explore now
cURL
curl --request POST \ --url http://localhost:8080/api/prompt-repo/prompts/{id}/sessions \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "model_params": {}, "provider": "<string>", "model": "<string>", "version_id": 123, "messages": [ {} ] } '
{ "session": { "id": 123, "prompt_id": "<string>", "version_id": 123, "name": "<string>", "model_params": {}, "provider": "<string>", "model": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "messages": [ { "id": 123, "order_index": 123, "message": {} } ] } }
Creates a new playground session for a prompt.
Prompt ID
Fork from this version
Session created
Prompt playground session
Show child attributes
Was this page helpful?