Site Studio — Pages
9 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1
List all pages for a funnel ordered by sort_order#
GET
/funnels/{funnelId}/pagesTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
funnelIdPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/funnels/{funnelId}/pages" \
-H "Authorization: Bearer $XISUITE_TOKEN"Create a new page in a funnel#
POST
/funnels/{funnelId}/pagesTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
funnelIdPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
namePflicht | string | Page name |
path_name | string | URL path segment. Empty string for the landing page. Use 'about' or 'pricing/monthly' for sub-pages. |
Antworten
- 201Erstellt
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/funnels/{funnelId}/pages" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"…"}'Get a single page by ID#
GET
/funnels/{funnelId}/pages/{pageId}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
funnelIdPflicht | Pfad | string | – |
pageIdPflicht | Pfad | string | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/funnels/{funnelId}/pages/{pageId}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Update page metadata (name, path, SEO, published)#
PUT
/funnels/{funnelId}/pages/{pageId}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
funnelIdPflicht | Pfad | string | – |
pageIdPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
name | string | – |
path_name | string | URL path segment (cannot change landing page path) |
published | boolean | – |
seo_title | object | – |
seo_description | object | – |
seo_image | object | – |
Antworten
- 200OK
Beispiel (cURL)
curl -X PUT "https://xapi.ambertech.cloud/api/v1/funnels/{funnelId}/pages/{pageId}" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"…","path_name":"…","published":true}'Delete a page (cannot delete the last page of a funnel)#
DELETE
/funnels/{funnelId}/pages/{pageId}TokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
funnelIdPflicht | Pfad | string | – |
pageIdPflicht | Pfad | string | – |
Antworten
- 204Kein Inhalt
Beispiel (cURL)
curl -X DELETE "https://xapi.ambertech.cloud/api/v1/funnels/{funnelId}/pages/{pageId}" \
-H "Authorization: Bearer $XISUITE_TOKEN"Save the page editor content (EditorElement tree)#
PUT
/funnels/{funnelId}/pages/{pageId}/contentTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
funnelIdPflicht | Pfad | string | – |
pageIdPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
contentPflicht | string[] | EditorElement tree — array with a single __body root element |
Antworten
- 200OK
Beispiel (cURL)
curl -X PUT "https://xapi.ambertech.cloud/api/v1/funnels/{funnelId}/pages/{pageId}/content" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"content":[]}'Duplicate a page with a unique path#
POST
/funnels/{funnelId}/pages/{pageId}/duplicateTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
funnelIdPflicht | Pfad | string | – |
pageIdPflicht | Pfad | string | – |
Antworten
- 201Erstellt
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/funnels/{funnelId}/pages/{pageId}/duplicate" \
-H "Authorization: Bearer $XISUITE_TOKEN"Change the path_name of a page#
PUT
/funnels/{funnelId}/pages/{pageId}/moveTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
funnelIdPflicht | Pfad | string | – |
pageIdPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
newPathPflicht | string | New path_name for the page (e.g. "pricing/monthly"). Cannot move the landing page. |
Antworten
- 200OK
Beispiel (cURL)
curl -X PUT "https://xapi.ambertech.cloud/api/v1/funnels/{funnelId}/pages/{pageId}/move" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"newPath":"…"}'Reorder pages within a funnel#
PUT
/funnels/{funnelId}/pages/reorderTokenParameter
| Name | Ort | Typ | Beschreibung |
|---|---|---|---|
funnelIdPflicht | Pfad | string | – |
Request-Body
| Name | Typ | Beschreibung |
|---|---|---|
pagesPflicht | PageOrderItem[] | – |
Antworten
- 204Kein Inhalt
Beispiel (cURL)
curl -X PUT "https://xapi.ambertech.cloud/api/v1/funnels/{funnelId}/pages/reorder" \
-H "Authorization: Bearer $XISUITE_TOKEN" \
-H "Content-Type: application/json" \
-d '{"pages":[]}'