Appearance
PWA Client API Documentation
Last Updated
2026-03-31
Overview
This documentation describes the API endpoints and integration flow for the PWA Editor client application. The PWA Editor enables users to create and customize photobook products through an interactive web-based interface.
General Flow
The typical integration follows this sequence:
- Fetch Markets - Retrieve available markets based on user location
- Load Products - Get photobook products for the selected market
- Create Project - Generate a project and receive a webview URL
- Handle Callbacks - Process channel messages during editing and checkout
- Process Payment - Handle payment on your platform
- Complete Job - Trigger rendering and printing after payment
- Order History - Display past orders to the user
Another example of an integration could be:
- Import Events as Campaigns - Pass existing event data and assets, PWA Backend generates the projects
- Handle Callbacks - Process channel messages during editing and checkout
- Process Payment - Handle payment on your platform
- Complete Job - Trigger rendering and printing after payment
Environments
The API has different endpoint structures depending on the API type:
eCommerce API
Used for: Markets, Products, Order History
Endpoint Format: https://{ecomm}.photobook.ai/api/v2/...
Replace {ecomm} with your assigned client identifier.
Environment Selection: Specified in request body
json
{
"key": "your-ecomm-key",
"env": "dev", // or "prod"
// ... other parameters
}Examples:
- Markets:
https://{ecomm}.photobook.ai/api/v2/misc/get-market.php - Products:
https://{ecomm}.photobook.ai/api/v2/products/list-product.php
PWA Backend API
Used for: Projects, Print/Complete Job, Project Management
Endpoint Format:
- Development:
https://pwa-api-dev.photobook.ai/v2/... - Production:
https://pwa-api.photobook.ai/v2/...
Authentication: Via X-Albumstory header (see Authentication)
Examples:
- Generate Project:
https://pwa-api-dev.photobook.ai/v2/generate - Print Job:
https://pwa-api-dev.photobook.ai/v2/print - List Projects:
https://pwa-api-dev.photobook.ai/v2/project/list
Getting Started
To integrate with the PWA Editor API, you'll need:
- Programmatic access keys (contact your account manager)
- Your unique client name for eCommerce API endpoints
- A webview/iframe implementation for displaying the editor
TIP
Start with the Authentication guide to understand how to secure your API requests.