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

# Create Agent

`POST /api/v1/agents`

Create a new agent. If iconUrl is provided, the server will fetch the icon from the external URL and upload it to R2 storage. The response will contain the R2 URL.

## Request body

- AgentCreate
  - `scope` string, required
  - `slug` string, required
  - `displayName` string, required
  - `description` string, required
  - `iconUrl` string, uri
  - `author` string
  - `category` string
  - `tags` string[]
  - `agent` AgentPlatform, required
    - `platform` string, required
    - `url` string, uri, required

## Response `201`

Agent created successfully

- AgentResponse
  - `agent` Agent, required
    - `scope` string, required
    - `slug` string, required
    - `displayName` string, required
    - `description` string, required
    - `iconUrl` string, uri
    - `author` string
    - `category` string
    - `tags` string[]
    - `agent` AgentPlatform, required
      - `platform` string, required
      - `url` string, uri, required
    - `createdAt` string, date-time
    - `updatedAt` string, date-time, required
    - `developerId` string
    - `id` string, required

## Other responses

- `400` — Invalid request data
- `401` — Unauthorized - authentication required
- `500` — Internal server error

## Changes

- **2026-01-21** `ba253fbf08a7` — 1 info
  - added the optional property `agent/developerId` to the response with the `201` status
- **2026-01-18** `b0e6563d3fce` — 2 breaking, 2 warning, 1 info
  - the `code` response property const value `INTERNAL_SERVER_ERROR` was removed for the status `500`
  - the `code` response property const value `UNAUTHORIZED` was removed for the status `401`
  - added the new `INTERNAL_SERVER_ERROR` enum value to the `code` response property for the response status `500`
  - added the new `UNAUTHORIZED` enum value to the `code` response property for the response status `401`
  - …1 more
- **2026-01-17** `4f3d96fe2656` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/corespeed-io/apis/mcp-store-api/changes/api/v1/agents/post.md)

---

[API](https://skmtc.dev/corespeed-io/apis/mcp-store-api.md) · [All operations](https://skmtc.dev/corespeed-io/apis/mcp-store-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/corespeed-io/mcp-store-api/revisions/25721894961a/schema)
