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

# Create an agent

`POST /v1/agents`

## Request

- Base URL: `https://api.typenode.ai`
- URL: `https://api.typenode.ai/v1/agents`
- Auth: HTTP bearer

## Request body

- CreateAgent
  - `base_tools` string[]
  - `connectors` string[]
  - `description` string
  - `max_budget_usd` number
  - `max_turns` integer
  - `model` 'claude-sonnet-4-6' | 'claude-haiku-4-5-20251001' | 'claude-opus-4-6'
  - `name` string, required
  - `permission_mode` 'acceptEdits' | 'default' | 'bypassPermissions'
  - `slug` string
  - `system_prompt_text` string
  - `system_prompt_type` 'preset_append' | 'custom'

## Response `201`

The created agent, including its atomically assigned initial connectors.

- Agent
  - `base_tools` string[], required
  - `connectors` string[], required
  - `created_at` string, date-time, required
  - `description` string, nullable, required
  - `id` string, uuid, required
  - `is_active` boolean, required
  - `is_system` boolean, required
  - `max_budget_usd` number, required
  - `max_turns` integer, required
  - `model` string, required
  - `name` string, required
  - `permission_mode` 'acceptEdits' | 'default' | 'bypassPermissions', required
  - `slug` string, required
  - `system_prompt_preset` string, nullable, required
  - `system_prompt_text` string, required
  - `system_prompt_type` 'preset_append' | 'custom', required
  - `updated_at` string, date-time, required

## Other responses

- `401`: Authentication required.
- `default`: An error occurred (RFC 9457 problem+json).

---

[API](https://skmtc.dev/typenode/apis/typenode-management-api.md) · [All operations](https://skmtc.dev/typenode/apis/typenode-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/typenode/apis/typenode-management-api/revisions/9b943024aa98?raw)
