List all tokens for an agent.
cURL
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 } ] }
API key for authentication. Get your key from the Dashboard.
The agent ID
Token list
list
Show child attributes