---
title: "Add an agent to a fleet"
method: POST
path: "/api/fleet/add-agent"
tags: ["fleet"]
---

# Add an agent to a fleet

`POST /api/fleet/add-agent`

## Request

- Base URL: `https://x711.io`
- URL: `https://x711.io/api/fleet/add-agent`
- Auth: API key in header `X-API-Key`

## Request body

- object
  - `fleet_id` string, required
  - `agent_id` string, required

## Response `200`

Agent added to fleet

---

[API](https://skmtc.dev/x711/apis/x711-universal-agent-gas-station-api.md) · [All operations](https://skmtc.dev/x711/apis/x711-universal-agent-gas-station-api/llms.txt) · [OpenAPI document](https://skmtc.dev/x711/apis/x711-universal-agent-gas-station-api/revisions/8ed6c60350a6?raw)
