API Reference
Authentication
Learn how to authenticate your API requests
Authentication
The BizCARE MyInvois API only supports API key authetication method to secure your API requests.
API Key Authentication
Include your API key in the request header.
Header:
X-API-Key: your-api-key-hereExample Request:
curl -X GET "https://api.myinvois.bizcare.my/api/orders" \
-H "X-API-Key: your-api-key-here" \
-H "Content-Type: application/json"Getting Your API Key
- Sign up for an account on our platform
- Create an organization and complete the onboarding process
- Navigate to Developers
- Generate a new API key and store it securely
Keep your API key secure! Never expose your API key in client-side code or public repositories.
Authentication Errors
401 Unauthorized
Returned when authentication credentials are missing or invalid.
{
"error": "Unauthorized"
}Common causes:
- Missing authentication header
- Invalid API key or token
403 Forbidden
Returned when you don't have permission to access the requested resource.
{
"error": "Access token is missing or invalid"
}Security Best Practices
- Use HTTPS: Always make requests over HTTPS
- Rotate Keys: Regularly rotate your API keys
- Scope Permissions: Use the minimum required permissions
- Monitor Usage: Track API usage and watch for unusual activity
- Store Securely: Use environment variables or secure key management systems
Testing Authentication
You can test your authentication setup with a simple request:
curl -X GET "https://api.myinvois.bizcare.my/api/companies" \
-H "X-API-Key: your-api-key-here" \
-H "Content-Type: application/json"A successful response indicates your authentication is working correctly.