---
title: "Enable Agent"
method: POST
path: "/api/agents/{key}/enable"
tags: ["agents"]
---

# Enable Agent

`POST /api/agents/{key}/enable`

## Request

- Base URL: `https://api.advisorppc.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.advisorppc.com/api/agents/{key}/enable`
- Auth: HTTP bearer

Enable a definition for the tenant. Idempotent: re-enabling returns the
existing instance rather than erroring.

## Path parameters

- `key` string, required

## Headers

- `X-Tenant-Id` integer, nullable

## Request body

- EnableIn: Body for /enable. Deliberately EMPTY, and kept as a type rather than deleted so an older client still POSTs successfully: a stale build sending ``{"model": …}`` is accepted and its model ignored, never 422'd.

## Response `200`

Successful Response

- AgentInstanceOut: This tenant's enabled instance of a definition (present only once the tenant has hit /enable).
  - `id` integer, required
  - `display_name` string, required
  - `status` string, required
  - `health` string
  - `last_health_detail` string, nullable
  - `accounts` object
  - `anomaly_hold` boolean
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/advisorppc/apis/advisorppc-api.md) · [All operations](https://skmtc.dev/advisorppc/apis/advisorppc-api/llms.txt) · [OpenAPI document](https://skmtc.dev/advisorppc/apis/advisorppc-api/revisions/3441bd729e0c?raw)
