List bulk import users
Paginated API to get bulk import users
GET
/appid-{appId}/bulk-import/usersAuthorization
api-keyAPI key · headerrequiredThe core service API token. If you are using a self-hosted core service and you have not generated a token, you can omit the header.
Path parameters
appIdstringrequiredThe application ID. Omit the entire `appid-{appId}` prefix to use `public`.
Query parameters
paginationTokenstringlimitnumberstatusbulkImportUserStatusAllowed:
NEWPROCESSINGFAILEDHeader parameters
cdi-versionstringX.Y of the X.Y.Z CDI version.
Responses
200Paginated Bulk Import Users
statusstatusOKAllowed:
OKusersbulkImportUserResponse[]Show propertiesHide properties
Array of
bulkImportUserResponseidbulkImportUserIdstatusbulkImportUserStatusAllowed:
NEWPROCESSINGFAILEDprimaryUserIdstringThe ID of the primary user created from this staged user, when available.
errorMessagestringThe reason the staged user failed to import, when the status is FAILED.
createdAttimeJoinedupdatedAttimeJoinedexternalUserIduserIduserMetadatauserMetadatashould be a JSON object (not a JSON literal nor an array)
userRolesbulkImportUserRole[]Show propertiesHide properties
Array of
bulkImportUserRolerolerolerequiredtenantIdstenantId[]requiredtotpDevicesbulkImportTotpDevice[]Show propertiesHide properties
Array of
bulkImportTotpDevicesecretKeystringrequiredskewnumberperiodnumberdeviceNamestringloginMethodsbulkImportUserEmailPasswordLoginMethod | bulkImportUserThirdPartyLoginMethod | bulkImportUserPasswordlessLoginMethod[]requiredmin items 1
Show propertiesHide properties
Array of
bulkImportUserEmailPasswordLoginMethod | bulkImportUserThirdPartyLoginMethod | bulkImportUserPasswordlessLoginMethodOne of:
bulkImportUserEmailPasswordLoginMethod
tenantIdstenantId[]List of tenant IDs this login method is associated with
isVerifiedbooleanIndicates whether the email is verified
isPrimarybooleanIndicates whether the login method is the primary login method
timeJoinedInMSSinceEpochintegerTime joined in milliseconds since the epoch
recipeIdstringrequiredAllowed:
emailpasswordemailemailrequiredpasswordHashpasswordHashplainTextPasswordstringhashingAlgorithmhashingAlgorithmAllowed:
argon2bcryptfirebase_scryptbulkImportUserThirdPartyLoginMethod
tenantIdstenantId[]List of tenant IDs this login method is associated with
isVerifiedbooleanIndicates whether the email is verified
isPrimarybooleanIndicates whether the login method is the primary login method
timeJoinedInMSSinceEpochintegerTime joined in milliseconds since the epoch
recipeIdstringrequiredAllowed:
thirdpartyemailemailrequiredthirdPartyIdthirdPartyIdrequiredthirdPartyUserIdthirdPartyUserIdrequiredbulkImportUserPasswordlessLoginMethod
tenantIdstenantId[]List of tenant IDs this login method is associated with
isVerifiedbooleanIndicates whether the email is verified
isPrimarybooleanIndicates whether the login method is the primary login method
timeJoinedInMSSinceEpochintegerTime joined in milliseconds since the epoch
recipeIdstringrequiredAllowed:
passwordlessemailemailphoneNumberphoneNumbernextPaginationTokenpaginationToken400error code 400
string401error code 401
string404error code 404
string500error code 500
stringTry it
Server
Authorization
Parameters
Request
curl -X GET "/appid-public/bulk-import/users" \
-H "api-key: YOUR_API_KEY"const response = await fetch("/appid-public/bulk-import/users", {
method: "GET",
headers: {
"api-key": "YOUR_API_KEY"
}
});import requests
response = requests.get(
"/appid-public/bulk-import/users",
headers={
"api-key": "YOUR_API_KEY"
},
)Response
{
"status": "OK",
"users": [
{
"id": "fa7a0841-b533-4478-9253-0fde890c576",
"status": "NEW",
"primaryUserId": "string",
"errorMessage": "string",
"createdAt": 1623918032231,
"updatedAt": 1623918032231,
"externalUserId": "fa7a0841-b533-4478-95533-0fde890c3483",
"userMetadata": {
"preferences": {
"theme": "dark"
},
"notifications": {
"email": true
},
"todos": [
"example"
]
},
"userRoles": [
{
"role": "admin",
"tenantIds": [
"customer1"
]
}
],
"totpDevices": [
{
"secretKey": "2PRXZWZAYYDAWCD",
"skew": 0,
"period": 30,
"deviceName": "My Authy App"
}
],
"loginMethods": [
{
"tenantIds": [
"customer1"
],
"isVerified": true,
"isPrimary": true,
"timeJoinedInMSSinceEpoch": 0,
"recipeId": "emailpassword",
"email": "[email protected]",
"passwordHash": "$argon2d$v=19$m=12,t=3,p=1$aGI4enNvMmd0Zm0wMDAwMA$r6p7qbr6HD+8CD7sBi4HVw",
"plainTextPassword": "passwordExample",
"hashingAlgorithm": "argon2"
}
]
}
],
"nextPaginationToken": "ZmE3YTA4ND...OzE2MjM5MTgwMzIyMzE="
}"string""Invalid API key""Not Found""Internal Error"