Agent Operations
Get current agent
Changed onRetrieve the authenticated agent's own profile, policy, and current usage. This endpoint is called by the agent software itself using its own credentials (obtained via device code redemption) rather than platform credentials.
get/agents/me
Request
- Base URL: https://api.lightspark.com/grid/2025-10-13
- URL: https://api.lightspark.com/grid/2025-10-13/agents/me
- Auth: HTTP bearer
Response
Successful operation
Example response
{
"id": "Agent:019542f5-b3e7-1d02-0000-000000000001",
"name": "Payroll Automation Agent",
"customerId": "Customer:019542f5-b3e7-1d02-0000-000000000001",
"isConnected": true,
"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
}
},
"usage": {
"dailyTransactionCount": 3,
"dailySpend": 150000,
"dailyResetDate": "2025-07-22",
"monthlySpend": 750000,
"monthlyResetMonth": "2025-08"
},
"createdAt": "2025-07-21T17:32:28Z",
"updatedAt": "2025-07-21T17:32:28Z"
}Changes
- breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking
- info
removed the
CREATE_TRANSFERSenum value from the//response property for the response status
- info