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

Base URL: `https://agent.deepgram.com`

Tags: `configurations`

## Authorization

| Option | Scheme | Type | Sent as | Scopes |
| --- | --- | --- | --- | --- |
| Option 1 | `ApiKeyAuth` | `apiKey` | header `Authorization` | — |

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `project_id` | `string` | Yes | The unique identifier of the project |

## Request body

Optional. Media type: `application/json`

Agent configuration details

### Example request body

```json
{
  "api_version": 1,
  "config": "string",
  "metadata": {
    "additionalProp1": "string"
  }
}
```

## Responses

| Status | Description | Media type |
| --- | --- | --- |
| `200` | Agent configuration created successfully | `application/json` |
| `400` | Invalid Request | `application/json` |

### Example response: 200 — Agent configuration created successfully

```json
{
  "agent_id": "string",
  "config": {},
  "metadata": {
    "additionalProp1": "string"
  }
}
```

### Example response: 400 — Invalid Request

```json
{
  "err_code": "string",
  "err_msg": "string",
  "request_id": "string"
}
```

## Related pages

- [Analyze text content](./text_analyze.md)
- [audio](./tags/audio.md)
- [balances](./tags/balances.md)
- [breakdown](./tags/breakdown.md)
- [configurations](./tags/configurations.md)
- [Create a Project Invite](./invites_create.md)
- [Create a Project Key](./keys_create.md)
- [Create a Project Self-Hosted Distribution Credential](./distributioncredentials_create.md)
- [Create an Agent Variable](./variables_create.md)
- [Delete a Project](./projects_delete.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
