GuideLab API

Generate or rotate the organization's join code

Generates a fresh shareable join code, revoking any previous active code. Owners and admins only.

POST
/organization/join-code

Generates a fresh shareable join code, revoking any previous active code. Owners and admins only.

Authorization

__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