API referenceOrganization

POST /organizations

Create a new organisation owned by the signed-in user and switch to it. Everybody gets one free organisation. Check user_me_orgAllowance first: when the free allowance is used up, the organisation is either created unpaid (paymentRequired: true, it ingests nothing until someone activates a paid plan in the dashboard) or refused with ORG_LIMIT_REACHED.

POST
/organizations

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

curl -X POST "https://example.com/organizations" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "slug": "string"  }'
{  "$schema": "https://example.com/schemas/CreateOrganizationOutputBody.json",  "hint": "string",  "organization": {    "id": "string",    "name": "string",    "slug": "string"  },  "paymentRequired": true}