---
title: "Create Agent"
method: POST
path: "/agent"
tags: ["agents"]
---

# Create Agent

`POST /agent`

## Request

- Base URL: `https://api.overfit.de` (the document declares no server; this is the origin it was published from)
- URL: `https://api.overfit.de/agent`
- Auth: one of:
  - OpenID Connect (`https://auth.okns.de/realms/overfit-products/.well-known/openid-configuration`)
  - API key in header `X-API-Key`

Create a new agent. Accepts AgentCreate Schema as input. A can only be used by using it with an Agent.
Tools used in the Schema must be created before.

## Request body

- AgentCreate
  - `name` string, required
  - `description` string, nullable
  - `public` boolean
  - `agent_data` union, required
    - AgentDefault
      - `agent_type` 'DEFAULT', required
    - AgentSubgoal
      - `agent_type` 'SUBGOAL', required
    - AgentPrimed
      - `agent_type` 'PRIMED', required
      - `priming_command` string, required
  - `tools` string[]
  - `generative_model` string
  - `temperature` number

## Response `200`

Successful Response

- Agent
  - `id` string, required
  - `time_created` string, date-time, required
  - `name` string, required
  - `description` string, nullable
  - `public` boolean
  - `agent_type` 'DEFAULT' | 'PLAN' | 'PRIMED', required
  - `agent_steps` AgentStep[]
    - `id` string, required
    - `agent_id` string, required
    - `order` integer, required
    - `step_type` string, required
    - `step_message` string, required
  - `generative_model` string
  - `temperature` number
  - `tools` Tool[]
    - `name` string, required
    - `description` string, nullable
    - `public` boolean
    - `llm_selection_string` string, nullable
    - `id` string, required
    - `sub` string, uuid, required
    - `tool_type` string, required
  - `sub` string, uuid, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/overfit/apis/overfit-insights-revolutionizing-data-retrieval.md) · [All operations](https://skmtc.dev/overfit/apis/overfit-insights-revolutionizing-data-retrieval/llms.txt) · [OpenAPI document](https://skmtc.dev/overfit/apis/overfit-insights-revolutionizing-data-retrieval/revisions/0055f7fe41e5?raw)
