Skip to Content
StoreOSv0.27.1
Storefront GraphQL APIReferenceQueries

Page

Requires a signed-in staff user. Needs the `Pages` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).

QUERYpage(id: String!): StorefrontPage

Requires a signed-in staff user. Needs the Pages read permission. Send the x-tenant header (the gateway sets it from your API key).

Arguments

id*String!

Returns

  1. page
_id*ID!
title*String!
slug*String!
content?String
image?
isActive?Boolean
createdAt?DateTime

A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.

updatedAt?DateTime

A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.

Example Request
query Page($id: String!) {  page(id: $id) {    _id    title    slug    content    image {      fileAssetId      provider      key      external      alt    }    isActive    createdAt    updatedAt  }}
Variables
{  "id": "string"}
Example Response
{  "data": {    "page": {      "_id": "1",      "title": "string",      "slug": "string",      "content": "string",      "image": {        "fileAssetId": "1",        "provider": "CLOUDINARY",        "key": "string",        "external": "string",        "alt": "string"      },      "isActive": true,      "createdAt": "<DateTime>",      "updatedAt": "<DateTime>"    }  }}