API Authentication
Authenticate with the Spark! API
Last updated: 2026-01-19
The Spark! API uses API keys for authentication. Include your API key in the Authorization header of every request.
Getting Your API Key
- Navigate to Settings → API → API Keys
- Click "Create API Key"
- Name your key (e.g., "Production", "Staging")
- Set permissions (read-only or read-write)
- Copy and securely store the key
Keep Keys Secret
API keys provide full access to your Spark! data. Never expose them in client-side code, public repositories, or logs.
Using Your API Key
Include the API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Rate Limits
API requests are rate limited:
- Standard — 100 requests per minute
- Bulk operations — 10 requests per minute
- Webhooks — Unlimited (outbound)
Rate limit headers are included in every response:
X-RateLimit-Limit— Maximum requests allowedX-RateLimit-Remaining— Requests remainingX-RateLimit-Reset— Unix timestamp when limit resets
Error Handling
API errors return standard HTTP status codes:
- 400 — Bad request (invalid parameters)
- 401 — Unauthorized (invalid or missing API key)
- 403 — Forbidden (insufficient permissions)
- 404 — Not found
- 429 — Too many requests (rate limited)
- 500 — Server error
Environments
- Production —
https://api.chargezen.com/spark/v1 - Sandbox —
https://sandbox.chargezen.com/spark/v1
Sandbox Testing
Use the sandbox environment for testing. It mirrors production but doesn't affect real data or trigger real payments.
Next Steps
Related Articles
Was this page helpful?
Need more help? Contact support