> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://help.getzep.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://help.getzep.com/_mcp/server.

# Creates a new DocumentCollection

POST https://api.getzep.com/api/v2/collections/{collectionName}
Content-Type: application/json

If a collection with the same name already exists, an error will be returned.

Reference: https://help.getzep.com/v2/sdk-reference/deprecated/document/add-collection

## Request

### Path parameters

- `collectionName` (string, required) — Name of the Document Collection

### Body (application/json)

This endpoint expects a models.CreateDocumentCollectionRequest.

- `description` (string, optional)
- `metadata` (map from string to any, optional)

## Response

### 200

OK

- `message` (string, optional)

## Errors

### 400 Bad Request Error

Bad Request

- `message` (string, optional)

### 401 Unauthorized Error

Unauthorized

- `message` (string, optional)

### 404 Not Found Error

Not Found

- `message` (string, optional)

### 500 Internal Server Error

Internal Server Error

- `message` (string, optional)

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "message": "Document collection 'research-papers' created successfully."
}
```