BizCARE MyInvois
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-here

How to Get Your API Key

  1. Log in to the E-Invoice dashboard
  2. Navigate to SettingsAPI Keys
  3. Generate a new API key
  4. 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 CodeResponseDescription
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)