Authentication
Zanga uses API Key-based authentication for server-to-server communication. All requests to the Zanga Financial Core must include an X-Zanga-Api-Key header.
Generating API Keys
- Navigate to your Platform Dashboard
- Select your platform
- Choose either Sandbox or Live environment
- Click "Generate Key"
[!IMPORTANT] Always store your API keys securely. Never expose them in client-side code (frontend).
Example Request
curl -X GET "http://localhost:4001/v1/api/balance" \
-H "X-Zanga-Api-Key: your_api_key_here"
Error Codes
401 Unauthorized: Missing or invalid API key.403 Forbidden: API key is recognized but lacks permission for the resource.