---
title: "Get document metadata."
method: GET
path: "/api/v1/projects/{projectId}/pages/{pageId}/metadata"
tags: ["Pages Metadata"]
---

# Get document metadata.

`GET /api/v1/projects/{projectId}/pages/{pageId}/metadata`

## Request

- Base URL: `https://app.customgpt.ai`
- URL: `https://app.customgpt.ai/api/v1/projects/{projectId}/pages/{pageId}/metadata`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/poll-the-people/apis/customgpt-ai/docs/api/v1/projects/:projectId/pages/:pageId/metadata/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns metadata for a document, including its title, source URL, word count, and any custom metadata fields. Use this to display document information or manage your knowledge base.

## Path parameters

- `projectId` integer, required
- `pageId` integer, required

## Response `200`

Get the document metadata data for a citation

- object
  - `status` 'error' | 'success': The status of the response
  - `data` PageMetadata
    - `id` integer: The unique identifier of the document
    - `url` string, nullable: The URL of the document
    - `title` string, nullable: The title of the document
    - `description` string, nullable: The description of the document
    - `summary` string, nullable: The Library Map snapshot of the document, when one was taken. Read-only: ignored when updating the metadata.
    - `image` string, nullable: The image of the document

## Other responses

- `400`: Create page metadata failed
- `401`: API Token is either missing or invalid
- `404`: Page not found
- `429`: Too many requests. You have exceeded your API rate limit.

## Changes

- **2026-11-03** `77aab4354382`: 1 breaking, 3 warning, 2 info
  - for the `path` request parameter `pageId`, the type changed from `string` to `integer`
  - added the new `422.00` enum value to the `data/code` response property for the response status `400`
  - added the new `422.00` enum value to the `data/code` response property for the response status `401`
  - added the new `422.00` enum value to the `data/code` response property for the response status `404`
  - …2 more
- **2026-07-17** `b80e6dfcf78d`: 1 info
  - endpoint added
- **2023-06-02** `1842d7fd0430`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/poll-the-people/apis/customgpt-ai/changes/api/v1/projects/:projectId/pages/:pageId/metadata/get.md)

---

[API](https://skmtc.dev/poll-the-people/apis/customgpt-ai.md) - [All operations](https://skmtc.dev/poll-the-people/apis/customgpt-ai/llms.txt) - [OpenAPI document](https://skmtc.dev/poll-the-people/apis/customgpt-ai/revisions/77aab4354382?raw)
