---
title: "Create a new Agent"
method: POST
path: "/v1/agents/create"
tags: ["Agent Management"]
---

# Create a new Agent

`POST /v1/agents/create`

Upload a YAML configuration file to create and deploy a new agent. Optionally provide an agent icon (required for AgentStore deployments).

## Response `201`

Successful Response

- CreateAgentResponse — Response after creating a new agent.
  - `request_metadata` ResponseMeta
    - `request_id` string, nullable — Unique request identifier for tracing and support.
  - `agent_id` string, required — Unique identifier of the created agent.
  - `message` string, required — Human-readable result message.

## Other responses

- `422` — Validation Error

## Changes

- **2026-02-11** `c9a09aaa6236` — 1 breaking, 2 info
  - removed the success response with the status `200`
  - api tag `Agent Management` added
  - added the success response with the status `201`
- **2025-04-12** `5eeb50d15e83` — 1 info
  - request property `agent_icon` list-of-types was widened by adding types `null` to media type `multipart/form-data`
- **2025-04-08** `3f8e46ce021b` — 1 breaking, 1 warning
  - added the new required request property `yaml_file`
  - removed the request property `yaml_content`
- **2025-03-30** `f8b1d57c6f96` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/svahnar/apis/svahnar-apis/changes/v1/agents/create/post.md)

---

[API](https://skmtc.dev/svahnar/apis/svahnar-apis.md) · [All operations](https://skmtc.dev/svahnar/apis/svahnar-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/svahnar/svahnar-apis/revisions/02cca47c900a/schema)
