List Pages
curl --request GET \
--url https://api.launchmystore.io/api/v1/pages.json \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/pages.json"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.launchmystore.io/api/v1/pages.json', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.launchmystore.io/api/v1/pages.json",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.launchmystore.io/api/v1/pages.json"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.launchmystore.io/api/v1/pages.json")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/pages.json")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 123,
"state": "<string>",
"message": "<string>",
"data.pages": [
{
"pageId": "<string>",
"id": "<string>",
"title": "<string>",
"handle": "<string>",
"content": "<string>",
"templateSuffix": "<string>",
"link": "<string>",
"showtitle": true,
"seoTitle": "<string>",
"seoDesc": "<string>",
"seoImage": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"data.pagination": {}
}Pages
List Pages
Retrieve a list of pages
GET
/
api
/
v1
/
pages.json
List Pages
curl --request GET \
--url https://api.launchmystore.io/api/v1/pages.json \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/pages.json"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.launchmystore.io/api/v1/pages.json', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.launchmystore.io/api/v1/pages.json",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.launchmystore.io/api/v1/pages.json"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.launchmystore.io/api/v1/pages.json")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/pages.json")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 123,
"state": "<string>",
"message": "<string>",
"data.pages": [
{
"pageId": "<string>",
"id": "<string>",
"title": "<string>",
"handle": "<string>",
"content": "<string>",
"templateSuffix": "<string>",
"link": "<string>",
"showtitle": true,
"seoTitle": "<string>",
"seoDesc": "<string>",
"seoImage": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"data.pagination": {}
}List Pages
Returns a paginated list of pages in the store, ordered by creation date (newest first).Request
curl -X GET "https://api.launchmystore.io/api/v1/pages.json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Query Parameters
integer
default:"1"
Page number for pagination
integer
default:"50"
Number of items per page
Response
integer
HTTP status code (
200 on success)string
Outcome state,
success on successstring
Human-readable message,
null on successarray
Array of page objects
Show Page Object
Show Page Object
string
Unique page ID (UUID)
string
Short numeric page identifier
string
Page title
string
URL-safe page handle
string
Page content (HTML)
string
Custom template suffix
string
Optional external link
boolean
Whether the page title is shown on the storefront
string
Custom page title for search engines
string
Meta description for search engines
string
Open Graph / social share image URL
string
Creation timestamp (ISO 8601)
string
Last update timestamp (ISO 8601)
object
Pagination information (
page, limit, total, hasMore)Example Response
{
"status": 200,
"state": "success",
"message": null,
"data": {
"pages": [
{
"pageId": "8f3c2a91-7d4e-4b6a-9c1f-2e5d8a0b3c7e",
"id": "473829",
"title": "About Us",
"handle": "about-us",
"content": "<p>Welcome to our store...</p>",
"templateSuffix": null,
"link": null,
"showtitle": true,
"seoTitle": "About Us | MyStore",
"seoDesc": "Learn about our story.",
"seoImage": null,
"storeId": "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
"createdAt": "2024-01-01T10:00:00.000Z",
"updatedAt": "2024-02-15T14:30:00.000Z"
},
{
"pageId": "2b7e1d44-9a3c-4f8e-b1d2-6c0a9e5f3b21",
"id": "918273",
"title": "Contact Us",
"handle": "contact-us",
"content": "<p>Get in touch...</p>",
"templateSuffix": "contact",
"link": null,
"showtitle": true,
"seoTitle": null,
"seoDesc": null,
"seoImage": null,
"storeId": "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
"createdAt": "2024-01-01T10:00:00.000Z",
"updatedAt": "2024-01-15T09:00:00.000Z"
}
],
"pagination": {
"page": 1,
"limit": 50,
"total": 8,
"hasMore": false
}
},
"pagination": null
}
Error Codes
| Status | State | Description |
|---|---|---|
401 | error | Invalid or missing access token |
403 | error | App doesn’t have read_content scope |