---
title: "List Objects"
method: GET
path: "/object/kb/{agent_id}"
---

# List Objects

`GET /object/kb/{agent_id}`

## Request

- Base URL: `https://api.phonely.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.phonely.ai/object/kb/{agent_id}`
- Auth: none declared. Required headers: `authorization`

List objects in the knowledge base for a specific agent.

Args:
    request: FastAPI request object containing the authenticated user info
    agent_id: ID of the agent whose documents to list

Returns:
    ListObjectsResponse containing list of StorageObject with presigned URLs

## Path parameters

- `agent_id` string, required

## Headers

- `authorization` string, required

## Response `200`

Successful Response

- ListObjectsResponse
  - `status` string, required
  - `data` union[], required
    - union
      - StorageObjectMarkDown
        - `name` string, required
        - `id` string, required
        - `agent_id` string, required
        - `last_updated_by` string, required
        - `last_updated_at` string, date-time, required
        - `active` boolean
        - `type` string
        - `trieveChunkIds` string[], nullable
        - `content` string, nullable
        - `contentMD` string, nullable
      - StorageObjectBlob
        - `name` string, required
        - `id` string, required
        - `agent_id` string, required
        - `last_updated_by` string, required
        - `last_updated_at` string, date-time, required
        - `active` boolean
        - `type` string
        - `trieveChunkIds` string[], nullable
        - `presigned_url` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/phonely/apis/phonely-api.md) - [All operations](https://skmtc.dev/phonely/apis/phonely-api/llms.txt) - [OpenAPI document](https://skmtc.dev/phonely/apis/phonely-api/revisions/9bfd5599d479?raw)
