---
title: "Create an Agent Configuration"
method: POST
path: "/v1/projects/{project_id}/agents"
tags: ["configurations"]
---

# Create an Agent Configuration

`POST /v1/projects/{project_id}/agents`

Creates a new reusable agent configuration. The `config` field must be a valid JSON string representing the `agent` block of a Settings message. The returned `agent_id` can be passed in place of the full `agent` object in future Settings messages.

## Path parameters

- `project_id` string, required

## Headers

- `Authorization` string, required

## Request body

- CreateAgentConfigurationV1Request — Request body for creating an agent configuration
  - `config` string, required — A valid JSON string representing the agent block of a Settings message
  - `metadata` object — A map of arbitrary key-value pairs for labeling or organizing the agent configuration
  - `api_version` integer — API version. Defaults to 1

## Response `200`

Agent configuration created successfully

- CreateAgentConfigurationV1Response
  - `agent_id` string, required — The unique identifier of the newly created agent configuration
  - `config` CreateAgentConfigurationV1ResponseConfig, required — The parsed agent configuration object
  - `metadata` object — Metadata associated with the agent configuration

## Other responses

- `400` — Invalid Request

## Changes

- **2026-08-15** `76f89c68dacf` — 2 info
  - api tag `configurations` added
  - api tag `voiceAgent > configurations` removed
- **2026-08-12** `c761ed1f371e` — 2 info
  - api tag `voiceAgent > configurations` added
  - api tag `configurations` removed
- **2026-08-06** `bd7ba5c18a6b` — 2 info
  - api tag `configurations` added
  - api tag `voiceAgent > configurations` removed

[Change history](https://skmtc.dev/deepgram/apis/rest-api/changes/v1/projects/:project_id/agents/post.md)

---

[API](https://skmtc.dev/deepgram/apis/rest-api.md) · [All operations](https://skmtc.dev/deepgram/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/deepgram/rest-api/revisions/76f89c68dacf/schema)
