Agent Management
Redeem device code
Redeem a device code to obtain agent credentials. This endpoint is called by the agent software during installation. On success, returns a Bearer access token that the agent uses for all subsequent API calls. The token is returned only once and must be stored securely. This endpoint does not require platform authentication — the device code itself serves as proof of authorization.
post/agents/device-codes/{code}/redeem
Response
Device code redeemed successfully
Example response
{
"agentId": "Agent:019542f5-b3e7-1d02-0000-000000000001",
"agentName": "Payroll Automation Agent",
"accessToken": "gat_ed0ad25881e234cc28fb2dec0a4fe64e4172a3b9",
"policy": {
"spendingLimits": {
"currency": "USD",
"perTransactionLimit": 50000,
"dailyLimit": 500000,
"dailyTransactionLimit": 10,
"monthlyLimit": 5000000
},
"accountRestrictions": {
"allowedAccountIds": [
"Account:019542f5-b3e7-1d02-0000-000000000001"
],
"accountRules": [
{
"accountId": "Account:019542f5-b3e7-1d02-0000-000000000001",
"perTransactionLimit": 10000
}
]
},
"approvalThresholds": {
"currency": "USD",
"amount": 100000
}
}
}