> ## Documentation Index
> Fetch the complete documentation index at: https://docs.member.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Admin Get Page

> Retrieve a page by UUID or slug.

P7 — ``?resolve=false``:
  Returns the RAW (un-pruned) ``tree_published`` as a ``page-trees``
  JSON:API resource. ADMIN ONLY — callers must be team owners.
  Useful for the editor to read the full published tree without pruning.



## OpenAPI

````yaml /openapi/mio-openapi.json get /api/v1/teams/{team_id}/hubs/{hub_id}/pages/{identifier}
openapi: 3.1.0
info:
  description: >-
    Production API reference for Membership.io. Use the authored guides for
    workflows and the generated endpoint pages for exact parameters and schemas.
  title: Membership.io API
  version: 0.1.0
servers:
  - description: Production
    url: https://api.member.dev
security:
  - bearerAuth: []
paths:
  /api/v1/teams/{team_id}/hubs/{hub_id}/pages/{identifier}:
    get:
      tags:
        - pages-admin
      summary: Admin Get Page
      description: |-
        Retrieve a page by UUID or slug.

        P7 — ``?resolve=false``:
          Returns the RAW (un-pruned) ``tree_published`` as a ``page-trees``
          JSON:API resource. ADMIN ONLY — callers must be team owners.
          Useful for the editor to read the full published tree without pruning.
      operationId: >-
        pages_admin.get_pages_admin_get_teams_by_team_id_hubs_by_hub_id_pages_by_identifier
      parameters:
        - in: path
          name: team_id
          required: true
          schema:
            title: Team Id
            type: string
        - in: path
          name: hub_id
          required: true
          schema:
            title: Hub Id
            type: string
        - in: path
          name: identifier
          required: true
          schema:
            title: Identifier
            type: string
        - in: query
          name: resolve
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Resolve
      responses:
        '200':
          content:
            application/vnd.api+json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/AdminPageResponse'
                  - $ref: '#/components/schemas/PageTreeResponse'
          description: >-
            Page metadata with draft_version OCC token (default). When
            ?resolve=false is supplied, returns a page_trees resource
            (PageTreeResponse) containing the raw tree_published instead.
          headers:
            ETag:
              description: >-
                Current draft_version (quoted per RFC 9110). Echo as If-Match on
                PUT .../tree or POST .../publish to complete the OCC chain
                without a second read.
              schema:
                type: string
        '422':
          content:
            application/vnd.api+json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    AdminPageResponse:
      additionalProperties: false
      description: Single-resource JSON:API response for admin page reads.
      properties:
        data:
          $ref: '#/components/schemas/AdminPageResource'
      required:
        - data
      title: AdminPageResponse
      type: object
    PageTreeResponse:
      additionalProperties: false
      description: Top-level JSON:API response envelope for GET .../pages/{id}?resolve.
      properties:
        data:
          $ref: '#/components/schemas/PageTreeResource'
      required:
        - data
      title: PageTreeResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    AdminPageResource:
      additionalProperties: false
      description: JSON:API resource object for admin page reads (includes draft_version).
      properties:
        attributes:
          $ref: '#/components/schemas/AdminPageAttributes'
        id:
          title: Id
          type: string
        type:
          const: pages
          default: pages
          title: Type
          type: string
      required:
        - id
        - attributes
      title: AdminPageResource
      type: object
    PageTreeResource:
      additionalProperties: false
      description: JSON:API resource object for a resolved page tree.
      properties:
        attributes:
          $ref: '#/components/schemas/PageTreeAttributes'
        id:
          title: Id
          type: string
        type:
          const: page_trees
          default: page_trees
          title: Type
          type: string
      required:
        - id
        - attributes
      title: PageTreeResource
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
    AdminPageAttributes:
      additionalProperties: false
      description: >-
        Admin read attributes — extends PageAttributes with authoring fields.


        ``draft_version`` is the OCC token required by the If-Match chain:
          GET page -> read draft_version -> PUT .../tree with If-Match: <draft_version>
          -> PUT .../publish with If-Match: <new_draft_version>

        Exposed on admin reads only (team-owner gated routes).  Portal/member

        reads use the base ``PageAttributes`` class which omits this field —
        draft

        state is authoring-side data and has no meaning for consumers.
      properties:
        created_at:
          format: date-time
          title: Created At
          type: string
        deleted_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Deleted At
        draft_version:
          title: Draft Version
          type: integer
        hub_id:
          title: Hub Id
          type: string
        is_homepage:
          title: Is Homepage
          type: boolean
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
        position:
          title: Position
          type: integer
        privacy:
          title: Privacy
          type: string
        settings:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Settings
        slug:
          title: Slug
          type: string
        title:
          title: Title
          type: string
        type:
          title: Type
          type: string
        updated_at:
          format: date-time
          title: Updated At
          type: string
      required:
        - hub_id
        - title
        - slug
        - type
        - privacy
        - is_homepage
        - position
        - settings
        - meta
        - created_at
        - updated_at
        - deleted_at
        - draft_version
      title: AdminPageAttributes
      type: object
    PageTreeAttributes:
      additionalProperties: true
      description: JSON:API attributes for a resolved (or raw) page-builder tree.
      properties:
        published_revision:
          title: Published Revision
          type: integer
        resolved:
          title: Resolved
          type: boolean
        tree:
          additionalProperties: true
          title: Tree
          type: object
      required:
        - tree
        - resolved
        - published_revision
      title: PageTreeAttributes
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT or mio_sk API key
      description: >-
        Send platform JWTs, contact JWTs, or team API keys as `Authorization:
        Bearer <token>`.
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````