Agent Operations
Create an agent deposit
Changed onCreate a deposit for the authenticated agent's customer. The returned target is a BOLT11 invoice for Lightning or an address for a supported chain. Requires the RECEIVE_FUNDS permission in the agent's policy.
post/agents/me/deposits
Request
- Base URLhttps://api.lightspark.com/grid/2025-10-13
- URLhttps://api.lightspark.com/grid/2025-10-13/agents/me/deposits
- AuthHTTP bearer
Headers
Idempotency-Keystring required
Example:550e8400-e29b-41d4-a716-446655440000
Unique identifier used to return the same deposit for retries.
Request body
Example request
{
"sourceCurrency": "USD",
"destinationInternalAccountId": "InternalAccount:019542f5-b3e7-1d02-0000-000000000002",
"amount": 2000
}Response
Deposit created successfully
Example response
{
"id": "AgentDeposit:019542f5-b3e7-1d02-0000-000000000001",
"sourceCurrency": "BTC",
"sourceAmount": 31500,
"destinationInternalAccountId": "InternalAccount:019542f5-b3e7-1d02-0000-000000000002",
"destinationCurrency": "USDB",
"estimatedReceiveAmount": {
"amount": 12550,
"currency": {
"code": "USD",
"name": "United States Dollar",
"symbol": "$",
"decimals": 2
}
},
"target": "lnbc1pndepositpp5...",
"paymentLinks": {
"cashApp": "https://cash.app/launch/lightning/lnbc1pndepositpp5...",
"shortUrl": "https://link.grid.money/deposit/Ab3dE7"
},
"expiresAt": "2026-10-09T18:05:00Z",
"createdAt": "2026-10-09T18:00:00Z",
"updatedAt": "2026-10-09T18:01:00Z"
}Changes
- info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- info
- warning
added the new
CORRIDOR_UNDER_MAINTENANCEenum value to theresponse property for the response status
- warning