Headless LMS

Invite a member or student into the active organization

POST
/api/organizations/invites

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/organizations/invites" \  -H "Content-Type: application/json" \  -d '{    "email": "user@example.com",    "role": "admin"  }'
{  "id": "string",  "email": "string",  "role": "admin",  "status": "string",  "expiresAt": "string",  "createdAt": "string"}
{  "error": "string",  "message": "string"}