---
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
  - `canonical_name` string, nullable
  - `about` string
  - `model` string
  - `instructions` union
    - string
    - string[]
  - `default_settings` DefaultChatSettings — Default settings for the chat session (also used by the agent)
    - `frequency_penalty` number, nullable
    - `presence_penalty` number, nullable
    - `temperature` number, nullable
    - `top_p` number, nullable
    - `repetition_penalty` number, nullable
    - `length_penalty` number, nullable
    - `min_p` number, nullable

## Response `201`

Successful Response

- ResourceCreatedResponse
  - `id` string, uuid, required
  - `created_at` string, date-time, required
  - `jobs` string[]

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/julep-ai/apis/julep-agents-api.md) · [All operations](https://skmtc.dev/julep-ai/apis/julep-agents-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/julep-ai/julep-agents-api/revisions/ea124be3fdbc/schema)
