Create and send team invitation
Sends an invitation for an assignable organization role. Owners and admins may invite; doctor is clinic-only.
Sends an invitation for an assignable organization role. Owners and admins may invite; doctor is clinic-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/team/invitations" \ -H "Content-Type: application/json" \ -d '{ "email": "user@example.com", "role": "admin" }'{ "success": true, "invitation": null}Empty
Empty
Empty
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.