Документация / Как начать / Работа с MCP / Идентификаторы и страницы результатов / REST: site / getSiteAccessTree Для AI-агентов: markdown этой страницы — /docs/api-op-getsiteaccesstree.md · индекс документации — /llms.txt
getSiteAccessTree Обновлено 1 ноября 2026 г.
GET /api/v1/tools/site/access-rules/tree
Show the access rules on the published pages of a host
# Авторизация и праваScopes: ALL. Auth alternatives: OR; scopes внутри альтернативы: ALL.
Поле Значение security.0.hubApiKey [] security.1.hubBearer [] securitySchemes.hubApiKey.in "header" securitySchemes.hubApiKey.name "X-Api-Key" securitySchemes.hubApiKey.type "apiKey" securitySchemes.hubBearer.scheme "bearer" securitySchemes.hubBearer.type "http" x-required-scopes ["site:read"]
# Параметры запросаПоле Значение 0.in "query" 0.name "host" 0.required true 0.schema 0.schema
# Тело запросаПоле Значение Тело запроса null
# Ответы# ОшибкиПоле Значение 400.content.application/problem+json.schema ProblemDetails 400.description "host is missing or not a hostname" 400.x-error-codes ["VALIDATION_ERROR"] 401.content.application/problem+json.schema ProblemDetails 401.description "Missing, invalid, revoked or conflicting credential; surface JWT is refused" 401.x-error-codes ["INVALID_API_KEY"] 403.content.application/problem+json.schema ProblemDetails 403.description "Missing scope, prohibited publishable credential or absent active bot" 403.x-error-codes ["INSUFFICIENT_SCOPE","PUBLISHABLE_KEY_NOT_ALLOWED","NO_ACTIVE_BOT"] 404.content.application/problem+json.schema ProblemDetails 404.description "The host is not a site address of the business, or the business has no published page on it" 404.x-error-codes ["NOT_FOUND"] 413.content.application/problem+json.schema ProblemDetails 413.description "Resource policy size or item-count limit exceeded" 413.x-error-codes ["PAYLOAD_TOO_LARGE","ITEM_COUNT_EXCEEDED"] 429.content.application/problem+json.schema ProblemDetails 429.description "Resource rate budget exceeded or unavailable" 429.headers.Retry-After.description "Retry delay in seconds, when supplied by the limiter" 429.headers.Retry-After.schema 429.headers.Retry-After.schema 429.x-error-codes ["RATE_LIMIT_EXCEEDED","RATE_LIMIT_UNAVAILABLE"] 500.content.application/problem+json.schema ProblemDetails 500.description "Unexpected internal failure" 500.x-error-codes ["INTERNAL_ERROR"]
# Дополнительные условияПоле Значение description "site:read. For one host of the business (host from GET /tools/site/pages): each published page with the rules whose masks reach it (the most specific mask decides) and its blocks, each block with its rules; unmatched are rules whose mask covers no published page of this host; a rule acts on every host of the business and on any file, so an unmatched rule may still close a page of another host or files that are not pages (video, PDF), and it is not a reason to delete it. Read it before PUT to see what is already closed." operationId "getSiteAccessTree" summary "Show the access rules on the published pages of a host" tags ["site"] x-idempotency.conflictStatus null x-idempotency.implementation "none" x-idempotency.replayStatus null x-idempotency.required false x-idempotency.scope [] x-idempotency.ttlSeconds null x-pagination.queryParameters [] x-pagination.supported false x-scope-semantics "ALL"