Base URLs
| Environment | Base URL |
|---|---|
| Production | https://api.erynoa.group/v1 |
| Sandbox | https://sandbox.api.erynoa.group/v1 |
Authentication
All requests require a valid API key passed as a Bearer token in theAuthorization header:
Request format
- Set
Content-Type: application/jsonfor allPOST,PUT, andPATCHrequests - Request bodies must be valid JSON
- String values are UTF-8 encoded
- Dates are ISO 8601 format (
2024-01-15T10:30:00Z)
Response format
All responses use a consistent JSON envelope: Successful single resource:Global request headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer YOUR_API_KEY |
Content-Type | Yes (POST/PUT/PATCH) | Always application/json |
Idempotency-Key | No | Unique key to safely retry POST requests |
Accept | No | Default application/json |
Global response headers
| Header | Description |
|---|---|
X-Request-ID | Unique identifier for the request. Include when contacting support. |
X-RateLimit-Limit | Maximum requests per minute for your key |
X-RateLimit-Remaining | Requests remaining in the current window |
X-RateLimit-Reset | Unix timestamp when the rate limit window resets |
HTTP status codes
| Status | Meaning |
|---|---|
200 OK | Request succeeded |
201 Created | Resource was created successfully |
204 No Content | Request succeeded (no body, used for DELETE) |
400 Bad Request | Request is malformed or has invalid parameters |
401 Unauthorized | API key is missing or invalid |
403 Forbidden | API key lacks permission for this operation |
404 Not Found | Resource does not exist |
409 Conflict | Request conflicts with existing state |
422 Unprocessable Entity | Validation error on request body |
429 Too Many Requests | Rate limit exceeded |
500 Internal Server Error | Unexpected server error |