/services/platforms/v1/projects/create
Auth
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
title |
string
max: 255 |
Yes | My New Project |
|
domain |
string|null
max: 191 |
No | example.com |
|
description |
string|null | No | A portfolio website for my design agency |
|
website_type |
string|null
business, portfolio, store, blog, restaurant, other |
No | business |
|
website_description |
string|null | No | A modern website for showcasing our services |
|
timezone |
string|null | No | Europe/Amsterdam |
|
language |
string|null
en, nl |
No | en |
|
product |
string|null | No | website_builder |
|
plan |
string|null | No | pro |
|
period |
string|null
year, month |
No | year |
|
trial |
boolean|null | No | true |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
mixed[] |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
message |
string | |
error |
boolean | |
data |
object | |
data.checkout_url |
string | |
data.session_id |
string | |
data.subscription_id |
string | |
data.requires_payment |
boolean | |
data.is_trial |
boolean |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
mixed[] |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
mixed[] |
| Field | Type | Description |
|---|---|---|
message |
string | Errors overview. |
errors |
object | A detailed description of each field that failed validation. |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
mixed[] |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
| Header | Type | Description | Example |
|---|---|---|---|
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 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
curl -X POST "https://api.wemasy.nl/api/services/platforms/v1/projects/create" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"title": "My New Project",
"domain": "example.com",
"description": "A portfolio website for my design agency",
"website_type": "business",
"website_description": "A modern website for showcasing our services",
"timezone": "Europe/Amsterdam",
"language": "en",
"product": "website_builder",
"plan": "pro",
"period": "year",
"trial": true
}'
fetch('https://api.wemasy.nl/api/services/platforms/v1/projects/create', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"title": "My New Project",
"domain": "example.com",
"description": "A portfolio website for my design agency",
"website_type": "business",
"website_description": "A modern website for showcasing our services",
"timezone": "Europe/Amsterdam",
"language": "en",
"product": "website_builder",
"plan": "pro",
"period": "year",
"trial": true
})})
.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/platforms/v1/projects/create', {
"title": "My New Project",
"domain": "example.com",
"description": "A portfolio website for my design agency",
"website_type": "business",
"website_description": "A modern website for showcasing our services",
"timezone": "Europe/Amsterdam",
"language": "en",
"product": "website_builder",
"plan": "pro",
"period": "year",
"trial": true
});
$data = $response->json();
import requests
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
data = {
"title": "My New Project",
"domain": "example.com",
"description": "A portfolio website for my design agency",
"website_type": "business",
"website_description": "A modern website for showcasing our services",
"timezone": "Europe/Amsterdam",
"language": "en",
"product": "website_builder",
"plan": "pro",
"period": "year",
"trial": true
}
r = requests.post("https://api.wemasy.nl/api/services/platforms/v1/projects/create", headers=headers, json=data)
print(r.json())