Create and send team invitation
Sends an invitation for an assignable organization role. Only owners may invite co-owners. Owners and admins may invite other roles; doctor is clinic-only.
Sends an invitation for an assignable organization role. Only owners may invite co-owners. Owners and admins may invite other roles; doctor is clinic-only.
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/team/invitations" \ -H "Content-Type: application/json" \ -d '{ "email": "user@example.com", "role": "owner" }'{ "success": true, "invitation": null}Cancel a pending invitation POST
Cancels a pending invitation so the recipient can no longer accept it. Organization owners and admins may cancel pending invitations.
List pending invitations GET
Returns all pending team invitations for the current organization, including the inviter's name and expiration date.