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

  1. Navigate to your Platform Dashboard
  2. Select your platform
  3. Choose either Sandbox or Live environment
  4. 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.