Website Builder API
POST /services/websites/v1/projects/clone-tree-export Auth

Export a project's full hierarchy, categorised by product

Returns: { project, sitebuilder: {customization, layouts, templates, pages, menus, structures}, forms: {forms}, webshop: {...}, manifest, exported_at }

Request Body Required

FieldTypeRequiredDescriptionExample
target_project_id integer Yes 104449

Responses

200
404
403
422
401
429
Customization is a SHAPED VIEW of the website metas (colors, fonts, buttons, tracking codes, etc.). It lives on the `project` row instead of `sitebuilder` because those same metas are already surfaced flat in `project.project_meta` — keeping it next to the raw bag makes the relationship explicit and prevents the local mirror from duplicating styling under two paths.
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
FieldTypeDescription
project object
project.id integer
project.title string|null
project.full_domain_name string|null
project.platform_id integer|null
project.language string
project.logo_image string
project.favicon_image string
project.is_theme boolean
project.is_active string|null
project.customization mixed Shaped customization (subset of project_meta, organized like `websites/get` returns it — colors/fonts/buttons/etc grouped).
project.project_meta string Raw bag (every key/value). Source of truth for round-trip.
sitebuilder object
sitebuilder.layouts object[]
sitebuilder.templates object[]
sitebuilder.pages object[]
sitebuilder.menus object[]
sitebuilder.structures object[]
forms object
forms.forms object[]
webshop string[]
manifest mixed[]
exported_at string
Resource not found
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
FieldTypeDescription
error boolean
message string
data mixed[]
Forbidden — insufficient permissions
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
FieldTypeDescription
error boolean
message string
data mixed[]
Validation error
FieldTypeDescription
message string Errors overview.
errors object A detailed description of each field that failed validation.
Unauthenticated — missing or invalid Bearer token
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
FieldTypeDescription
error boolean
message string
Too Many Requests — rate limit exceeded
Headers
HeaderTypeDescriptionExample
X-RateLimit-Limit integer Maximum number of requests allowed per minute 60
X-RateLimit-Remaining integer Number of requests remaining in the current window 57
Retry-After integer Seconds until the rate limit resets 60
FieldTypeDescription
error boolean
message string
Base URL
https://api.wemasy.nl/api
Authentication

Request Sample
cURL
JS
PHP
Python
curl -X POST "https://api.wemasy.nl/api/services/websites/v1/projects/clone-tree-export" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "target_project_id": 104449
}'
fetch('https://api.wemasy.nl/api/services/websites/v1/projects/clone-tree-export', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "target_project_id": 104449
})})
.then(r => r.json())
.then(data => console.log(data));
$response = Http::withToken('YOUR_API_TOKEN')
    ->accept('application/json')
    ->post('https://api.wemasy.nl/api/services/websites/v1/projects/clone-tree-export', {
    "target_project_id": 104449
});
$data = $response->json();
import requests

headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Accept": "application/json"
}
data = {
    "target_project_id": 104449
}
r = requests.post("https://api.wemasy.nl/api/services/websites/v1/projects/clone-tree-export", headers=headers, json=data)
print(r.json())
Response Example
{
    "project": {
        "id": 0,
        "title": "string",
        "full_domain_name": "string",
        "platform_id": 0,
        "language": "string",
        "logo_image": "string",
        "favicon_image": "string",
        "is_theme": true,
        "is_active": "string",
        "customization": "string",
        "project_meta": "string"
    },
    "sitebuilder": {
        "layouts": [],
        "templates": [],
        "pages": [],
        "menus": [],
        "structures": []
    },
    "forms": {
        "forms": []
    },
    "webshop": [],
    "manifest": [],
    "exported_at": "string"
}

Try It
Request Body Required

Export