---
title: "Create Agent"
method: POST
path: "/tokenwise/settings/agents"
---

# Create Agent

`POST /tokenwise/settings/agents`

## Request body

- AgentCreate — Body for ``POST /tokenwise/settings/agents``.
  - `agent_id` string, required
  - `kind` string
  - `name` string
  - `description` string
  - `config_id` string
  - `enabled` boolean

## Response `201`

Successful Response

- AgentOut — Response shape for agent GET / POST / PUT.
  - `id` string, uuid, required — A unique ID for the request (not the message). Repeated identical requests get different IDs. However, for a streaming response, the ID will be the same for all responses in the stream.
  - `workspace_id` string, uuid, required
  - `agent_id` string, required
  - `name` string, required
  - `kind` string, required
  - `description` string
  - `config_id` string
  - `enabled` boolean, required
  - `used` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/ai21/apis/ai21-studio-api.md) · [All operations](https://skmtc.net/ai21/apis/ai21-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ai21/ai21-studio-api/versions/4105747cd57d/schema)
