Skip to main content
POST
/
track_outcome
Track Outcome
curl --request POST \
  --url https://api.promptstream.ai/track_outcome \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <x-api-key>' \
  --data '
{
  "prompt_run_id": "<string>",
  "prompt_id": "<string>",
  "external_user_id": "<string>",
  "event_type": "<string>",
  "label": "<string>",
  "value": "<string>",
  "numeric_value": 123,
  "is_success": true,
  "source": "<string>",
  "metadata": {}
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Headers

X-API-Key
string
required

Body

application/json
prompt_run_id
string
required
prompt_id
string
required
external_user_id
string | null
required
event_type
string
required
label
string
required
value
string
required
numeric_value
number | null
is_success
boolean | null
source
string | null
metadata
Metadata · object

Response

Successful Response