Skip to main content

Supported currencies

During onboarding, choose the currencies your platform will support. For prefunded models, Grid automatically creates per‑currency accounts for each new customer. You can add or remove supported currencies anytime in the Grid dashboard.

API credentials and authentication

Create API credentials in the Grid dashboard. Credentials are scoped to an environment (Sandbox or Production) and cannot be used across environments.
  • Authentication: Use HTTP Basic Auth with your API key and secret in the Authorization header.
  • Keys: Sandbox keys only work against Sandbox; Production keys only work against Production.
Never share or expose your API secret. Rotate credentials periodically and restrict access.

Example: HTTP Basic Auth in cURL

Base API path

The base API path is consistent across environments; your credentials determine the environment. Base URL: https://api.lightspark.com/grid/2025-10-13 (same for Sandbox and Production; your keys select the environment).

Webhooks and signature verification

Configure your webhook endpoint to receive payment lifecycle events. Webhooks use asymmetric (public/private key) signatures; verify each webhook using the Grid public key available in your dashboard.
  • Expose a public HTTPS endpoint (for development, reverse proxies like ngrok can help). You’ll also need to set your webhook endpoint in the Grid dashboard.
  • When receiving webhooks, verify the X-Grid-Signature header against the exact request body using the dashboard-provided public key
  • Process events idempotently and respond with 2xx on success
You can trigger a test delivery from the API to validate your endpoint setup. The public key for verification is shown in the dashboard; rotate and update it when instructed by Lightspark.

Test your webhook endpoint

Use the webhook test endpoint to send a synthetic event to your configured endpoint.
Example test webhook payload:
For more details about webhooks like retry policy and examples, take a look at our Webhooks documentation.

Global Account settings

Global Account settings live under embeddedWalletConfig in the platform configuration. You can set them once your platform supports Global Accounts, with USDB in its supported currencies. Fields you leave out of an update keep their current values.

Wallet provisioning

walletProvisioning sets when a customer’s wallet is created:
  • AT_CUSTOMER_CREATE (default): the wallet is created when the customer’s first Global Account opens, once the customer is eligible. The customer’s email becomes the wallet’s first EMAIL_OTP credential, so creating a customer requires an email. A customer with no email on file when the account opens gets the AT_FIRST_CREDENTIAL behavior.
  • AT_FIRST_CREDENTIAL: the Global Account is created once the customer is eligible and stays PENDING with no wallet. The first credential you add creates the wallet. It can be EMAIL_OTP, OAUTH, PASSKEY, or EVM_WALLET, but not SMS_OTP. Creating a customer requires no email.
Grid reads this value once, when the customer’s first Global Account opens. Changing it applies to customers whose Global Account hasn’t opened yet. See When the wallet is created.

Session lifetime

sessionLifetime is how long each new session lasts, in seconds, for every sign-in and every session refresh by your customers. It must be at least 60. The maximum is one year, and a larger value is rejected with 400 INVALID_INPUT. A change applies to sessions created after it; existing sessions keep their expiry. See Sessions.