PagesGet page content

Get page content

Returns the full content of a documentation page by its file path.

curl -X GET "https://api.documentationai.app/api/v1/pages/example_string?branch=example_string" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "path": "example_string",
  "branch": "example_string",
  "content": "example_string"
}
GET
/pages/{path}
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_...
path
pathstring
Required

File path relative to repository root (e.g. getting-started/introduction.mdx)

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_...

Path Parameters

pathstring
Required

File path relative to repository root (e.g. getting-started/introduction.mdx)

Query Parameters

branchstring

Branch name. Defaults to the deployment branch.

Responses

pathstring
branchstring
contentstring

Raw file content (MDX, JSON, YAML, etc.)