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
| Parameter | Type | Description |
|---|---|---|
page | string | Query parameter |
limit | string | Query parameter |
search | string | Query parameter |
role | string | Query parameter |
Error Responses
| Status Code | Error Code | Description |
|---|---|---|
| 401 | HTTP_401 | Unauthorized |
| 403 | HTTP_403 | Forbidden |
| 500 | HTTP_500 | Internal Server Error |
| 500 | HTTP_500 | Internal Server Error |
| 401 | HTTP_401 | Unauthorized |
| 403 | HTTP_403 | Forbidden |
| 422 | HTTP_422 | Error |
| 409 | HTTP_409 | Error |
| 500 | HTTP_500 | Internal Server Error |
| 500 | HTTP_500 | Internal Server Error |
Example Request
curl -X POST "https://api.allurelms.com/users" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'