API Reference
Authentication
How to authenticate with the E-Invoice API
Authentication
All API endpoints require authentication via an API key passed in the X-API-Key request header.
API Key Header
Include your API key in every request:
X-API-Key: your-api-key-hereHow to Get Your API Key
- Log in to the E-Invoice dashboard
- Navigate to Settings → API Keys
- Generate a new API key
- Copy and store it securely — it will only be shown once
Example Request
curl -X GET https://api.bizcare-einvoice.com/api/invoices \
-H "X-API-Key: your-api-key-here"Authentication Errors
| Status Code | Response | Description |
|---|---|---|
401 | { "message": "API key is required" } | No API key provided |
401 | { "message": "Invalid API key" } | The API key is incorrect or expired |
Security Best Practices
- Never expose your API key in client-side code or public repositories
- Use environment variables to store your API key
- Rotate your API key periodically
- Use a separate API key for each environment (development, staging, production)