API Reference
LiveComplete reference for the ABAXUS API. Build powerful usage-based billing systems with our RESTful API endpoints.
https://api.abaxus.com/v2JSONAuthentication
ABAXUS API uses API keys for authentication. Include your API key in the Authorization header using Bearer authentication.
Request Header
Authorization: Bearer YOUR_API_KEY Content-Type: application/json
cURL Example
curl -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ https://api.abaxus.com/v2/events
API Key Security
Keep your API keys secure and never expose them in client-side code. Rotate keys regularly for enhanced security.
Send Usage Events
POST /events
Record usage events for real-time metering and billing calculations.
Request Body
{
"customer_id": "cust_1234567890",
"event_type": "api_call",
"timestamp": "2025-01-15T10:30:00Z",
"properties": {
"endpoint": "/v1/data/export",
"response_size": 1024,
"region": "us-west-2"
},
"value": 1
}customer_id
requiredUnique identifier for the customer
event_type
requiredType of usage event being recorded
timestamp
optionalISO 8601 timestamp (defaults to current time)
Response
{
"event_id": "evt_987654321",
"status": "accepted",
"processed_at": "2025-01-15T10:30:01Z",
"customer_id": "cust_1234567890"
}Event successfully recorded and queued for processing
Rate Limits
ABAXUS API implements rate limiting to ensure fair usage and system stability. Rate limits are applied per API key.
Rate Limit Headers
X-RateLimit-Limit: 10000 X-RateLimit-Remaining: 9847 X-RateLimit-Reset: 1642249200
SDKs & Libraries
Status Codes & Errors
Success Codes
Error Codes
Need Help?
Our developer support team is here to help you integrate ABAXUS API successfully. Get expert assistance and best practices guidance.