---
title: "Create Agent"
method: POST
path: "/api/v2/projects/{project_id}/agents"
tags: ["Agents"]
---

# Create Agent

`POST /api/v2/projects/{project_id}/agents`

Create a new agent in your project. Agents are used to organize and group related sessions and traces.

## Path parameters

- `project_id` string, required

## Request body

- object
  - `name` string, required
  - `id` string, uuid, nullable

## Response `200`

AgentInfo(id: uuid.UUID, name: str)

- object
  - `id` string, uuid, required
  - `name` string, required

---

[API](https://skmtc.net/freeplay/apis/freeplay-api.md) · [All operations](https://skmtc.net/freeplay/apis/freeplay-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/freeplay/freeplay-api/revisions/69c553220183/schema)
