Skip to main content
POST
/
api
/
v1
/
pages.json
Create Page
curl --request POST \
  --url https://api.launchmystore.io/api/v1/pages.json \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "<string>",
  "handle": "<string>",
  "body_html": "<string>",
  "author": "<string>",
  "published": true,
  "published_at": "<string>",
  "template_suffix": "<string>",
  "seo": {
    "title": "<string>",
    "description": "<string>"
  },
  "metafields": [
    {
      "namespace": "<string>",
      "key": "<string>",
      "value": "<string>",
      "type": "<string>"
    }
  ]
}
'
{
  "success": true,
  "data": {}
}

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.

Create Page

Creates a new page in the store.

Request

curl -X POST "https://api.launchmystore.io/api/v1/pages.json" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Shipping Policy",
    "body_html": "<h2>Shipping Information</h2><p>We ship worldwide...</p>",
    "published": true
  }'

Body Parameters

title
string
required
The page title
handle
string
URL-safe handle. Auto-generated from title if not provided.
body_html
string
Page content (HTML)
author
string
Author name
published
boolean
default:"false"
Whether the page is published
published_at
string
Publication date (ISO 8601). Defaults to now if published is true.
template_suffix
string
Custom template suffix (e.g., contact for page.contact.liquid)
seo
object
SEO metadata
metafields
array
Array of metafields to attach to the page

Response

success
boolean
Whether the request succeeded
data
object
The created page object

Example Response

{
  "success": true,
  "data": {
    "id": "page_new789",
    "title": "Shipping Policy",
    "handle": "shipping-policy",
    "body_html": "<h2>Shipping Information</h2><p>We ship worldwide...</p>",
    "author": null,
    "published": true,
    "published_at": "2024-03-20T10:00:00Z",
    "template_suffix": null,
    "seo": {
      "title": null,
      "description": null
    },
    "created_at": "2024-03-20T10:00:00Z",
    "updated_at": "2024-03-20T10:00:00Z"
  }
}

Error Codes

CodeDescription
UNAUTHORIZEDInvalid or missing access token
FORBIDDENApp doesn’t have write_content scope
VALIDATION_ERRORInvalid request body (see error details)
DUPLICATE_HANDLEA page with this handle already exists