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

# Create Agent

`POST /api/v1/agent`

## Headers

- `CodeGPT-Org-Id` string

## Request body

- CreateAgentData
  - `name` string, required — Name of the agent
  - `topk` integer, nullable — Number of elements to retrieve from the documents
  - `temperature` number, nullable — Temperature of the agent
  - `model` string, nullable — Model of the agent
  - `prompt` string, nullable — Agent prompt
  - `welcome` string, nullable — Welcome message of the agent

## Response `200`

Successful Response

- unknown

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.dev/codegpt/apis/codegpt-api-beta.md) · [All operations](https://skmtc.dev/codegpt/apis/codegpt-api-beta/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/codegpt/codegpt-api-beta/revisions/0a70b3b0cec3/schema)
