# Fleet API reference

> The endpoints your fleet calls on REMI.

Register your robots with REMI, report their state and events, and declare what they can do.

- Base URL: `https://api.remi.robot.com/api/v3`
- Auth: An API key with the `fleet` scope, sent as `Authorization: Bearer <key>`. Ask your Robot.com representative for one.
- OpenAPI document: https://docs.remi.robot.com/openapi/fleet.json

## Fleet

How your fleet is wired into REMI.

### Get fleet configuration

`GET /fleet` (scope `fleet`)

How your fleet is wired into REMI. Read it to confirm what REMI believes before you debug anything else.

Response 200: The configuration.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `FleetConfig` | yes |  |

Errors:

| Status | Code | When |
| --- | --- | --- |
| 400 | `PARTNER_NOT_FOUND` | Your namespace has no partner record yet. |
| 401 |  | Missing or invalid API key. |
| 403 |  | The API key does not have the `fleet` scope. |
| 404 | `FLEET_NOT_CONFIGURED` | No fleet configuration for your namespace yet. Create it with `PATCH /fleet`. |

Example response:

```json
{
  "data": {
    "namespace": "partner_acme",
    "bot_id_prefix": "ACME-",
    "requires_fleet_serial": false,
    "transport": "http",
    "base_url": "https://fleet.example.com/v1",
    "token_set": true,
    "poll_interval_active_ms": 2000,
    "poll_interval_idle_ms": 15000,
    "max_bots": 200,
    "contract_version": "2026-09",
    "capabilities": {
      "supports_command_interrupt": true,
      "default": {
        "has_door": true,
        "supported_commands": [
          "navigate_to",
          "cancel_navigation",
          "set_door"
        ]
      },
      "overrides": {
        "ACME-4T002": {
          "has_door": false,
          "supported_commands": [
            "navigate_to",
            "cancel_navigation"
          ]
        }
      }
    }
  }
}
```

### Configure the fleet

`PATCH /fleet` (scope `fleet`)

The first call creates the configuration; later calls change only the fields sent.

- `transport: "http"` needs a `base_url` and a token on file.
- Changing `base_url` needs a new `token` in the same call. A stored token is never carried to a new endpoint.
- Poll intervals, bot id prefix and namespace are set at onboarding and cannot be changed here.

Body:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `transport` | `'mqtt' \| 'http'` | no | How state and commands travel. `http`: REMI polls your `GET /bots` unless you push. `mqtt`: the MQTT topics. |
| `base_url` | `string` | no | Required for `http`. An absolute `https` URL. REMI appends the Partner API paths to it. |
| `token` | `string` | no | Required for `http`. A secret of your choosing, at least 32 characters, sent as `Authorization: Bearer <token>` on every call to you. Never returned. |

Response 200: The configuration after the change.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `FleetConfig` | yes |  |

Errors:

| Status | Code | When |
| --- | --- | --- |
| 400 | `VALIDATION_ERROR` | Empty body, unknown field, or a value of the wrong type. |
| 400 | `INVALID_BASE_URL` | `base_url` is not an absolute `https` URL. |
| 400 | `TOKEN_TOO_SHORT` | `token` has fewer than 32 characters. |
| 400 | `TOKEN_REQUIRED_WITH_BASE_URL` | `base_url` changes and no new `token` was sent. |
| 400 | `INCOMPLETE_HTTP_CONFIG` | `transport` is `http` and there is no `base_url` or no token on file. |
| 400 | `PARTNER_NOT_FOUND` | Your namespace has no partner record yet. |
| 401 |  | Missing or invalid API key. |
| 403 |  | The API key does not have the `fleet` scope. |
| 409 | `NAMESPACE_NOT_MQTT_SAFE` | Your namespace is not `[a-z0-9_]+`. Ask Robot.com to change it first. |

Example request:

```json
{
  "transport": "http",
  "base_url": "https://fleet.example.com/v1",
  "token": "k3VnQ8xLw2ZpR7tYb5MdC9sHf1GjA4uE"
}
```

Example response:

```json
{
  "data": {
    "namespace": "partner_acme",
    "bot_id_prefix": "ACME-",
    "requires_fleet_serial": false,
    "transport": "http",
    "base_url": "https://fleet.example.com/v1",
    "token_set": true,
    "poll_interval_active_ms": 2000,
    "poll_interval_idle_ms": 15000,
    "max_bots": 200,
    "contract_version": "2026-09",
    "capabilities": {
      "supports_command_interrupt": true,
      "default": {
        "has_door": true,
        "supported_commands": [
          "navigate_to",
          "cancel_navigation",
          "set_door"
        ]
      },
      "overrides": {
        "ACME-4T002": {
          "has_door": false,
          "supported_commands": [
            "navigate_to",
            "cancel_navigation"
          ]
        }
      }
    }
  }
}
```

## Capabilities

What your robots can do.

### Set fleet capabilities

`POST /fleet/capabilities` (scope `fleet`)

Replaces the whole document. The document is optional: without one, REMI sends `set_door` to every bot and treats `supports_command_interrupt` as false.

- It describes your hardware, not who is connected. Never send it from an empty or partial roster.
- A bot whose effective `has_door` is false gets no `set_door`, and its `manual_close_door` is turned on. REMI never turns it back off.

Body:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `supports_command_interrupt` | `boolean` | yes | Whether a `navigate_to` sent during another navigation is accepted and replaces it. Fleet-wide. Without a document this is false. |
| `default` | `object` | yes | Applies to every bot unless overridden. |
| `default.has_door` | `boolean` | yes | Whether the bot has a remotely controllable cargo door. False: `set_door` is never sent. |
| `default.supported_commands` | `('navigate_to' \| 'cancel_navigation' \| 'set_door')[]` | yes | The command types this bot accepts. |
| `overrides` | `Record<string, { has_door?: boolean, supported_commands?: ('navigate_to' \| 'cancel_navigation' \| 'set_door')[] }>` | no | Keyed by bot id and merged over `default`, field by field. Default `{}`. |

Response 200: The stored document.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `FleetCapabilities` | yes |  |

Errors:

| Status | Code | When |
| --- | --- | --- |
| 400 | `VALIDATION_ERROR` | A required field is missing, or a command type is unknown. |
| 400 | `CAPABILITIES_MISSING_REQUIRED_COMMANDS` | `default.supported_commands` lacks `navigate_to` or `cancel_navigation`. Nothing is stored. |
| 400 | `PARTNER_NOT_FOUND` | Your namespace has no partner record yet. |
| 401 |  | Missing or invalid API key. |
| 403 |  | The API key does not have the `fleet` scope. |
| 404 | `FLEET_NOT_CONFIGURED` | No fleet configuration for your namespace yet. Create it with `PATCH /fleet`. |

Example request:

```json
{
  "supports_command_interrupt": true,
  "default": {
    "has_door": true,
    "supported_commands": [
      "navigate_to",
      "cancel_navigation",
      "set_door"
    ]
  },
  "overrides": {
    "ACME-4T002": {
      "has_door": false,
      "supported_commands": [
        "navigate_to",
        "cancel_navigation"
      ]
    }
  }
}
```

Example response:

```json
{
  "data": {
    "supports_command_interrupt": true,
    "default": {
      "has_door": true,
      "supported_commands": [
        "navigate_to",
        "cancel_navigation",
        "set_door"
      ]
    },
    "overrides": {
      "ACME-4T002": {
        "has_door": false,
        "supported_commands": [
          "navigate_to",
          "cancel_navigation"
        ]
      }
    }
  }
}
```

### Update fleet capabilities

`PATCH /fleet/capabilities` (scope `fleet`)

Merges into the stored document, which must exist: create it with `POST` first. `default` and `overrides` are replaced whole when sent, so to remove an override, send `overrides` without it.

Body:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `supports_command_interrupt` | `boolean` | no |  |
| `default` | `object` | no |  |
| `default.has_door` | `boolean` | yes | Whether the bot has a remotely controllable cargo door. False: `set_door` is never sent. |
| `default.supported_commands` | `('navigate_to' \| 'cancel_navigation' \| 'set_door')[]` | yes | The command types this bot accepts. |
| `overrides` | `Record<string, { has_door?: boolean, supported_commands?: ('navigate_to' \| 'cancel_navigation' \| 'set_door')[] }>` | no |  |

Response 200: The stored document after the merge.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `FleetCapabilities` | yes |  |

Errors:

| Status | Code | When |
| --- | --- | --- |
| 400 | `VALIDATION_ERROR` | Empty body, unknown field, or an invalid value. |
| 400 | `CAPABILITIES_MISSING_REQUIRED_COMMANDS` | `default.supported_commands` lacks `navigate_to` or `cancel_navigation`. Nothing is stored. |
| 400 | `PARTNER_NOT_FOUND` | Your namespace has no partner record yet. |
| 401 |  | Missing or invalid API key. |
| 403 |  | The API key does not have the `fleet` scope. |
| 404 | `FLEET_NOT_CONFIGURED` | No fleet configuration for your namespace yet. Create it with `PATCH /fleet`. |
| 404 | `CAPABILITIES_NOT_SET` | No document on file yet. |

Example request:

```json
{
  "supports_command_interrupt": false
}
```

Example response:

```json
{
  "data": {
    "supports_command_interrupt": false,
    "default": {
      "has_door": true,
      "supported_commands": [
        "navigate_to",
        "cancel_navigation",
        "set_door"
      ]
    },
    "overrides": {
      "ACME-4T002": {
        "has_door": false,
        "supported_commands": [
          "navigate_to",
          "cancel_navigation"
        ]
      }
    }
  }
}
```

## Bots

Register, update, retire and list your robots.

### List bots

`GET /fleet/bots` (scope `fleet`)

What REMI sees of your fleet, to find out why a bot is not assigned. Ordered by `bot_id`, retired bots included (always with `retired` in `blocked_by`).

Query parameters:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | `integer` | no | Page size, 1 to 200. 1 to 200. Default `100`. |
| `cursor` | `string` | no | `next_cursor` of the previous page. Only valid with the same `limit`. |

Response 200: A page of bots.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `FleetBotListItem[]` | yes |  |
| `next_cursor` | `string \| null` | yes | Pass it as `cursor` for the next page. Null on the last page. |

Errors:

| Status | Code | When |
| --- | --- | --- |
| 400 | `VALIDATION_ERROR` | `limit` is not an integer from 1 to 200. |
| 400 | `INVALID_CURSOR` | The cursor is malformed or was issued for a different `limit`. |
| 400 | `PARTNER_NOT_FOUND` | Your namespace has no partner record yet. |
| 401 |  | Missing or invalid API key. |
| 403 |  | The API key does not have the `fleet` scope. |
| 404 | `FLEET_NOT_CONFIGURED` | No fleet configuration for your namespace yet. Create it with `PATCH /fleet`. |

Example response:

```json
{
  "data": [
    {
      "bot_id": "ACME-4T001",
      "fleet_serial": "AC7F3K2",
      "location_id": "7Nk2QhVpXrLmT4wZaBcDe",
      "current_job_id": null,
      "assignable": true,
      "blocked_by": [],
      "state_age_ms": 1840
    },
    {
      "bot_id": "ACME-4T002",
      "fleet_serial": null,
      "location_id": "7Nk2QhVpXrLmT4wZaBcDe",
      "current_job_id": "ES-5867",
      "assignable": false,
      "blocked_by": [
        "battery_below_minimum"
      ],
      "state_age_ms": 2100
    }
  ],
  "next_cursor": null
}
```

### Register a bot

`POST /fleet/bots` (scope `fleet`)

Call once per bot, when it enters service. The bot has no location until Robot.com operations places it, and is not assigned before.

- An existing id is a conflict, not an overwrite: use `PATCH` to change a bot.
- Registering a retired bot of yours again reactivates it, keeping its stored `fleet_serial` unless you send one.

Body:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bot_id` | `string` | yes | Your bot id prefix followed by `[A-Za-z0-9_.-]+`, at most 64 characters in total. |
| `fleet_serial` | `string` | no | The id your own system uses for the robot, when it differs from `bot_id`. At most 128 characters. Up to 128 characters. |
| `manual_close_door` | `boolean` | no | True when the door must be closed by hand: REMI never sends `set_door` closed to this bot. Defaults to false. |
| `commercial_name` | `string` | no | Display name shown to operators. Defaults to `bot_id`. |
| `console_url` | `string` | no | The robot's page in your own operator console. Operators open it from the bot's Console. |
| `tags` | `string[]` | no | Operational tags, up to 32 of at most 64 characters. Unknown tags are created. Jobs with `options.bot_tags` only go to bots carrying every tag. On update, replaces the whole list. Up to 32 items. |

Response 201: The registered bot.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `FleetBot` | yes |  |

Errors:

| Status | Code | When |
| --- | --- | --- |
| 400 | `INVALID_BODY` | A required field is missing, or a field has the wrong type or length. |
| 400 | `BOT_ID_NOT_NAMESPACED` | `bot_id` does not start with your bot id prefix. |
| 400 | `BOT_ID_NOT_MQTT_SAFE` | `bot_id` is not the prefix followed by `[A-Za-z0-9_.-]+`, or is longer than 64 characters. |
| 400 | `FLEET_SERIAL_REQUIRED` | Your fleet has `requires_fleet_serial: true` and the bot would have no `fleet_serial`. |
| 400 | `PARTNER_NOT_FOUND` | Your namespace has no partner record yet. |
| 401 |  | Missing or invalid API key. |
| 403 |  | The API key does not have the `fleet` scope. |
| 404 | `FLEET_NOT_CONFIGURED` | No fleet configuration for your namespace yet. Create it with `PATCH /fleet`. |
| 409 | `BOT_ID_TAKEN` | The id exists and is not a retired bot of yours. |
| 409 | `FLEET_SERIAL_TAKEN` | Another bot of yours in service already addresses that robot. Retire the other one first. |

Example request:

```json
{
  "bot_id": "ACME-4T001",
  "fleet_serial": "AC7F3K2",
  "manual_close_door": true,
  "commercial_name": "Acme 4T001",
  "console_url": "https://console.example.com/robots/4T001",
  "tags": [
    "acme-fleet",
    "lockable-door"
  ]
}
```

Example response:

```json
{
  "data": {
    "bot_id": "ACME-4T001",
    "namespace": "partner_acme",
    "location_id": null,
    "fleet_serial": "AC7F3K2",
    "manual_close_door": true,
    "commercial_name": "Acme 4T001",
    "console_url": "https://console.example.com/robots/4T001",
    "tags": [
      "acme-fleet",
      "lockable-door"
    ],
    "retired_at": null
  }
}
```

### Update a bot

`PATCH /fleet/bots/{bot_id}` (scope `fleet`)

Changes only the fields sent. `bot_id`, `namespace` and `location_id` cannot be changed.

- `tags` replaces the whole list.
- Changing `fleet_serial` is refused while the bot holds a job, and takes the bot off duty until an operator puts it back.

Path parameters:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bot_id` | `string` | yes | The bot id you registered. |

Body:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `fleet_serial` | `string \| null` | no | `null` removes the mapping. Refused while the bot holds a job. Up to 128 characters. |
| `manual_close_door` | `boolean` | no | True when the door must be closed by hand. |
| `commercial_name` | `string` | no | Display name shown to operators. |
| `console_url` | `string \| null` | no | `null` removes it, and the bot's Console goes back to REMI's own. |
| `tags` | `string[]` | no | Operational tags, up to 32 of at most 64 characters. Unknown tags are created. Jobs with `options.bot_tags` only go to bots carrying every tag. On update, replaces the whole list. Up to 32 items. |

Response 200: The bot after the change.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `FleetBot` | yes |  |

Errors:

| Status | Code | When |
| --- | --- | --- |
| 400 | `IMMUTABLE_FIELD` | The body contains `bot_id`, `namespace` or `location_id`. |
| 400 | `INVALID_BODY` | A field has the wrong type or length, or is unknown. |
| 400 | `FLEET_SERIAL_REQUIRED` | Your fleet has `requires_fleet_serial: true` and the bot would have no `fleet_serial`. |
| 400 | `PARTNER_NOT_FOUND` | Your namespace has no partner record yet. |
| 401 |  | Missing or invalid API key. |
| 403 |  | The API key does not have the `fleet` scope. |
| 404 | `FLEET_NOT_CONFIGURED` | No fleet configuration for your namespace yet. Create it with `PATCH /fleet`. |
| 404 | `BOT_NOT_FOUND` | Unknown bot, or one that belongs to another partner. |
| 409 | `BOT_HOLDS_JOB` | `fleet_serial` changes while the bot holds a job. |
| 409 | `FLEET_SERIAL_TAKEN` | Another bot of yours in service already addresses that robot. Retire the other one first. |

Example request:

```json
{
  "manual_close_door": false
}
```

Example response:

```json
{
  "data": {
    "bot_id": "ACME-4T001",
    "namespace": "partner_acme",
    "location_id": "7Nk2QhVpXrLmT4wZaBcDe",
    "fleet_serial": "AC7F3K2",
    "manual_close_door": false,
    "commercial_name": "Acme 4T001",
    "console_url": "https://console.example.com/robots/4T001",
    "tags": [
      "acme-fleet",
      "lockable-door"
    ],
    "retired_at": null
  }
}
```

### Retire a bot

`DELETE /fleet/bots/{bot_id}` (scope `fleet`)

Takes the bot out of service: it is no longer assigned, and its state and events are refused. History is kept, and registering the same id again reactivates it. Retiring twice is safe.

Path parameters:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bot_id` | `string` | yes | The bot id you registered. |

Response 200: The retired bot.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `object` | yes |  |
| `data.bot_id` | `string` | yes |  |
| `data.retired_at` | `string (date-time) \| null` | yes | When the bot was retired. |

Errors:

| Status | Code | When |
| --- | --- | --- |
| 400 | `PARTNER_NOT_FOUND` | Your namespace has no partner record yet. |
| 401 |  | Missing or invalid API key. |
| 403 |  | The API key does not have the `fleet` scope. |
| 404 | `FLEET_NOT_CONFIGURED` | No fleet configuration for your namespace yet. Create it with `PATCH /fleet`. |
| 404 | `BOT_NOT_FOUND` | Unknown bot, or one that belongs to another partner. |
| 409 | `BOT_HOLDS_JOB` | The bot is running a job. |

Example response:

```json
{
  "data": {
    "bot_id": "ACME-4T002",
    "retired_at": "2026-06-17T15:52:00.000Z"
  }
}
```

## State and events

Push robot state and events instead of being polled or using MQTT.

### Push bot state

`POST /fleet/state` (scope `fleet`)

The push alternative to being polled. While pushes keep arriving, REMI does not poll your `GET /bots`; it polls again after 60 seconds without one.

- Up to 200 states per request. One invalid state, or one bot that is unknown or retired, rejects the whole request.
- A state not newer than the last accepted for its bot is discarded and counted in `rejected`.

Body:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bots` | `BotState[]` | yes | Complete bot states, at most 200 per request. Up to 200 items. |

Response 202: Counts of accepted and discarded states.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `object` | yes |  |
| `data.accepted` | `number` | yes | States forwarded to REMI. |
| `data.rejected` | `number` | yes | States discarded because a newer one was already accepted for that bot. |

Errors:

| Status | Code | When |
| --- | --- | --- |
| 400 | `INVALID_STATE` | `bots` is not an array, or a state is missing a required field. |
| 400 | `PARTNER_NOT_FOUND` | Your namespace has no partner record yet. |
| 401 |  | Missing or invalid API key. |
| 403 |  | The API key does not have the `fleet` scope. |
| 404 | `FLEET_NOT_CONFIGURED` | No fleet configuration for your namespace yet. Create it with `PATCH /fleet`. |
| 404 | `BOT_NOT_FOUND` | A `bot_id` is not a registered bot of yours, or is retired. |
| 413 | `PAYLOAD_TOO_LARGE` | More than 200 states. |

Example request:

```json
{
  "bots": [
    {
      "bot_id": "ACME-4T001",
      "seq": 88215,
      "timestamp": "2026-06-17T15:48:08.000Z",
      "available": true,
      "connected": true,
      "position": {
        "lat": 4.6498,
        "lng": -74.0712,
        "azimuth": 90.3
      },
      "battery": {
        "percentage": 74
      },
      "motion": {
        "speed_mps": 1.4
      },
      "door": "closed",
      "current_command": {
        "id": "ES-5867/pickup",
        "state": "executing",
        "accepted_at": "2026-06-17T15:46:31.220Z",
        "updated_at": "2026-06-17T15:47:10.000Z"
      }
    }
  ]
}
```

Example response:

```json
{
  "data": {
    "accepted": 1,
    "rejected": 0
  }
}
```

### Report a bot event

`POST /fleet/events` (scope `fleet`)

Events are optional and safe to resend. `arrived` lets REMI react the moment a bot stops instead of on the next poll; the job still advances from `current_command` in the state. `blocked` opens an operator task that stays open until `unblocked`.

Body:

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bot_id` | `string` | yes |  |
| `type` | `'arrived' \| 'blocked' \| 'unblocked'` | yes | `arrived`: a navigation finished. `blocked` and `unblocked` open and close an operator task. |
| `command_id` | `string` | no | Required for `arrived`: the id of the navigation command that just completed. |
| `occurred_at` | `string (date-time)` | yes | When it happened on your side, not when you sent it. |
| `detail` | `Record<string, unknown>` | no | For `blocked`: `{ "reason": string, "message": string }`. |

Response 202: The event was accepted.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `object` | yes |  |
| `data.accepted` | `true` | yes |  |

Errors:

| Status | Code | When |
| --- | --- | --- |
| 400 | `INVALID_EVENT` | Unknown `type`, or `arrived` without `command_id`. |
| 400 | `PARTNER_NOT_FOUND` | Your namespace has no partner record yet. |
| 401 |  | Missing or invalid API key. |
| 403 |  | The API key does not have the `fleet` scope. |
| 404 | `FLEET_NOT_CONFIGURED` | No fleet configuration for your namespace yet. Create it with `PATCH /fleet`. |
| 404 | `BOT_NOT_FOUND` | `bot_id` is not a registered bot of yours, or is retired. |

Example request:

```json
{
  "bot_id": "ACME-4T001",
  "type": "arrived",
  "command_id": "ES-5867/pickup",
  "occurred_at": "2026-06-17T15:51:07.000Z"
}
```

Example response:

```json
{
  "data": {
    "accepted": true
  }
}
```

## Types

### Problem

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `type` | `string` | yes | Always `about:blank`. |
| `title` | `string` | yes | The HTTP status text. |
| `status` | `integer` | yes | -9007199254740991 to 9007199254740991. |
| `detail` | `string` | yes | Human-readable. Do not parse it: branch on `code`. |
| `instance` | `string` | yes | The request path. |
| `code` | `string` | no | Stable machine-readable error code, when the error has one. |
| `params` | `Record<string, unknown>` | no | Values that explain the error, keyed by name. |

### FleetConfig

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `namespace` | `string` | yes | Your partner namespace. Permanent. It is the segment in every MQTT topic and client id. |
| `bot_id_prefix` | `string` | yes | Every bot id must start with it. Defaults to your namespace in uppercase plus a hyphen. |
| `requires_fleet_serial` | `boolean` | yes | Whether every bot you register needs `fleet_serial`. Set by Robot.com, read-only. |
| `transport` | `'mqtt' \| 'http'` | yes |  |
| `base_url` | `string \| null` | yes | Where REMI calls you in `http` mode. Null when none is set. |
| `token_set` | `boolean` | yes | Whether a bearer token for calling you is on file. The token is never returned. |
| `poll_interval_active_ms` | `number` | yes | How often REMI polls `GET /bots` while any of your bots holds a job. Set at onboarding. |
| `poll_interval_idle_ms` | `number` | yes | How often REMI polls `GET /bots` while your fleet is idle. Set at onboarding. |
| `max_bots` | `number` | yes | The fleet size agreed at onboarding. At most 200. |
| `contract_version` | `string` | yes | The contract version your fleet was onboarded against. |
| `capabilities` | `FleetCapabilities \| null` | yes | Null until you set a document. |

### FleetCapabilities

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `supports_command_interrupt` | `boolean` | yes | Whether a `navigate_to` sent during another navigation is accepted and replaces it. Fleet-wide. Without a document this is false. |
| `default` | `object` | yes | Applies to every bot unless overridden. |
| `default.has_door` | `boolean` | yes | Whether the bot has a remotely controllable cargo door. False: `set_door` is never sent. |
| `default.supported_commands` | `('navigate_to' \| 'cancel_navigation' \| 'set_door')[]` | yes | The command types this bot accepts. |
| `overrides` | `Record<string, { has_door?: boolean, supported_commands?: ('navigate_to' \| 'cancel_navigation' \| 'set_door')[] }>` | yes | Keyed by bot id and merged over `default`, field by field. |

### FleetBot

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bot_id` | `string` | yes |  |
| `namespace` | `string` | yes |  |
| `location_id` | `string \| null` | yes | The location the bot serves, set by Robot.com operations. Null until placed: a bot with no location is never assigned. |
| `fleet_serial` | `string \| null` | yes | Null means the robot is `bot_id` minus your prefix. |
| `manual_close_door` | `boolean` | yes |  |
| `commercial_name` | `string` | yes |  |
| `console_url` | `string \| null` | yes |  |
| `tags` | `string[]` | yes |  |
| `retired_at` | `string (date-time) \| null` | yes | When the bot was retired. Null while in service. |

### FleetBotListItem

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bot_id` | `string` | yes |  |
| `fleet_serial` | `string \| null` | yes |  |
| `location_id` | `string \| null` | yes | Null until Robot.com operations places the bot. |
| `current_job_id` | `string \| null` | yes | The job the bot holds, or null. |
| `assignable` | `boolean` | yes | True when `blocked_by` is empty. |
| `blocked_by` | `string[]` | yes | Every reason the bot is not assigned, in this order: `disconnected`, `unavailable`, `battery_below_minimum`, `no_position`, `no_location`, `state_stale`, `retired`. |
| `state_age_ms` | `number \| null` | yes | Age of the latest state REMI holds. Null if none was received. Above 60000 the bot counts as stale. |

### SetCapabilitiesRequest

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `supports_command_interrupt` | `boolean` | yes | Whether a `navigate_to` sent during another navigation is accepted and replaces it. Fleet-wide. Without a document this is false. |
| `default` | `object` | yes | Applies to every bot unless overridden. |
| `default.has_door` | `boolean` | yes | Whether the bot has a remotely controllable cargo door. False: `set_door` is never sent. |
| `default.supported_commands` | `('navigate_to' \| 'cancel_navigation' \| 'set_door')[]` | yes | The command types this bot accepts. |
| `overrides` | `Record<string, { has_door?: boolean, supported_commands?: ('navigate_to' \| 'cancel_navigation' \| 'set_door')[] }>` | no | Keyed by bot id and merged over `default`, field by field. Default `{}`. |

### PatchCapabilitiesRequest

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `supports_command_interrupt` | `boolean` | no |  |
| `default` | `object` | no |  |
| `default.has_door` | `boolean` | yes | Whether the bot has a remotely controllable cargo door. False: `set_door` is never sent. |
| `default.supported_commands` | `('navigate_to' \| 'cancel_navigation' \| 'set_door')[]` | yes | The command types this bot accepts. |
| `overrides` | `Record<string, { has_door?: boolean, supported_commands?: ('navigate_to' \| 'cancel_navigation' \| 'set_door')[] }>` | no |  |

### BotState

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bot_id` | `string` | yes |  |
| `seq` | `integer` | no | Increasing per bot. A state is kept only if its `timestamp` is later than the last accepted one, or equal with a higher `seq`. Without it, states are not ordered. 0 to 9007199254740991. |
| `timestamp` | `string (date-time)` | yes | When the state was measured on your side, not when it was sent. |
| `available` | `boolean` | yes | Whether the bot can take new work right now, by your own verdict. Do not fold in connectivity, staleness or out of service. |
| `out_of_service` | `boolean` | no | True when you took the bot out of service. Operators are alerted while it holds a job, and new `navigate_to` commands are held back. Absent means false. |
| `connected` | `boolean` | yes | Whether you have a live link to the bot. In MQTT mode the broker connection decides instead. |
| `position` | `object` | yes |  |
| `position.lat` | `number` | yes | Latitude in decimal degrees, WGS 84. -90 to 90. |
| `position.lng` | `number` | yes | Longitude in decimal degrees, WGS 84. -180 to 180. |
| `position.azimuth` | `number` | no | Compass bearing in degrees: 0 = North, clockwise, nominally [0, 360). |
| `battery` | `object` | yes |  |
| `battery.percentage` | `integer` | yes | State of charge, 0 to 100. Below 20 the bot gets no new jobs. 0 to 100. |
| `motion` | `object` | no |  |
| `motion.speed_mps` | `number` | yes | Ground speed in meters per second. |
| `door` | `enum` | yes | Cargo door state. Send `unknown` when you cannot read it and `unsupported` when the bot has no controllable door, never `closed`. One of `opened`, `closed`, `opening`, `closing`, `stalled`, `unknown`, `unsupported`. |
| `current_command` | `CommandStatus \| null` | yes | The latest command this bot accepted. REMI counts a command as delivered when its `id` appears here. Null if none yet. |

### CommandStatus

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | The command id REMI sent. |
| `state` | `'accepted' \| 'executing' \| 'succeeded' \| 'failed' \| 'rejected'` | yes | `accepted`: queued. `executing`: in progress. `succeeded`, `failed` and `rejected` are terminal. `failed`: accepted but cannot finish. `rejected`: you will not take it, with `error.code` and `rejected_at`. |
| `accepted_at` | `string (date-time)` | no | Required unless `state` is `rejected`. |
| `rejected_at` | `string (date-time)` | no | Required when `state` is `rejected`, absent otherwise. |
| `updated_at` | `string (date-time)` | no | When `state` last changed. |
| `error` | `object` | no | Set when `state` is `failed` or `rejected`. On a rejection, `code` is one of the four rejection codes. |
| `error.code` | `string` | yes |  |
| `error.message` | `string` | yes |  |
| `corrected_position` | `object` | no | Where the bot will really stop when you moved a `navigate_to` destination. Only while `accepted` or `executing`. |
| `corrected_position.lat` | `number` | yes | Latitude in decimal degrees, WGS 84. -90 to 90. |
| `corrected_position.lng` | `number` | yes | Longitude in decimal degrees, WGS 84. -180 to 180. |
| `correction_distance_m` | `number` | no | Meters between the requested destination and `corrected_position`, or, on a `DESTINATION_UNREACHABLE` rejection, your network. |

### BotEvent

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `bot_id` | `string` | yes |  |
| `type` | `'arrived' \| 'blocked' \| 'unblocked'` | yes | `arrived`: a navigation finished. `blocked` and `unblocked` open and close an operator task. |
| `command_id` | `string` | no | Required for `arrived`: the id of the navigation command that just completed. |
| `occurred_at` | `string (date-time)` | yes | When it happened on your side, not when you sent it. |
| `detail` | `Record<string, unknown>` | no | For `blocked`: `{ "reason": string, "message": string }`. |
