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

# Create a new agent

`POST /v1/agent`

Creates a new agent for the authenticated project.

## Request body

- object — Input for creating a new agent
  - `name` string, required — Name of the agent
  - `description` string, nullable — Description of the agent
  - `customId` string, nullable — Custom identifier for the agent

## Response `201`

The created agent

- object
  - `data` object, required
    - `id` string, uuid, required — Unique identifier of the agent
    - `name` string, required — Name of the agent
    - `description` string, nullable, required — Description of the agent
    - `customId` string, nullable, required — Custom identifier for the agent
    - `createdAt` string, required — Creation timestamp in ISO 8601 format
    - `updatedAt` string, required — Last update timestamp in ISO 8601 format

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/roarkhq/apis/roark-analytics-api.md) · [All operations](https://skmtc.net/roarkhq/apis/roark-analytics-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/roarkhq/roark-analytics-api/revisions/83528d3618ef/schema)
