Guide
Rate Limits & Best Practices
Guidelines for building reliable integrations with the AxosilDesk API.
Rate limits
Limits apply per key, per agent or per client IP as listed. A limited request answers 429 with the code RATE_LIMITED and, on most endpoints, a Retry-After header in seconds.
| What | Limit | Counted per |
|---|---|---|
| Workspace API key | 600 requests a minute | Key |
| Sign-in (web, mobile login, agent register) | 30 requests per 15 minutes | Client IP, plus a lockout after repeated failures for one account |
| Agent screenshot upload | 10 a minute, 240 an hour | Agent |
| Forgot password | 10 per 15 minutes; 3 an hour | Client IP; account |
Workspace sign-up (/tenants/provision) | 5 an hour | Client IP |
| Data exports | 5 an hour | Workspace |
| SSE streams | 5 open at once | User, per server |
| Stripe webhook | No limit | Verified by signature |
Responses and errors
Endpoints answer with a common envelope. List endpoints add meta or a pagination object with the page, limit and total.
SuccessJSON
{
"success": true,
"data": { … }
}ErrorJSON
{
"success": false,
"error": {
"code": "INVALID_INPUT",
"message": "Invalid activity batch",
"details": { … } // optional, e.g. field errors
}
}Branch on error.code, not on the message text. The sign-in endpoint /api/v1/auth/mobile/login is the exception: it answers { "error": "…", "code": "…" }.
| Status | Meaning | What to do |
|---|---|---|
| 200 / 201 | Success / Created | Request completed |
| 400 | Bad Request | Fix the body or query parameters (see error.details) |
| 401 | Unauthorized | Missing, expired or revoked credentials: sign in again or use a valid key |
| 403 | Forbidden | Role, module or plan does not allow it (e.g. API_KEY_READ_ONLY) |
| 404 | Not Found | The resource does not exist or is not visible to you |
| 409 | Conflict | Read error.code, e.g. WORKSPACE_CHOICE at sign-in |
| 413 | Payload Too Large | Send smaller batches |
| 429 | Rate Limited | Wait for Retry-After, then retry |
| 5xx | Server Error | Retry with exponential backoff |
Best practices
API integrations
- Least privilege — Use a read-only API key unless you need to write, and give each integration its own key so it can be revoked alone.
- Pagination — List endpoints take
?page=1&limit=50. Defaults and maximums vary by endpoint (commonly 20–50, at most 100–200); a largerlimitis capped, not rejected. - Filtering — Narrow results with query parameters. Many lists accept
fromandtodates and auserId. - Timeouts — Set request timeouts (for example 30 seconds); leave SSE connections without one.
Desktop agent
- Batch activities — Send activity in batches (up to 1,000 events) every
activitySyncIntervalSecondsrather than one request per event. - Retry with backoff — On 5xx errors or network failures retry with exponential backoff (1 s, 2 s, 4 s, up to 60 s). Sync retries are idempotent.
- Queue offline data — Store activity locally while offline and sync when the connection returns; events older than 14 days are skipped.
- Respect settings — Use the intervals returned by registration, not hard-coded values.
SSE connections
- Let EventSource reconnect — Streams end after an hour or after errors; the browser reconnects automatically.
- Limit connections — Share one stream per type across components; each user may hold 5 at once.
- Close on unmount — Always close
EventSourceconnections when components unmount.
Data formats
- Timestamps — ISO 8601 (
2026-01-15T09:00:00Z); date-only fields useYYYY-MM-DD. - IDs — Resource IDs are UUIDs.
- Money — Amounts are integers in cents, in fields ending in
Cents(e.g.1999= 19.99). - Durations — In seconds (fields ending in
Seconds).