# Report bot state

> Tell REMI where each bot is and what it is doing.

REMI knows your bots only through the state you report. A state is complete: every field, every time.

```json
{
  "bot_id": "ACME-4T001",
  "seq": 88214,
  "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": 0 },
  "door": "closed",
  "current_command": { "id": "ES-5867/pickup", "state": "succeeded", "accepted_at": "2026-06-17T15:46:31.220Z", "updated_at": "2026-06-17T15:48:05.400Z" }
}
```

All fields: [BotState](https://docs.remi.robot.com/fleets/partner-api#type-BotState).

## The fields that matter most

- `timestamp` is when you measured it, not when you sent it. With `seq`, it decides which state is newer: an older one is discarded.
- `available` is your verdict: can the bot take new work now? Do not fold connectivity into it.
- `door`: send `unknown` when you cannot read it and `unsupported` when there is no door. Never `closed` by default.
- `current_command` is the latest command the bot accepted. REMI counts a command as received when its `id` appears here, and follows it to `succeeded`, `failed` or `rejected`.
- Report `position` and `motion.speed_mps` all the time: REMI also sees arrival from the bot stopping at the destination.

## How REMI gets it

| Transport | How |
| --- | --- |
| HTTP, polled | REMI calls your [`GET /bots`](https://docs.remi.robot.com/fleets/partner-api#listPartnerBots) and expects every bot, within 5 seconds. |
| HTTP, pushed | You call [`POST /fleet/state`](https://docs.remi.robot.com/fleets/reference#pushBotState), up to 200 states at once. While pushes arrive, REMI does not poll. |
| MQTT | You publish on `fleet/{namespace}/bot/{bot_id}/state`, retained. See [MQTT mode](https://docs.remi.robot.com/fleets/mqtt). |

## Connected and disconnected

Over HTTP, a bot is disconnected after 3 failed or missing polls in a row, or when its state is 60 seconds old. It reconnects after 2 good polls in a row. Over MQTT, the bot's broker connection decides.

## Events

[`POST /fleet/events`](https://docs.remi.robot.com/fleets/reference#reportBotEvent) is optional: `arrived` lets REMI react the moment a bot stops, and `blocked` opens a task for an operator until you send `unblocked`.
