---
agentTools:
  projectIndex: https://nexaflow.readme.io/llms.txt
---

# Get a page by ID

API to get data of a single page.

Use Cases:
- To get all data needed to render a page

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "This is the documentation for the CMS API",
    "version": "1.0.0",
    "title": "CMS Documentation"
  },
  "tags": [
    {
      "name": "page",
      "description": "Page APIs"
    }
  ],
  "paths": {
    "/page/{pageId}": {
      "get": {
        "tags": [
          "page"
        ],
        "summary": "Get a page by ID",
        "description": "API to get data of a single page.\n\nUse Cases:\n- To get all data needed to render a page\n",
        "operationId": "getPageById",
        "parameters": [
          {
            "name": "pageId",
            "in": "path",
            "description": "Page ID given by the platform",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "websiteId",
            "in": "query",
            "description": "Website ID given by the platform",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Page"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid status value"
          }
        },
        "security": [
          {
            "api_key": []
          }
        ]
      }
    }
  },
  "externalDocs": {
    "description": "Find out more about Swagger",
    "url": "http://swagger.io"
  },
  "servers": [
    {
      "url": "https://api.nexaflow.xyz/api"
    }
  ],
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      }
    },
    "schemas": {
      "Page": {
        "type": "object",
        "title": "Page",
        "properties": {
          "blocks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Block"
            }
          },
          "metadata": {
            "$ref": "#/components/schemas/Metadata"
          },
          "updatedAt": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "websiteId": {
            "type": "string"
          }
        }
      },
      "Block": {
        "type": "object",
        "title": "Block",
        "properties": {
          "blockType": {
            "type": "string"
          },
          "blockName": {
            "type": "string"
          },
          "blockDescription": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "blockData": {
            "type": "object"
          }
        }
      },
      "Metadata": {
        "type": "object",
        "title": "Metadata",
        "properties": {
          "siteName": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        }
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 95,
      "2": 49,
      "3": 0,
      "4": 6,
      "5": 159,
      "6": 138,
      "7": 0,
      "8": 30,
      "9": 188,
      "10": 93,
      "11": 185
    }
  }
}
```