---
title: "Get Agent Auto Collection"
method: GET
path: "/api/knowledge/agents/{agent_id}/auto-collection"
tags: ["knowledge", "knowledge"]
---

# Get Agent Auto Collection

`GET /api/knowledge/agents/{agent_id}/auto-collection`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/knowledge/agents/{agent_id}/auto-collection`
- Auth: none declared

Get the auto-collection for an agent (if it exists).

## Path parameters

- `agent_id` integer, required

## Response `200`

Successful Response

- AgentAutoCollectionResponse: Response for an agent's auto-collection.
  - `collection_id` integer, nullable
  - `agent_id` integer, required
  - `file_count` integer
  - `chunk_count` integer
  - `files` CollectionFileResponse[]
    - `file_id` integer, required
    - `title` string, nullable
    - `original_filename` string, nullable
    - `mime_type` string, nullable
    - `byte_size` integer, nullable
    - `status` string, required
    - `chunk_count` integer
    - `priority` integer
    - `is_enabled` boolean
    - `is_pinned` boolean
    - `added_at` string, date-time, required
    - `thumbnail_url` string, nullable
    - `web_url` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
