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