# Fleet integrations

> Connect your own robots so REMI can dispatch deliveries to them.

Connect your robots and REMI dispatches deliveries to them. You keep running your robots; REMI decides where they go, sends the commands, and follows each bot through the state you report.

```steps
register: Register your bots
report: Report their state
command: REMI sends commands
confirm: You confirm in the state
deliver: The delivery moves on
```

## How it works

1. Robot.com sets up your fleet and gives you an API key with the `fleet` scope. See [Onboarding](https://docs.remi.robot.com/fleets/onboarding).
2. You [register each bot](https://docs.remi.robot.com/fleets/reference#registerBot) and [declare what it can do](https://docs.remi.robot.com/fleets/reference#setFleetCapabilities).
3. You report each bot's [state](https://docs.remi.robot.com/fleets/state): position, battery, door, and the command it is running.
4. REMI sends [commands](https://docs.remi.robot.com/fleets/commands): `navigate_to`, `cancel_navigation` and `set_door`. You confirm each one through the state.

## Pick a transport

Both carry the same messages. Choose one with `transport` in [`PATCH /fleet`](https://docs.remi.robot.com/fleets/reference#updateFleetConfig).

| | HTTP | MQTT |
| --- | --- | --- |
| State | REMI polls your `GET /bots`, or you push to `POST /fleet/state` | You publish on `fleet/{namespace}/bot/{bot_id}/state` |
| Commands | REMI calls your `POST /bots/{bot_id}/commands` | You subscribe to `fleet/{namespace}/bot/{bot_id}/command` |
| Connected | From the polls | From each bot's broker connection |

Details: [MQTT mode](https://docs.remi.robot.com/fleets/mqtt).

## Two APIs

- [Fleet API](https://docs.remi.robot.com/fleets/reference): what you call on REMI, to configure the fleet, register bots, and push state and events.
- [Partner API](https://docs.remi.robot.com/fleets/partner-api): what you serve in HTTP mode, and REMI calls.

Start from the [integration kit](https://docs.remi.robot.com/fleets/kit): a working adapter and simulator.
