# Get a page (/docs/api/cms/pages/getPage)

`GET https://api.tintage.com/v1/cms/projects/{projectId}/pages/{pageId}`

The page in `locale` (the site's language by default), with `alternates`: its other locales. A public key gets published pages only. `ETag` is its version, for `If-Match`.

Parameters:
- `projectId` (path, required)
- `pageId` (path, required)
- `locale` (query): Language tag of the row to read (`fr`, `fr-CA`). Defaults to the site's language.
- `format` (query): The body as stored (Tiptap JSON, the default), or as HTML or markdown.
- `version` (query): Secret keys: `working` reads a live post with its pending changes and their version (0 before there are any), which a write to them sends in `If-Match`. `live` (the default) is the post itself.

Responses:
- 200: The page.

  ```json
  {
    "id": "string",
    "locale": "string",
    "alternates": [
      {
        "locale": "string",
        "slug": "string"
      }
    ],
    "slug": "string",
    "status": "draft",
    "title": "string",
    "body": "string",
    "featureImage": "string",
    "authors": [
      {
        "id": "string",
        "slug": "string",
        "name": "string",
        "bio": "string",
        "image": "string",
        "website": "string",
        "social": {
          "x": "string",
          "bluesky": "string",
          "mastodon": "string",
          "linkedin": "string",
          "instagram": "string",
          "github": "string",
          "youtube": "string"
        },
        "count": {
          "posts": 0
        }
      }
    ],
    "seo": {
      "title": "string",
      "description": "string"
    },
    "og": {
      "title": "string",
      "description": "string",
      "image": "string"
    },
    "twitter": {
      "card": "summary",
      "title": "string",
      "description": "string",
      "image": "string"
    },
    "canonicalUrl": "string",
    "noindex": false,
    "fields": {},
    "publishedAt": "string",
    "createdAt": "string",
    "updatedAt": "string",
    "version": 0,
    "parent": "string",
    "template": "string"
  }
  ```
- 400: The request is malformed: `invalid_input`, `unknown_parameter`, `invalid_cursor` or `unsupported_api_version`.

  ```json
  {
    "error": {
      "code": "invalid_input",
      "message": "string",
      "field": "string",
      "hint": "string",
      "issues": [
        {
          "field": "string",
          "message": "string",
          "hint": "string"
        }
      ]
    },
    "requestId": "string"
  }
  ```
- 401: Missing or invalid credential: `unauthorized`.

  ```json
  {
    "error": {
      "code": "invalid_input",
      "message": "string",
      "field": "string",
      "hint": "string",
      "issues": [
        {
          "field": "string",
          "message": "string",
          "hint": "string"
        }
      ]
    },
    "requestId": "string"
  }
  ```
- 403: The credential may not do this here: `forbidden`.

  ```json
  {
    "error": {
      "code": "invalid_input",
      "message": "string",
      "field": "string",
      "hint": "string",
      "issues": [
        {
          "field": "string",
          "message": "string",
          "hint": "string"
        }
      ]
    },
    "requestId": "string"
  }
  ```
- 404: No such item, or one this credential cannot see: `not_found`.

  ```json
  {
    "error": {
      "code": "invalid_input",
      "message": "string",
      "field": "string",
      "hint": "string",
      "issues": [
        {
          "field": "string",
          "message": "string",
          "hint": "string"
        }
      ]
    },
    "requestId": "string"
  }
  ```
- 422: `limit_exceeded`, `query_not_supported`, `query_timeout` or `idempotency_key_reused`.

  ```json
  {
    "error": {
      "code": "invalid_input",
      "message": "string",
      "field": "string",
      "hint": "string",
      "issues": [
        {
          "field": "string",
          "message": "string",
          "hint": "string"
        }
      ]
    },
    "requestId": "string"
  }
  ```
- 429: Too many requests: `rate_limited`, with `Retry-After`.

  ```json
  {
    "error": {
      "code": "invalid_input",
      "message": "string",
      "field": "string",
      "hint": "string",
      "issues": [
        {
          "field": "string",
          "message": "string",
          "hint": "string"
        }
      ]
    },
    "requestId": "string"
  }
  ```
- 500: Something failed on our side: `internal_error`.

  ```json
  {
    "error": {
      "code": "invalid_input",
      "message": "string",
      "field": "string",
      "hint": "string",
      "issues": [
        {
          "field": "string",
          "message": "string",
          "hint": "string"
        }
      ]
    },
    "requestId": "string"
  }
  ```
