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

# Pages

> Retrieve custom store pages such as About Us, Terms of Service, and other static content.

## GET /pages

List all active custom pages for the store.

### Authentication

None required.

### Example Request

<CodeGroup>
  ```bash cURL theme={null}
  curl "https://front.rmz.gg/api/pages"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://front.rmz.gg/api/pages");
  const data = await response.json();
  ```

  ```python Python theme={null}
  response = requests.get("https://front.rmz.gg/api/pages")
  data = response.json()
  ```

  ```php PHP theme={null}
  $response = Http::get("https://front.rmz.gg/api/pages");
  $data = $response->json();
  ```
</CodeGroup>

### Response

#### Success (200)

```json theme={null}
{
  "success": true,
  "data": [
    {
      "id": 1,
      "title": "About Us",
      "url": "about-us",
      "content": "<h1>About Our Store</h1><p>...</p>",
      "excerpt": "Learn more about our store",
      "meta_title": "About Us",
      "meta_description": "Learn more about our store",
      "is_active": true,
      "created_at": "2024-01-01T00:00:00.000000Z",
      "updated_at": "2024-06-15T10:30:00.000000Z"
    },
    {
      "id": 2,
      "title": "Terms of Service",
      "url": "terms-of-service",
      "content": "...",
      "excerpt": null,
      "meta_title": null,
      "meta_description": null,
      "is_active": true,
      "created_at": "2024-01-01T00:00:00.000000Z",
      "updated_at": "2024-06-15T10:30:00.000000Z"
    }
  ]
}
```

***

## GET /pages/{url}

Get the full content of a specific page by its URL slug.

### Authentication

None required.

### Path Parameters

| Parameter | Type   | Description                      |
| --------- | ------ | -------------------------------- |
| url       | string | Page URL slug (e.g., `about-us`) |

### Example Request

<CodeGroup>
  ```bash cURL theme={null}
  curl "https://front.rmz.gg/api/pages/about-us"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://front.rmz.gg/api/pages/about-us");
  const data = await response.json();
  ```

  ```python Python theme={null}
  response = requests.get("https://front.rmz.gg/api/pages/about-us")
  data = response.json()
  ```

  ```php PHP theme={null}
  $response = Http::get("https://front.rmz.gg/api/pages/about-us");
  $data = $response->json();
  ```
</CodeGroup>

### Response

#### Success (200)

```json theme={null}
{
  "success": true,
  "data": {
    "id": 1,
    "title": "About Us",
    "url": "about-us",
    "content": "<h1>About Our Store</h1><p>We are a leading provider of digital products...</p>",
    "excerpt": "Learn more about our store",
    "meta_title": "About Us",
    "meta_description": "Learn more about our store",
    "is_active": true,
    "created_at": "2024-01-01T00:00:00.000000Z",
    "updated_at": "2024-06-15T10:30:00.000000Z"
  }
}
```

#### Error Responses

| Status | Description                |
| ------ | -------------------------- |
| 404    | Page not found or inactive |
