POST /users

POST /users

Verify authentication with Clerk Parse query parameters Build query Apply search filter Apply role filter Apply pagination Verify authentication with Clerk Parse and validate body Check if email already exists Generate invitation token Create invitation record Send invitation email (Supabase Auth will handle this) For now, return the invitation URL

Endpoint

POST /users

Authentication

This endpoint requires authentication. Include your authentication token in the request headers.

Query Parameters

ParameterTypeDescription
pagestringQuery parameter
limitstringQuery parameter
searchstringQuery parameter
rolestringQuery parameter

Error Responses

Status CodeError CodeDescription
401HTTP_401Unauthorized
403HTTP_403Forbidden
500HTTP_500Internal Server Error
500HTTP_500Internal Server Error
401HTTP_401Unauthorized
403HTTP_403Forbidden
422HTTP_422Error
409HTTP_409Error
500HTTP_500Internal Server Error
500HTTP_500Internal Server Error

Example Request

curl -X POST "https://api.allurelms.com/users" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'