Requests & responses
URL layout
Section titled “URL layout”All platform endpoints share the path prefix /platform/v1. Combine it with your host (for example https://api.fleet.co) to build full URLs.
Path IDs
Section titled “Path IDs”Path identifiers (order_id, user_id, device_id, address_id, …) are positive integers with no leading zeros (for example 42, not 042). Anything else returns a validation error.
Pagination
Section titled “Pagination”List operations accept limit (1 to 100) and offset. limit defaults to 50, except catalog product groups (20). The response meta object repeats total, limit, and offset.
Listing the products of one catalog product group is the exception: it returns every product at once, without meta.
Success payloads
Section titled “Success payloads”- Single resource: top-level
datais one object. - List:
datais an array andmetacarries pagination fields. - Batch device create:
datawraps adevicesarray; the status code is 201.
Errors
Section titled “Errors”| Status | Body | When |
|---|---|---|
| 400 | { "message": "...", "type": "validation_error", "error": "validation_error" } |
Path, query, or body does not match the schema. message lists every failure. |
| 4xx/5xx | { "error": "SOME_CODE" } |
Business rule, for example ORDER_NOT_FOUND or USER_EMAIL_CONFLICT. Each operation lists its codes in the API reference. |
| 401 | Plain text Unauthorized |
Missing, invalid, or revoked key. |
| 429 | Plain text | Rate limit exceeded. See rate limits. |
| 503 | { "message": "..." } |
Rate limiting temporarily unavailable; retry with backoff. |
Error codes are stable: branch on error, not on message.
JSON bodies
Section titled “JSON bodies”For POST and PATCH, send Content-Type: application/json. Unknown fields are ignored. In PATCH bodies, omit a field to leave it unchanged; send null to clear it where the schema allows.

