Bulk User Invitation
Invite multiple users to your organization at once with metadata
This endpoint requires organization admin privileges. Only users with the org:admin
role can bulk invite users to their organization.
Authentication
Bearer token for authentication. Must be from a user with org:admin
role.
Body
Array of invitation objects (1-50 invitations per request)
Response
Whether all invitations were successfully created
Total number of invitations requested
Number of invitations successfully created
Number of invitations that failed to create
Array of successful invitation results
Array of failed invitations (only present if there were failures)
Examples
Error Codes
Bad Request - Invalid request data or validation errors
Unauthorized - Invalid or missing authentication
Forbidden - User is not an admin in the organization
Method Not Allowed - Only POST requests are accepted
Multi-Status - Some invitations succeeded, others failed (partial success)
Features
Simple & Clean: Just provide emails and metadata - we handle all the Clerk complexity for you.
- Email Notifications: Always sent automatically
- Existing Users: Won’t cause errors (re-invitations work)
- Expiration: Standard 30-day expiration
- Redirect: Users go to your app’s default sign-up flow
Metadata
You can set user metadata during invitation:
- User roles (
role: "manager"
) - Department info (
department: "engineering"
) - Team assignments (
team: "backend"
) - Custom properties (any key-value pairs)
Metadata is stored as publicMetadata
in Clerk and becomes accessible to both frontend and backend after user signs up.
For sensitive data that should only be server-accessible, set it after signup using Clerk webhooks.
Limits
- Batch Size: 1-50 invitations per request
- Email Validation: All email addresses must be valid
- Rate Limiting: Subject to Clerk’s API rate limits
- Expiration: Invitations expire after 30 days