Skip to main content
The Bulk Import API provides endpoints for importing large numbers of users into SuperTokens. This is useful when migrating from another authentication system.

Key Features

  • Batch user import with validation
  • Support for multiple authentication methods (email/password, passwordless, social login)
  • Asynchronous processing for large imports
  • Status tracking and error reporting
  • User role and metadata import
  • Tenant assignment support

Import Process

Batch Import

  1. Prepare user data with required fields
  2. Submit batch via /bulk-import/users (up to 10,000 users per request)
  3. Users are queued with β€œNEW” status
  4. Background processing imports users asynchronously
  5. Monitor progress via status endpoints

Direct Import

  1. Prepare single user data
  2. Submit via /bulk-import/import
  3. User is imported synchronously
  4. Immediate success or error response

Base Path

All Bulk Import endpoints are prefixed with /bulk-import

Limitations

  • Not supported with in-memory database
  • Maximum 10,000 users per batch request
  • All endpoints are app-specific

Import

Add users for bulk import

Status

Check import status and progress