---
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

---

[API](https://skmtc.net/deepgram/apis/rest-api.md) · [All operations](https://skmtc.net/deepgram/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deepgram/rest-api/versions/bd7ba5c18a6b/schema)
