Request to join an organization
Submit a request to join an organization. Sends a notification to the organization's owners. Prevents duplicate requests.
Submit a request to join an organization. Sends a notification to the organization's owners. Prevents duplicate requests.
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/join-request" \ -H "Content-Type: application/json" \ -d '{ "organizationId": "string" }'{ "success": true, "joinRequest": { "id": "string", "status": "string", "createdAt": null }}Generate or rotate the organization's join code POST
Generates a fresh shareable join code, revoking any previous active code. Owners and admins only.
Create a new organization POST
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.