---
title: "Control a gateway"
method: POST
path: "/api/gateways/control"
tags: ["Agents"]
---

# Control a gateway

`POST /api/gateways/control`

## Request body

- object
  - `gateway` 'hermes' | 'openclaw', required
  - `action` 'start' | 'stop' | 'restart' | 'diagnose', required

## Response `200`

Gateway control result

- object
  - `success` boolean
  - `output` string
  - `status` object
    - `type` string
    - `name` string
    - `installed` boolean
    - `running` boolean
    - `port` integer
    - `pid` integer, nullable
    - `version` string, nullable
    - `error` string

## Other responses

- `400` — Invalid request
- `401` — Authentication required
- `403` — Insufficient permissions
- `500` — unresolved $ref

---

[API](https://skmtc.net/builderz-labs/apis/mission-control-api.md) · [All operations](https://skmtc.net/builderz-labs/apis/mission-control-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/builderz-labs/mission-control-api/revisions/b920835b2793/schema)
