Skip to main content
GET
/
v1
/
agents
/
{agentId}
/
tokens
List agent tokens
curl --request GET \
  --url https://api.ledger.so/v1/agents/{agentId}/tokens \
  --header 'Api-Key: <api-key>'
{
  "object": "list",
  "data": [
    {
      "id": "<string>",
      "agentId": "<string>",
      "tokenPrefix": "<string>",
      "isActive": true,
      "createdAt": 123,
      "name": "<string>",
      "expiresAt": 123,
      "lastUsedAt": 123,
      "revokedAt": 123
    }
  ]
}

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

Token list

object
enum<string>
required
Available options:
list
data
object[]
required