PagesList all pages

List all pages

Returns every file in the documentation repository with its path and size in bytes.

curl -X GET "https://api.documentationai.app/api/v1/pages?branch=example_string" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "pages": [
    {
      "path": "getting-started/introduction.mdx",
      "size": 2048
    }
  ],
  "count": 10
}
GET
/pages
GET
Bearer Token
Bearer Tokenstring
Required

API key generated from the Documentation.AI dashboard (Settings → API Keys). Pass as Authorization: Bearer dai_...

API key generated from the Documentation.AI dashboard (Settings → API Keys). Pass as Authorization: Bearer dai_...
query
branchstring

Branch name. Defaults to the deployment branch.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. API key generated from the Documentation.AI dashboard (Settings → API Keys). Pass as Authorization: Bearer dai_...

Query Parameters

branchstring

Branch name. Defaults to the deployment branch.

Responses

pagesarray
countinteger