Endpoints
| Method | Path | Description |
|---|---|---|
GET | /api/v2/pages?sectionId={section_id} | List pages in a section |
POST | /api/v2/pages | Create pages |
PATCH | /api/v2/pages/{page_id} | Update a page |
DELETE | /api/v2/pages/{page_id} | Delete a page and its content |
Access levels
| Value | Behaviour |
|---|---|
visible | Shown to everyone |
restricted | Requires password or sign-in |
locked | Visible but not accessible |
hidden | Not shown to the buyer |
List pages
GET /api/v2/pages?sectionId={section_id}
curl "https://api.flowla.com/api/v2/pages?sectionId=<section_id>" \
-H "x-flowla-api-key: YOUR_API_KEY"
import requests
response = requests.get(
"https://api.flowla.com/api/v2/pages",
headers={"x-flowla-api-key": "YOUR_API_KEY"},
params={"sectionId": "<section_id>"},
)
const res = await fetch(
"https://api.flowla.com/api/v2/pages?sectionId=<section_id>",
{ headers: { "x-flowla-api-key": "YOUR_API_KEY" } }
);
Create pages
POST /api/v2/pages
Create one or more pages in a single request.
string
required
The section to add pages to.
array
required
Example
{
"sectionId": "<section_id>",
"pages": [
{ "title": "Plans", "access": "visible" },
{ "title": "FAQ", "access": "visible" }
]
}
curl -X POST https://api.flowla.com/api/v2/pages \
-H "x-flowla-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"sectionId": "<section_id>",
"pages": [
{ "title": "Plans", "access": "visible" },
{ "title": "FAQ", "access": "visible" }
]
}'
requests.post(
"https://api.flowla.com/api/v2/pages",
headers={"x-flowla-api-key": "YOUR_API_KEY"},
json={
"sectionId": "<section_id>",
"pages": [
{"title": "Plans", "access": "visible"},
{"title": "FAQ", "access": "visible"},
],
},
)
await fetch("https://api.flowla.com/api/v2/pages", {
method: "POST",
headers: {
"x-flowla-api-key": "YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
sectionId: "<section_id>",
pages: [
{ title: "Plans", access: "visible" },
{ title: "FAQ", access: "visible" },
],
}),
});
Update a page
PATCH /api/v2/pages/{page_id}
string
New display title.
"visible" | "restricted" | "locked" | "hidden"
New access level.
Example
{ "title": "Questions & Answers", "access": "visible" }
curl -X PATCH https://api.flowla.com/api/v2/pages/<page_id> \
-H "x-flowla-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title": "Questions & Answers"}'
requests.patch(
"https://api.flowla.com/api/v2/pages/<page_id>",
headers={"x-flowla-api-key": "YOUR_API_KEY"},
json={"title": "Questions & Answers"},
)
Delete a page
DELETE /api/v2/pages/{page_id}
Deletes the page and all its groups and blocks permanently.
curl -X DELETE https://api.flowla.com/api/v2/pages/<page_id> \
-H "x-flowla-api-key: YOUR_API_KEY"
requests.delete(
"https://api.flowla.com/api/v2/pages/<page_id>",
headers={"x-flowla-api-key": "YOUR_API_KEY"},
)