Store Page
Create or Update Web Page
Learn how to create or update a store page using the endpoint PUT /pages/.
PUT
Upsert web page
📌 Endpoint
PUT /pages/{domain}
Creates or updates the store page (upsert).
🔐 Authentication
- Private route.
- Requires header
Authorizationwith your API key and active plan.
🧾 Route parameters
🧍 Body (JSON)
✅ Example request
Standard snippet (cURL)
Use the cURL example from the Request example section above as the official snippet.📦 Success response (200)
⚠️ Possible errors
400 INVALID_DATA→ invalid body/parameter (htmloutside the 60 to 1,000,000 character range or invaliddomain)401 API_KEY_NOT_PROVIDED→Authorizationheader not sent401 INVALID_API_KEY→ invalid or not found API Key401 UNAUTHENTICATED→ session/user not authenticated403 USER_DISABLED→ user account disabled or deleted403 NO_ACTIVE_SUBSCRIPTION→ account has no active plan404 STORE_NOT_FOUND→ store not found or does not belong to the user429 RATE_LIMIT_EXCEEDED→ plan per-minute request limit exceeded500 INTERNAL_SERVER_ERROR→ internal error502 PAGE_SAVE_FAILED→ failed to save the HTML file to blob storage503 SERVICE_UNAVAILABLE→ service temporarily unavailable
Body
application/json
Page HTML (upsert by domain).