---
title: "Register Agent"
method: POST
path: "/agents/register"
tags: ["Agents"]
---

# Register Agent

`POST /agents/register`

Register a new agent or update an existing one.

## Request body

- RegisterAgentRequest
  - `name` string, required — The unique name of the agent.
  - `description` string, required — The description of the agent.
  - `acp_url` string, required — The URL of the ACP server for the agent.
  - `agent_id` string, nullable — Optional agent ID if the agent already exists and needs to be updated.
  - `acp_type` 'sync' | 'async' | 'agentic', required
  - `principal_context` unknown
  - `registration_metadata` object, nullable — The metadata for the agent's registration.
  - `agent_input_type` 'text' | 'json'

## Response `200`

Successful Response

- RegisterAgentResponse — Response model for registering an agent.
  - `id` string, required — The unique identifier of the agent.
  - `name` string, required — The unique name of the agent.
  - `description` string, required — The description of the action.
  - `status` 'Ready' | 'Failed' | 'Unknown' | 'Deleted' | 'Unhealthy' | 'BuildOnly'
  - `acp_type` 'sync' | 'async' | 'agentic', required
  - `status_reason` string, nullable — The reason for the status of the action.
  - `created_at` string, date-time, required — The timestamp when the agent was created
  - `updated_at` string, date-time, required — The timestamp when the agent was last updated
  - `registration_metadata` object, nullable — The metadata for the agent's registration.
  - `registered_at` string, date-time, nullable — The timestamp when the agent was last registered
  - `agent_input_type` 'text' | 'json'
  - `production_deployment_id` string, nullable — ID of the current production deployment.
  - `agent_api_key` string, nullable — The API key for the agent, if applicable.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/scaleapi/apis/agentex-api.md) · [All operations](https://skmtc.net/scaleapi/apis/agentex-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scaleapi/agentex-api/versions/8f725ddc153e/schema)
