curl --request POST \
--url https://api.lightspark.com/grid/2025-10-13/agents/me/external-accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"currency": "USD",
"accountInfo": {
"accountType": "USD_ACCOUNT",
"accountNumber": "12345678901",
"routingNumber": "123456789",
"bankAccountType": "CHECKING",
"bankName": "Chase Bank",
"beneficiary": {
"beneficiaryType": "INDIVIDUAL",
"fullName": "John Doe",
"birthDate": "1990-01-15",
"nationality": "US",
"address": {
"line1": "123 Main Street",
"city": "San Francisco",
"state": "CA",
"postalCode": "94105",
"country": "US"
}
}
}
}
'{
"id": "ExternalAccount:e85dcbd6-dced-4ec4-b756-3c3a9ea3d965",
"status": "ACTIVE",
"currency": "USD",
"accountInfo": {
"accountType": "BRL_ACCOUNT",
"pixKey": "user@example.com",
"pixKeyType": "CPF",
"taxId": "11111111111"
},
"customerId": "Customer:da459a29-1fb7-41ce-a4cb-eb3a3c9fd7a7",
"platformAccountId": "acc_123456789",
"defaultUmaDepositAccount": false,
"beneficiaryVerificationStatus": "MATCHED",
"beneficiaryVerifiedData": {
"fullName": "John Doe"
}
}Register a new external bank account or wallet for the authenticated agent’s customer. Requires the MANAGE_EXTERNAL_ACCOUNTS permission in the agent’s policy. The customerId field is optional and will be inferred from the agent’s associated customer if omitted.
curl --request POST \
--url https://api.lightspark.com/grid/2025-10-13/agents/me/external-accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"currency": "USD",
"accountInfo": {
"accountType": "USD_ACCOUNT",
"accountNumber": "12345678901",
"routingNumber": "123456789",
"bankAccountType": "CHECKING",
"bankName": "Chase Bank",
"beneficiary": {
"beneficiaryType": "INDIVIDUAL",
"fullName": "John Doe",
"birthDate": "1990-01-15",
"nationality": "US",
"address": {
"line1": "123 Main Street",
"city": "San Francisco",
"state": "CA",
"postalCode": "94105",
"country": "US"
}
}
}
}
'{
"id": "ExternalAccount:e85dcbd6-dced-4ec4-b756-3c3a9ea3d965",
"status": "ACTIVE",
"currency": "USD",
"accountInfo": {
"accountType": "BRL_ACCOUNT",
"pixKey": "user@example.com",
"pixKeyType": "CPF",
"taxId": "11111111111"
},
"customerId": "Customer:da459a29-1fb7-41ce-a4cb-eb3a3c9fd7a7",
"platformAccountId": "acc_123456789",
"defaultUmaDepositAccount": false,
"beneficiaryVerificationStatus": "MATCHED",
"beneficiaryVerifiedData": {
"fullName": "John Doe"
}
}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.
The ISO 4217 currency code
"USD"
Show child attributes
{
"accountType": "AED_ACCOUNT",
"iban": "AE070331234567890123456",
"swiftCode": "EBILAEAD"
}
The ID of the customer for whom to create the external account. If not provided, the external account will be created on behalf of the platform.
"Customer:019542f5-b3e7-1d02-0000-000000000001"
Your platform's identifier for the account in your system. This can be used to reference the account by your own identifier.
"ext_acc_123456"
Whether to set the external account as the default UMA deposit account. When set to true, incoming payments to this customer's UMA address will be automatically deposited into this external account. False if not provided. Note that only one external account can be set as the default UMA deposit account for a customer, so if there is already a default UMA deposit account, this will override the existing default UMA deposit account. If there is no default UMA deposit account, incoming UMA payments will be deposited into the primary internal account for the customer.
External account created successfully
The system generated identifier of this account
"ExternalAccount:e85dcbd6-dced-4ec4-b756-3c3a9ea3d965"
Status of the external account
PENDING, ACTIVE, UNDER_REVIEW, INACTIVE "ACTIVE"
The ISO 4217 currency code
"USD"
Show child attributes
{
"accountType": "BRL_ACCOUNT",
"pixKey": "user@example.com",
"pixKeyType": "CPF",
"taxId": "11111111111"
}
The customer this account is tied to, or null if the account is on behalf of the platform.
"Customer:da459a29-1fb7-41ce-a4cb-eb3a3c9fd7a7"
Optional platform-specific identifier for this account
"acc_123456789"
Whether this account is the default UMA deposit account for the customer. If true, incoming UMA payments to this customer's UMA address will be automatically deposited into this account instead of the primary internal account. False if not provided. Note that at most, one external account can be set as the default UMA deposit account for a customer. If there is no default UMA deposit account, incoming UMA payments will be deposited into the primary internal account for the customer.
false
The result of verifying the beneficiary name against the account holder name
MATCHED, PARTIAL_MATCH, NOT_MATCHED, UNSUPPORTED, CHECKED_BY_RECEIVING_FI, PENDING Verified beneficiary data returned by the payment rail, if available
Show child attributes
Was this page helpful?