Skip to main content
GET
/
policies
/
agent
/
{agentId}
Get the effective policy for an agent
curl --request GET \
  --url https://api.getovra.com/policies/agent/{agentId} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "agentId": "<string>",
  "ownerId": "<string>",
  "name": "<string>",
  "maxTransactionEuros": 123,
  "dailyLimitEuros": 123,
  "monthlyLimitEuros": 123,
  "autoApproveLimitEuros": 123,
  "merchantAllowlist": [
    "<string>"
  ],
  "merchantBlocklist": [
    "<string>"
  ],
  "mccCategories": [
    "<string>"
  ],
  "allowedCountries": [
    "<string>"
  ],
  "lockToFirstMerchant": true,
  "cooldownMinutes": 123,
  "requireIntent": true,
  "requireAttestation": true,
  "expiresAfterMinutes": 123,
  "expirationAction": "<string>",
  "activeHoursStart": 123,
  "activeHoursEnd": 123,
  "maxUsageCount": 123,
  "amountTolerancePercent": 123,
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

agentId
string
required

Response

Agent policy

id
string
agentId
string
ownerId
string
name
string
maxTransactionEuros
number | null
dailyLimitEuros
number | null
monthlyLimitEuros
number | null
autoApproveLimitEuros
number | null
merchantAllowlist
string[]
merchantBlocklist
string[]
mccCategories
string[]
allowedCountries
string[]
lockToFirstMerchant
boolean
cooldownMinutes
integer | null
requireIntent
boolean
requireAttestation
boolean
expiresAfterMinutes
integer | null
expirationAction
string
activeHoursStart
integer | null
activeHoursEnd
integer | null
maxUsageCount
integer | null
amountTolerancePercent
number | null
updatedAt
string<date-time>