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

# Create Agent

`POST /agents`

## Request body

- CreateAgentRequest — Payload for creating a agent (and associated documents)
  - `metadata` object, nullable
  - `name` string, required
  - `project` string, nullable
  - `canonical_name` string, nullable
  - `about` string
  - `model` string
  - `instructions` union
    - string
    - string[]
  - `default_settings` object, nullable
  - `default_system_template` string

## Response `201`

Successful Response

- Agent
  - `id` string, uuid, required
  - `metadata` object, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `name` string, required
  - `project` string, nullable
  - `canonical_name` string, nullable
  - `about` string
  - `model` string
  - `instructions` union
    - string
    - string[]
  - `default_settings` object, nullable
  - `default_system_template` string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/julep-ai/apis/julep-agents-api.md) · [All operations](https://skmtc.net/julep-ai/apis/julep-agents-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/julep-ai/julep-agents-api/versions/21c8182519ef/schema)
