Platform Management API
POST /services/platforms/v1/workspaces/create Auth

Create Workspace

Request Body Required

FieldTypeRequiredDescriptionExample
title string
max: 191
Yes Display name shown in the avatar tooltip + dropdown + manage page.
color string|null No Optional hex color (#RGB or #RRGGBB). Frontend default is brand primary.

Responses

201
422
401
403
429
Resource created
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
workspace object
workspace.id integer
workspace.platforms_id integer
workspace.owner_id integer
workspace.title string
workspace.slug string
workspace.color string|null
workspace.created_at string|null (date-time)
workspace.project_count integer
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
Forbidden — insufficient permissions for this resource
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/platforms/v1/workspaces/create" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "string",
    "color": "string"
}'
fetch('https://api.wemasy.nl/api/services/platforms/v1/workspaces/create', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "title": "string",
    "color": "string"
})})
.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/workspaces/create', {
    "title": "string",
    "color": "string"
});
$data = $response->json();
import requests

headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Accept": "application/json"
}
data = {
    "title": "string",
    "color": "string"
}
r = requests.post("https://api.wemasy.nl/api/services/platforms/v1/workspaces/create", headers=headers, json=data)
print(r.json())
Response Example
{
    "workspace": {
        "id": 0,
        "platforms_id": 0,
        "owner_id": 0,
        "title": "string",
        "slug": "string",
        "color": "string",
        "created_at": "string",
        "project_count": 0
    }
}

Try It
Request Body Required

Export