Skip to content
agentsub
Esc
↑↓navigate↵open⌘Jpreview

Agent ledger history

GET/v1/history
Authorization
AuthorizationBearer token (JWT) · headerrequired

Verified AgentID agent JWT (iss https://auth.agentid.com) or an AgentSub OAuth access token (typ at+jwt, iss https://api.agentsub.dev, scope agentsub:agent). The agent's human owner must exist in Clerk with the same verified email.

Responses
200

Ledger entries (grants, holds, captures, releases, expiries)

entriesLedgerEntry[]
Show properties
Array of LedgerEntry
idstring
txIdstring
kindstring
agentIdstring
debitAccountIdstring
creditAccountIdstring
lotIdstring
amountUcMicrocredits

Integer microcredits as a decimal string. 1 credit = 1,000,000 microcredits = $0.01 USD.

matches ^[0-9]+$
atinteger
401

unauthorized problem; live 401s advertise WWW-Authenticate: Bearer resource_metadata=...

typestringrequired
titlestringrequired
statusintegerrequired
codestringrequired
503

Runtime or provider configuration unavailable (runtime_configuration_required, signing_configuration_required, runtime_unavailable, workspace_unavailable, provider_configuration_required)

typestringrequired
titlestringrequired
statusintegerrequired
codestringrequired
Request
curl -X GET 'https://api.agentsub.dev/v1/history' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "entries": [
    {
      "id": "string",
      "txId": "string",
      "kind": "string",
      "agentId": "string",
      "debitAccountId": "string",
      "creditAccountId": "string",
      "lotId": "string",
      "amountUc": "string",
      "at": 0
    }
  ]
}