Frontend API
Create a new organization
cURL
curl --request POST \ --url https://api.wacht.dev/organizations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "display_name": "<string>", "description": "<string>" } '
{ "id": "<string>", "name": "Acme Corporation", "display_name": "Acme Corp", "slug": "acme-corp", "description": "<string>", "logo_url": "<string>", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "member_count": 25, "workspace_count": 5 }
JWT Bearer token authentication using the Authorization header
Organization created successfully
(i64 formatted as string)
"Acme Corporation"
"Acme Corp"
"acme-corp"
25
5