---
title: "Get citation source preview."
method: GET
path: "/api/v1/preview/{pageId}"
tags: ["Pages"]
---

# Get citation source preview.

`GET /api/v1/preview/{pageId}`

## Request

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

Returns a preview of the source document referenced by a citation. Use this to show users the original content that the agent used to generate a response.

## Path parameters

- `pageId` integer, required

## Other responses

- `400`: Bad Argument
- `401`: API Token is either missing or invalid
- `404`: Page not found
- `429`: Too many requests. You have exceeded your API rate limit.
- `500`: Internal Server Error

---

[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)
