Create a new organization
Create a new lab or clinic organization. The current user becomes the owner. Labs get default treatment phases and steps. Sets the new org as the user's active organization.
Create a new lab or clinic organization. The current user becomes the owner. Labs get default treatment phases and steps. Sets the new org as the user's active organization.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/organization/create" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "type": "clinic" }'{ "success": true, "organization": { "id": "string", "name": "string", "slug": "string", "organizationType": "string" }}Request to join an organization POST
Submit a request to join an organization. Sends a notification to the organization's owners. Prevents duplicate requests.
Create organization billing portal session POST
Creates a Stripe billing portal session for the active lab organization so owners can update cards and manage subscription billing.