# Pages API

## **Pages API**

The Pages API provides access to essential pages on the e-commerce platform, such as About company, Terms and Conditions, Privacy Policy, and Refund Policy. These pages contain important information that users need to be aware of while using the platform. The API allows users to retrieve the content of these pages in different languages based on the provided language code.

<figure><img src="https://3686328336-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd1Iq7THDAagTQzeC9rTN%2Fuploads%2FjKqJatTlh55E809EtHLe%2Fimage.png?alt=media&#x26;token=b7b60aa0-b5de-4ab8-8752-e7d9e5ad436c" alt=""><figcaption><p><strong>Pages in app</strong> </p></figcaption></figure>

### **Endpoint**

* `{{baseurl}}/api/v1/pages`

### **Method**

* **GET**

### **Request Parameters**

* lang\_code (optional): A two-letter language code (e.g., "en" for English, "es" for Spanish, etc.) to retrieve the content of the pages in a specific language. If not provided, the default language will be used.

### **Authorization**&#x20;

No authorization is required to access the pages. The API is publicly accessible.

### **Response Format**&#x20;

The API responds with a JSON object containing the content of the requested pages. Each page is represented by a separate key-value pair, with the page title as the key and the page content as the value.

Example Response:

```json
{
    "success": true,
    "data": [
        {
            "id": 1,
            "title": "About Us",
            "description": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>"
        },
        {
            "id": 2,
            "title": "Privacy Policy",
            "description": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>"
        },
        {
            "id": 7,
            "title": "Terms",
            "description": "<p>Using Lorem ipsum to focus attention on graphic elements in a webpage design proposal · One of the earliest examples of the Lorem ipsum placeholder text on 1960s advertising. In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of</p>"
        },
        {
            "id": 8,
            "title": "Refund Policy",
            "description": "<p>Using Lorem ipsum to focus attention on graphic elements in a webpage design proposal · One of the earliest examples of the Lorem ipsum placeholder text on 1960s advertising. In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of</p>"
        }
    ],
    "message": "Success",
    "status_code": 200
}
```
