Generate or rotate the organization's join code
Generates a fresh shareable join code, revoking any previous active code. Owners and admins only.
Generates a fresh shareable join code, revoking any previous active code. Owners and admins only.
__Secure-guidelab-prod.session_token<token>
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-code" \ -H "Content-Type: application/json" \ -d '{}'{ "joinCode": { "code": "string", "role": "staff", "expiresAt": "string", "maxUses": 0, "useCount": 0, "createdAt": "string" }}Empty
Empty
Empty
Empty
Check organization slug availability GET
Check whether an organization slug is already taken. Requires user authentication. Used during onboarding.
Request to join an organization POST
Submit a request to join an organization. Sends a notification to the organization's owners. Prevents duplicate requests.