---
title: "Create agent"
method: POST
path: "/api/1/agent/agents"
tags: ["Agents"]
---

# Create agent

`POST /api/1/agent/agents`

## Request

- Base URL: `https://{your-bynder-domain}`
- URL: `https://{your-bynder-domain}/api/1/agent/agents`
- Auth: HTTP bearer

Creates a new agent with the given name, prompt, and capabilities. Capabilities are set at creation time and cannot be changed afterwards.

## Request body

- AgentCreateRequest: The agent to create. `capabilities` defines what the agent can do and cannot be changed afterwards.
  - `autoApply` boolean
  - `name` string, required
  - `description` string, required
  - `capabilities` string[], required
  - `agentProperties` object, required
  - `prompt` PromptInput: The prompt to set on an agent when you create or edit it. Unlike the read-only `Prompt` in responses, `id` and `version` are optional here.
    - `id` string, uuid
    - `version` integer
    - `text` string, required
  - `status` 'ACTIVE' | 'INACTIVE' | 'DRAFT'

## Response `201`

Agent created

- Agent: An agent.
  - `id` string, uuid
  - `name` string
  - `description` string
  - `prompt` Prompt: An agent prompt.
    - `id` string, uuid
    - `text` string
    - `version` integer
    - `isActive` boolean
    - `createdAt` string, date-time
    - `modifiedAt` string, date-time
  - `createdAt` string, date-time
  - `modifiedAt` string, date-time
  - `accountId` string, uuid
  - `status` 'ACTIVE' | 'INACTIVE' | 'DRAFT'
  - `autoApply` boolean
  - `autoApplyUserId` string, uuid, nullable
  - `agents` string[]: The capabilities of the agent.
  - `agentProperties` object
  - `createdBy` string, uuid

## Other responses

- `400`: The request body failed validation
- `401`: Missing or invalid bearer token
- `403`: Caller lacks the required permission for this operation
- `429`: Caller exceeded its configured request rate
- `5XX`: Gateway or a downstream service failed to process the request

---

[API](https://skmtc.dev/bynder/apis/ai-agents.md) - [All operations](https://skmtc.dev/bynder/apis/ai-agents/llms.txt) - [OpenAPI document](https://skmtc.dev/bynder/apis/ai-agents/revisions/60a586064d6f?raw)
