---
title: "Gets public access rules for a document."
method: GET
path: "/umbraco/management/api/v1/document/{id}/public-access"
tags: ["Document"]
---

# Gets public access rules for a document.

`GET /umbraco/management/api/v1/document/{id}/public-access`

## Request

- The document declares no server URL.
- Auth: OAuth 2
  - Authorization code: `/umbraco/management/api/v1/security/back-office/authorize`
  - Token URL: `/umbraco/management/api/v1/security/back-office/token`

Gets the public access protection settings for the document identified by the provided Id.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `includeAncestors` boolean

## Response `200`

OK

- PublicAccessResponseModel
  - `members` MemberItemResponseModel[], required
    - `memberType` MemberTypeReferenceResponseModel, required
      - `id` string, uuid, required
      - `icon` string, required
      - `collection` ReferenceByIdModel, nullable
        - `id` string, uuid, required
    - `variants` VariantItemResponseModel[], required
      - `name` string, required
      - `culture` string, nullable
    - `kind` 'Default' | 'Api' | 'ExternalOnly', required
    - `id` string, uuid, required
    - `flags` FlagModel[], required
      - `alias` string, required
  - `groups` MemberGroupItemResponseModel[], required
    - `name` string, required
    - `id` string, uuid, required
    - `flags` FlagModel[], required
      - `alias` string, required
  - `isProtectedByAncestor` boolean, required
  - `loginDocument` ReferenceByIdModel, required
    - `id` string, uuid, required
  - `errorDocument` ReferenceByIdModel, required
    - `id` string, uuid, required

## Other responses

- `401`: The resource is protected and requires an authentication token
- `403`: The authenticated user does not have access to this resource
- `404`: Not Found

## Changes

- **2026-12-01** `037731dfd5d6`: 2 breaking, 12 info
  - the response's body type changed from no type to `object` for status `200`
  - the response's body type changed from no type to `object` for status `404`
  - removed `#/components/schemas/ProblemDetails` from the response body `oneOf` list for the response status `404`
  - removed `#/components/schemas/PublicAccessResponseModel` from the response body `oneOf` list for the response status `200`
  - …10 more
- **2026-12-01** `ea0969d36eda`: 9 breaking, 5 warning
  - added `#/components/schemas/ProblemDetails` to the response body `oneOf` list for the response status `404`
  - added `#/components/schemas/PublicAccessResponseModel` to the response body `oneOf` list for the response status `200`
  - the response's body type changed from `object` to no type for status `200`
  - the response's body type changed from `object` to no type for status `404`
  - …10 more
- **2026-11-30** `a3121942b41e`: 2 breaking, 12 info
  - the response's body type changed from no type to `object` for status `200`
  - the response's body type changed from no type to `object` for status `404`
  - removed `#/components/schemas/ProblemDetails` from the response body `oneOf` list for the response status `404`
  - removed `#/components/schemas/PublicAccessResponseModel` from the response body `oneOf` list for the response status `200`
  - …10 more
- …earlier changes not shown

[Operation history](https://skmtc.dev/umbraco/apis/umbraco-management-api/changes/umbraco/management/api/v1/document/:id/public-access/get.md)

---

[API](https://skmtc.dev/umbraco/apis/umbraco-management-api.md) - [All operations](https://skmtc.dev/umbraco/apis/umbraco-management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/umbraco/apis/umbraco-management-api/revisions/7a21148acdfd?raw)
