Getting Started
To begin using our API:- Obtain your API token by contacting our support team: [email protected]
- Choose the appropriate API version for your integration
- Make requests following the format described in this documentation
- Handle responses and errors accordingly
- For detailed endpoint documentation and examples, please refer to the specific API sections that follow.
Authentication
All API requests require authentication using an Authorization token.API Versioning
We use route-based versioning to ensure a stable development experience. Each endpoint includes a version prefix in the URL path. Examples:v1/customers
- Version 1 of the customers endpoint/v2/customers
- Version 2 of the customers endpoint
Request and Response Format
Our API follows REST principles and uses JSON for both requests and responses.Request Format
- Content-Type:
application/json
- HTTP methods correspond to operations:
GET
: Retrieve resourcesPOST
: Create resourcesPUT
: Update resourcesDELETE
: Remove resources
Response Format
All responses are returned in JSON format. Example successful response:Error Handling
When an error occurs, the API returns an appropriate HTTP status code along with a JSON response containing error details.Common Error Status Codes
400 Bad Request
: Invalid input or malformed request401 Unauthorized
: Authentication failure or invalid token429 Too Many Requests
: Rate limit exceeded404 Not Found
: Resource not found500 Internal Server Error
: Unexpected server error
Error Response Format
Rate Limiting
To ensure service stability, our API implements rate limiting. When you exceed the allowed number of requests, you’ll receive a429 Too Many Requests status code
.
The response headers include information about your current rate limit status:
X-RateLimit-Limit
: Maximum requests allowed in a time window
X-RateLimit-Remaining
: Remaining requests in the current window
X-RateLimit-Reset
: Time (in seconds) until the rate limit resets
OpenAPI/Swagger Support
We provide OpenAPI (formerly known as Swagger) specifications for our API. This offers several advantages:- Interactive Documentation: Explore and test our API endpoints directly through a browser interface
- Code Generation: Generate client libraries in your preferred programming language
- Request/Response Models: Understand the exact structure of requests and responses