cURL
curl --request POST \ --url http://localhost:3000/api/canary/authentication/organization/create \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "Acme Corp", "slug": "acme-corp" } '
{ "statusCode": 400, "message": [ "Invalid input data" ], "error": "Bad Request" }
Create a new organization
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The name of the organization
"Acme Corp"
The slug of the organization
"acme-corp"
The logo of the organization
"https://example.com/logo.png"
Metadata for the organization
{ "plan": "pro" }
Organization created successfully