Skip to main content
The Get Page endpoint fetches the complete details of a single page using its unique identifier. Use this endpoint when you need the full content of a specific page rather than a summary list. The page id is returned when you create a page or list all pages.

Endpoint

GET https://api.pharen.de/v1/new-page/{id}

Path Parameters

id
string
required
The unique identifier of the page you want to retrieve. Page IDs are returned by the List Pages and Create Page endpoints.

Request Example

curl https://api.pharen.de/v1/new-page/page_01hx9k2m3nqvw4e5r6t7y8u9p \
  --request GET \
  --header "Authorization: Bearer YOUR_API_KEY" \
  --header "Content-Type: application/json"

Response

A successful request returns a 200 OK status and a single page object containing all fields.

Response Fields

id
string
The unique identifier for this page.
title
string
The title of the page.
content
string
The full body content of the page. May contain plain text or Markdown.
created_at
string
ISO 8601 timestamp recording when the page was originally created.
updated_at
string
ISO 8601 timestamp recording when the page was last modified.

Response Example

{
  "id": "page_01hx9k2m3nqvw4e5r6t7y8u9p",
  "title": "Getting Started Guide",
  "content": "## Welcome to Pharen Hub\n\nThis guide walks you through setting up your workspace and inviting your first team members...",
  "created_at": "2024-06-01T09:00:00Z",
  "updated_at": "2024-06-10T14:32:00Z"
}

Error Responses

If the page does not exist or has been deleted, the API returns a 404 Not Found:
{
  "error": {
    "code": "not_found",
    "message": "No page with ID 'page_01hx9k2m3nqvw4e5r6t7y8u9p' exists in this workspace."
  }
}
Page IDs are workspace-scoped. An ID that is valid in one workspace will return 404 if used with an API key belonging to a different workspace, even if the ID string is well-formed.