---
updatedAt: 2026-10-25T15:46:36.000Z
agentTools:
  projectIndex: https://docs.superwise.ai/llms.txt
---

# Activate Agent

Activates an agent and returns the updated agent.

## When to use it

Use it to activate an agent that was deactivated with [Deactivate an agent](https://docs.superwise.ai/reference/deactivate_agent).

## Required parameters

* `agent_id` (path): the ID of the agent.

## Response

A successful call returns `200 OK` with the updated `Agent` object, including its `status` and `url`.

**Related:** [Deactivate an agent](https://docs.superwise.ai/reference/deactivate_agent), [Get an agent](https://docs.superwise.ai/reference/get_agent_by_id), [Run a bulk action on agents](https://docs.superwise.ai/reference/agent_bulk_action)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/v1/agents/{agent_id}/activate": {
      "post": {
        "tags": [
          "Agents"
        ],
        "summary": "Activate Agent",
        "operationId": "activate_agent",
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid4",
              "title": "Agent Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Agent"
                }
              }
            }
          },
          "404": {
            "description": "Not Found"
          },
          "422": {
            "description": "Unprocessable Entity"
          },
          "500": {
            "description": "Internal Server Error"
          }
        }
      }
    }
  },
  "info": {
    "title": "Superwise Main Entities",
    "description": "API reference",
    "version": "0.1.0"
  },
  "components": {
    "schemas": {
      "Agent": {
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid4",
            "title": "Id"
          },
          "created_by": {
            "type": "string",
            "title": "Created By"
          },
          "created_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Created At"
          },
          "updated_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated At"
          },
          "last_interaction_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Last Interaction At"
          },
          "name": {
            "type": "string",
            "maxLength": 95,
            "minLength": 1,
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "dataset_id": {
            "type": "string",
            "title": "Dataset Id"
          },
          "observability_enabled": {
            "type": "boolean",
            "title": "Observability Enabled",
            "default": true
          },
          "guardrails_violation_message": {
            "type": "string",
            "title": "Guardrails Violation Message"
          },
          "url": {
            "type": "string",
            "maxLength": 2083,
            "minLength": 1,
            "format": "uri",
            "title": "Url"
          },
          "status": {
            "$ref": "#/components/schemas/AgentStatus",
            "default": "unknown"
          },
          "api_token": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid4"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Token"
          },
          "tags": {
            "items": {
              "type": "string",
              "format": "uuid4"
            },
            "type": "array",
            "title": "Tags"
          },
          "updated_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updated By"
          },
          "archived_at": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time"
              },
              {
                "type": "null"
              }
            ],
            "title": "Archived At"
          }
        },
        "type": "object",
        "required": [
          "id",
          "created_by",
          "name",
          "dataset_id",
          "guardrails_violation_message",
          "url",
          "api_token"
        ],
        "title": "Agent"
      },
      "AgentStatus": {
        "type": "string",
        "enum": [
          "healthy",
          "unhealthy",
          "unknown",
          "degraded",
          "updating"
        ],
        "title": "AgentStatus"
      }
    },
    "securitySchemes": {
      "implicit": {
        "type": "oauth2",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://authentication.superwise.ai/identity/resources/auth/v1/api-token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "implicit": []
    }
  ],
  "servers": [
    {
      "url": "api.superwise.ai",
      "description": "Superwise Api Gateway"
    }
  ]
}
```