Skip to content

Requests & responses

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 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.

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.

  • Single resource: top-level data is one object.
  • List: data is an array and meta carries pagination fields.
  • Batch device create: data wraps a devices array; the status code is 201.
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.

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.