Skip to main content
GET
/
v1
/
agents
/
{agentId}
Get agent
curl --request GET \
  --url https://api.ledger.so/v1/agents/{agentId} \
  --header 'Api-Key: <api-key>'
{
  "id": "<string>",
  "userId": "<string>",
  "name": "<string>",
  "status": "active",
  "createdAt": 123,
  "description": "<string>",
  "spendingLimit": 123,
  "spendingLimitFrequency": "perTransaction",
  "currentSpend": 123,
  "onLimitExceeded": "suspend",
  "maxCards": 123,
  "cardCount": 123,
  "metadata": {}
}

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 details

id
string
required
userId
string
required
name
string
required
status
enum<string>
required
Available options:
active,
suspended
createdAt
integer
required
description
string
spendingLimit
integer
spendingLimitFrequency
enum<string>
Available options:
perTransaction,
per24HourPeriod,
perWeek,
perMonth,
perYear,
allTime
currentSpend
integer

Current spend in the period

onLimitExceeded
enum<string>
Available options:
suspend,
notify,
none
maxCards
integer
cardCount
integer
metadata
object