Skip to main content

Find Page

API operation: Open the endpoint in Scalar

Use GET /pages/{page_id} to retrieve one page. The operation is Page.find.

The route accepts a numeric page ID or a slug. An unauthenticated caller can retrieve only a page that is both enabled and public; an authenticated non-administrator is limited to enabled pages, while an administrator can retrieve pages regardless of those flags.

The params query can control relations such as author or metafields. See Pages model.

OpenAPI reference​

Operation: GET /pages/{page_id}

Path parameters

NameTypeRequiredDescription
page_idstringYes—

Query parameters

NameTypeRequiredDescription
paramsstringNoComma-separated list of fields. It is intersected with the model’s $fillable; an empty or invalid list returns all fields.

Responses

CodeDescription
200OK (Envelope)
400Bad Request (ErrorResponse)
401Unauthorized (ProjectAccessErrorResponse)
404Not Found
429Too Many Requests (ErrorResponse)
500Internal Server Error (ErrorResponse)
503Service Unavailable (ErrorResponse)
Open this operation in the API reference