---
title: "Create a new agent"
method: POST
path: "/api/v1/agent/"
tags: ["agent"]
---

# Create a new agent

`POST /api/v1/agent/`

Creates a new agent

## Headers

- `authorization` string — This is your JWT tolen
- `x-api-key` string — A valid API key

## Request body

- object
  - `imageUrl` string, uri, required
  - `name` string, required
  - `handle` string, required
  - `useCase` string, required
  - `description` string, required

## Response `200`

200

- object
  - `success` boolean, required
  - `agent` object, required
    - `id` string, required
    - `title` string, required
    - `handle` string, nullable, required
    - `image` string, nullable, required
    - `userId` string, nullable, required
    - `description` string, nullable, required
    - `useCase` string, nullable, required
    - `uiSchema` unknown, required
    - `inputSchema` unknown, required
    - `details` unknown, required
    - `visibility` string, required
    - `ratings` number[], nullable, required
    - `averageRating` string, nullable, required
    - `revenue` number, nullable, required
    - `pendingPayout` number, nullable, required
    - `totalPayout` number, nullable, required
    - `taskRequests` number, nullable, required
    - `tasksStarted` number, nullable, required
    - `tasksCompleted` number, nullable, required
    - `price` number, nullable, required
    - `webhookEnabled` boolean, nullable, required
    - `webhookDetails` unknown, required
    - `createdAt` string, required
    - `updatedAt` string, required

## Changes

- **2024-08-20** `74bdfb8101cc` — 12 breaking, 1 warning, 14 info
  - added the new required request property `imageUrl`
  - added the new required request property `useCase`
  - the `description` request property's minLength was increased from `0` to `18`
  - removed the required property `agent/data` from the response with the `200` status
  - …23 more
- **2024-08-05** `4042c6552ea9` — 1 breaking
  - removed the required property `agent/apiKey` from the response with the `200` status

[Change history](https://skmtc.dev/artilla-ai/apis/artilla-api-documentation/changes/api/v1/agent/post.md)

---

[API](https://skmtc.dev/artilla-ai/apis/artilla-api-documentation.md) · [All operations](https://skmtc.dev/artilla-ai/apis/artilla-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/artilla-ai/artilla-api-documentation/revisions/db7d7d4115f0/schema)
