curl --request GET \
--url https://api.lightspark.com/grid/2025-10-13/agents/me/internal-accounts \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "InternalAccount:12dcbd6-dced-4ec4-b756-3c3a9ea3d123",
"type": "INTERNAL_FIAT",
"balance": {
"amount": 12550,
"currency": {
"code": "USD",
"name": "United States Dollar",
"symbol": "$",
"decimals": 2
}
},
"fundingPaymentInstructions": [
{
"accountOrWalletInfo": {
"accountType": "USD_ACCOUNT",
"accountNumber": "1234567890",
"routingNumber": "021000021"
},
"instructionsNotes": "Please ensure the reference code is included in the payment memo/description field",
"isPlatformAccount": true
}
],
"createdAt": "2025-10-03T12:30:00Z",
"updatedAt": "2025-10-03T12:30:00Z",
"customerId": "Customer:019542f5-b3e7-1d02-0000-000000000001"
}
],
"hasMore": true,
"nextCursor": "<string>",
"totalCount": 123
}Retrieve the internal accounts belonging to the customer this agent operates on behalf of. Use this to discover available source accounts for transfers and quotes, and to verify which accounts are accessible under the agent’s accountRestrictions policy.
curl --request GET \
--url https://api.lightspark.com/grid/2025-10-13/agents/me/internal-accounts \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "InternalAccount:12dcbd6-dced-4ec4-b756-3c3a9ea3d123",
"type": "INTERNAL_FIAT",
"balance": {
"amount": 12550,
"currency": {
"code": "USD",
"name": "United States Dollar",
"symbol": "$",
"decimals": 2
}
},
"fundingPaymentInstructions": [
{
"accountOrWalletInfo": {
"accountType": "USD_ACCOUNT",
"accountNumber": "1234567890",
"routingNumber": "021000021"
},
"instructionsNotes": "Please ensure the reference code is included in the payment memo/description field",
"isPlatformAccount": true
}
],
"createdAt": "2025-10-03T12:30:00Z",
"updatedAt": "2025-10-03T12:30:00Z",
"customerId": "Customer:019542f5-b3e7-1d02-0000-000000000001"
}
],
"hasMore": true,
"nextCursor": "<string>",
"totalCount": 123
}Documentation Index
Fetch the complete documentation index at: https://ramps-docs-agents-webhook-and-account-model-links.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer token authentication for agent-scoped endpoints. The token is the accessToken returned when redeeming a device code via POST /agents/device-codes/{code}/redeem. Agent credentials are user-scoped: all requests are automatically bound to the agent's associated customer and subject to the agent's policy.
Filter by currency code
Filter by internal account type. Use EMBEDDED_WALLET to find the self-custodial wallet provisioned for the customer, or INTERNAL_FIAT / INTERNAL_CRYPTO for platform-managed holding accounts.
Classification of an internal account.
INTERNAL_FIAT: A Grid-managed fiat holding account (for example, the USD holding account used as the source for Payouts flows).INTERNAL_CRYPTO: A Grid-managed crypto holding account denominated in a stablecoin such as USDC.EMBEDDED_WALLET: A self-custodial Embedded Wallet provisioned for the customer. Outbound transfers require a session signature produced by the customer's device — see the Embedded Wallets guide.INTERNAL_FIAT, INTERNAL_CRYPTO, EMBEDDED_WALLET Maximum number of results to return (default 20, max 100)
1 <= x <= 100Cursor for pagination (returned from previous request)
Successful operation
List of internal accounts matching the filter criteria
Show child attributes
Indicates if more results are available beyond this page
Cursor to retrieve the next page of results (only present if hasMore is true)
Total number of customers matching the criteria (excluding pagination)
Was this page helpful?