Skip to main content
POST
/
api
/
predict
/
outcome
Record Prediction Outcome
curl --request POST \
  --url https://api.revtain.com/api/predict/outcome \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "paymentMethodToken": "pm_1234567890",
  "actualOutcome": "succeeded"
}
'
{
  "predictionId": "pred_a1b2c3d4e5f6",
  "predictedRecommendation": "proceed_with_caution",
  "actualOutcome": "succeeded",
  "accurate": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.revtain.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-API-KEY
string
header
required

Your Revtain API key (format: rev_xxx). Provided during onboarding.

Body

application/json
paymentMethodToken
string
required

The same token used in the /predict/risk call.

Example:

"01KKZ10AD66A3VX260WKM0YFPG"

actualOutcome
enum<string>
required

What actually happened.

Available options:
succeeded,
failed,
blocked
Example:

"succeeded"

Response

Outcome recorded

predictionId
string
Example:

"pred_a1b2c3d4e5f6"

predictedRecommendation
string
Example:

"proceed_with_caution"

actualOutcome
string
Example:

"succeeded"

accurate
boolean
Example:

true