Retrieve a list of all pages associated with an agent (formerly known as project). This endpoint allows you to fetch agent details and a collection of pages that belong to a specific agent. Each page object includes information such as the page ID, URL, hash of the URL, agent ID, crawl status, index status, file details (if applicable), creation and update timestamps, and other relevant attributes. Here is an example to list all pages belonging to agent: API SDK.
Purpose
Retrieve a list of all pages associated with an agent (formerly known as project). This endpoint allows you to fetch agent details and a collection of pages that belong to a specific agent.
Each page object includes information such as the page ID, URL, hash of the URL, agent ID, crawl status, index status, file details (if applicable), creation and update timestamps, and other relevant attributes.
Here is an example to list all pages belonging to agent: API SDK.
This endpoint also doubles as your ingestion debugger: by inspecting page records and crawl/index statuses, you can work out what content is actually searchable by the agent at any given time.
At a high level, this is the canonical way to work with indexed pages/documents inside an agent’s knowledge base via the CustomGPT API.
When to use
- When you need to list all pages that belong to an agent as part of your backend or automation workflows.
- To debug ingestion by checking which URLs or files have actually been crawled and indexed, and in what state.
Use the Add new source docs if you wish to add data.
