Skip to main content
GET
/
v1
/
agents
/
{agentId}
/
policy
Get agent policy
curl --request GET \
  --url https://api.useproxy.ai/v1/agents/{agentId}/policy \
  --header 'Api-Key: <api-key>'
{
  "agentId": "<string>",
  "currentSpend": 123,
  "remaining": 123,
  "spendingLimit": 123,
  "spendingLimitFrequency": "perTransaction",
  "onLimitExceeded": "suspend"
}

Authorizations

Api-Key
string
header
required

API key for authentication. Get your key from the Dashboard.

Path Parameters

agentId
string
required

The agent ID

Response

Agent policy

agentId
string
required
currentSpend
integer
required

Current spend in cents

remaining
integer
required

Remaining spend in cents

spendingLimit
integer

Spending limit in cents

spendingLimitFrequency
enum<string>
Available options:
perTransaction,
per24HourPeriod,
perWeek,
perMonth,
perYear,
allTime
onLimitExceeded
enum<string>
Available options:
suspend,
notify,
none