Skip to main content
POST
/
policies
/
simulate
Simulate a spending intent against an agent's policy
curl --request POST \
  --url https://api.getovra.com/policies/simulate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "agentId": "<string>",
  "amount": 1,
  "merchant": "<string>"
}
'
{
  "allowed": true,
  "requiresApproval": true,
  "reason": "<string>"
}

Authorizations

Authorization
string
header
required

API key (sk_...) or Agent token (at_...)

Body

application/json
agentId
string
required
Minimum string length: 1
amount
number
required
Required range: x >= 0
merchant
string

Response

Simulation result

allowed
boolean
requiresApproval
boolean
reason
string | null