Skip to main content
POST
/
v1
/
scenarios
/
draft-from-session
Generate an unsaved scenario draft from a captured session
curl --request POST \
  --url https://api-sandbox.featherhq.com/v1/scenarios/draft-from-session \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "name": "<string>",
  "intent": "<string>",
  "journey": "",
  "mock_world": {},
  "source": "manual",
  "source_brief": "<string>",
  "source_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "source_persona_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "tags": [
    "<string>"
  ],
  "agent_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "source_agent_name": "<string>",
  "source_persona_name": "<string>"
}

Authorizations

x-api-key
string
header
required

Body

application/json
session_id
string<uuid>
required

Response

Successful Response

name
string
required
Required string length: 1 - 255
intent
string
required
Required string length: 1 - 500
journey
string
default:""
Maximum string length: 20000
mock_world
Mock World · object
source
enum<string>
default:manual
Available options:
manual,
drafted
source_brief
string | null
Maximum string length: 2000
source_agent_id
string<uuid> | null
source_persona_id
string<uuid> | null
tags
string[]
agent_ids
string<uuid>[]
source_agent_name
string | null
source_persona_name
string | null