> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Fleet API documentation

> Enroll, dispatch and settle devices from every OEM through one integration.

These docs are for energy suppliers and VPP operators. OEMs use the [Energy API](/docs/energy-api/guides.md).

The Fleet API reaches the devices of every OEM connected to Flatpeak through one integration. Each OEM sets the commercial terms for access to its own fleet.

```mermaid actions={false} theme={"system"}
flowchart LR
    YOU["Your platform"]
    subgraph FP["Flatpeak"]
        direction LR
        F["Fleet API"] --- E["Energy API"]
    end
    OA["OEM A"]
    OB["OEM B"]
    OC["OEM C"]
    YOU --- F
    E --- OA
    E --- OB
    E --- OC
```

## Who does what

| You | Flatpeak |
| :- | :- |
| Publish a program | Offers it to eligible devices and runs enrollment and consent |
| Connect a customer's device in your app | Holds the OEM integration: state, meter records, settings |
| Send a VPP event to a group, or a plan to a device on a managed tariff | Splits the target across devices and bounds each instruction to the device's limits, the customer's settings and the OEM's guardrails |
| Pay customers their rewards | Measures delivery from meter records and keeps the rewards ledger |

## Two parts

An integration has two parts, and both are required: your app opens [Connect](/docs/fleet-api/guides/connect.md), where the customer signs in with their OEM, grants consent and enrolls, and your backend calls the [Fleet API](/docs/fleet-api/reference.md).

## Next steps

> [card] [Key concepts](/docs/fleet-api/guides/key-concepts.md)
>
> Devices, programs, enrollments, VPP events and plans.

> [card] [Quickstart](/docs/fleet-api/guides/quickstart.md)
>
> Enroll a device, read its state and commit it to a VPP event.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.