Import Users using User Import API
Use the user import API to bulk import users from external systems to your Authgear project
User Import API
Endpoints
Initiate Import
POST - /_api/admin/users/import
HTTP/1.1
Host: <Your Authgear Project domain>
Authorization: Bearer <Admin API JWT Token>
Content-type: application/json
Body: {
"identifier": "email",
"records": [
{
"email": "user@example.com",
"email_verified": true,
"password": {
"type": "bcrypt",
"password_hash": "$2a$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy"
}
}
]
}
Check Status
Usage Example
Prerequisites
Step 1: Get Admin API JWT
Step 2: Import Users from a JSON Document
Step 3: Get the Status of the Import Task
Last updated
Was this helpful?