EndpointsOrganizationsOrganizations
Create an organization for the current browser user
The API runs on your application instance. Schemas and field names come directly from the OpenAPI specification. Session-authenticated requests require a session on that instance.
POST
adminSessioncookie
authjs.session-token<token>Authenticated Auth.js browser session cookie; each operation declares its required permission. Not restricted to administrators. HTTPS deployments use the secure-prefixed cookie variant.
X-Organization-ID?stringOrganization membership selected for this request. User-bound credentials may select any active membership; standalone tokens may only repeat their pinned organization ID.
Format
uuidapplication/json- body
name*stringLength
1 <= length <= 160slug?stringOptional short Webapp URL slug; generated from the name when omitted.
Match
^[a-z0-9]+(?:-[a-z0-9]+)*$Length
1 <= length <= 48Organization created with the current user as admin
application/json- response
organization*curl -X POST 'https://inventory.example.com/api/v1/organizations' \ -H 'Content-Type: application/json' \ -d '{ "name": "string"}'Example Response
{ "organization": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "slug": "string", "role": "string", "roleName": "string", "isReadOnly": true, "allowNegativeStock": true, "canManage": true }}