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

# Get Page

> Retrieve a single page

# Get Page

Returns a single page by its ID.

## Request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X GET "https://api.launchmystore.io/api/v1/pages/8f3c2a91-7d4e-4b6a-9c1f-2e5d8a0b3c7e.json" \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
  ```

  ```javascript Node.js theme={null}
  const response = await fetch('https://api.launchmystore.io/api/v1/pages/8f3c2a91-7d4e-4b6a-9c1f-2e5d8a0b3c7e.json', {
    headers: {
      'Authorization': 'Bearer YOUR_ACCESS_TOKEN'
    }
  });
  ```
</CodeGroup>

## Path Parameters

<ParamField path="id" type="string" required>
  The unique page ID (`pageId`)
</ParamField>

## Response

<ResponseField name="status" type="integer">
  HTTP status code (`200` on success)
</ResponseField>

<ResponseField name="state" type="string">
  Outcome state, `success` on success
</ResponseField>

<ResponseField name="message" type="string">
  Human-readable message, `null` on success
</ResponseField>

<ResponseField name="data" type="object">
  Wrapper containing the `page` object

  <Expandable title="Page Object">
    <ResponseField name="pageId" type="string">
      Unique page ID (UUID)
    </ResponseField>

    <ResponseField name="id" type="string">
      Short numeric page identifier
    </ResponseField>

    <ResponseField name="title" type="string">
      Page title
    </ResponseField>

    <ResponseField name="handle" type="string">
      URL-safe page handle
    </ResponseField>

    <ResponseField name="content" type="string">
      Page content (HTML)
    </ResponseField>

    <ResponseField name="templateSuffix" type="string">
      Custom template suffix
    </ResponseField>

    <ResponseField name="link" type="string">
      Optional external link
    </ResponseField>

    <ResponseField name="showtitle" type="boolean">
      Whether the page title is shown on the storefront
    </ResponseField>

    <ResponseField name="seoTitle" type="string">
      Custom page title for search engines
    </ResponseField>

    <ResponseField name="seoDesc" type="string">
      Meta description for search engines
    </ResponseField>

    <ResponseField name="seoImage" type="string">
      Open Graph / social share image URL
    </ResponseField>

    <ResponseField name="createdAt" type="string">
      Creation timestamp (ISO 8601)
    </ResponseField>

    <ResponseField name="updatedAt" type="string">
      Last update timestamp (ISO 8601)
    </ResponseField>
  </Expandable>
</ResponseField>

## Example Response

```json theme={null}
{
  "status": 200,
  "state": "success",
  "message": null,
  "data": {
    "page": {
      "pageId": "8f3c2a91-7d4e-4b6a-9c1f-2e5d8a0b3c7e",
      "id": "473829",
      "title": "About Us",
      "handle": "about-us",
      "content": "<h2>Our Story</h2><p>Welcome to our store. We've been passionate about quality products since 2010...</p><h2>Our Mission</h2><p>We believe in sustainable, ethical commerce...</p>",
      "templateSuffix": null,
      "link": null,
      "showtitle": true,
      "seoTitle": "About Us | MyStore",
      "seoDesc": "Learn about our story, mission, and commitment to quality.",
      "seoImage": null,
      "storeId": "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
      "createdAt": "2024-01-01T10:00:00.000Z",
      "updatedAt": "2024-02-15T14:30:00.000Z"
    }
  },
  "pagination": null
}
```

## Error Response

When no page matches the ID for the store, the request returns a `404` envelope:

```json theme={null}
{
  "status": 404,
  "state": "error",
  "message": "Page not found",
  "data": null
}
```

## Error Codes

| Status | State   | Description                               |
| ------ | ------- | ----------------------------------------- |
| `401`  | `error` | Invalid or missing access token           |
| `403`  | `error` | App doesn't have `read_content` scope     |
| `404`  | `error` | Page with the specified ID does not exist |
