---
title: "Register Agent"
method: POST
path: "/api/v1/agents"
tags: ["agents"]
---

# Register Agent

`POST /api/v1/agents`

## Request

- Base URL: `https://memory.kagura-ai.com` (the document declares no server; this is the origin it was published from)
- URL: `https://memory.kagura-ai.com/api/v1/agents`
- Auth: none declared

Register an agent in the active workspace (owner/admin only).

## Headers

- `authorization` string, nullable

## Request body

- AgentCreate: Request model for registering an agent.
  - `name` string, required: Workspace-unique name
  - `description` string, nullable
  - `framework` string, nullable: Free-form: 'claude-code', 'langgraph', ...
  - `environment` string, nullable: Aligned with OTel deployment.environment.name
  - `version` string, nullable: Agent build/prompt version (client-reported)

## Response `201`

Successful Response

- AgentResponse: Response model for one registry row.
  - `id` unknown, required
  - `workspace_id` unknown, required
  - `name` unknown, required
  - `description` unknown
  - `owner_user_id` unknown, required
  - `framework` unknown
  - `environment` unknown
  - `version` unknown
  - `status` unknown, required
  - `enforcement_mode` unknown, required
  - `last_seen_at` unknown
  - `created_at` unknown, required
  - `updated_at` unknown, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud.md) · [All operations](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/kagura-ai/apis/kagura-memory-cloud/revisions/09f17f5ada29?raw)
