Skip to main content
Authentication is new. Run every import in a sandbox application first, then import into your live application.
An import moves people from another identity platform to Didit Authentication. Their password, verified email, social sign-in links, authenticator app and organization roles move with them. Nothing changes for them until your application signs them in with Didit. Imports use your application’s Authentication management API with a console session that has write:authentication (or read:authentication to list them). They never use an end-user token or a verification API key. In the examples, MANAGEMENT_BASE is:

Two ways to import

Import a file

1. Upload

Each keep_* switch is true unless you send false. The call returns 202 with a job. An application keeps at most 5 uploaded files at a time.

2. Check the dry run

Every upload starts a dry run. It checks every person and writes nothing. Poll GET import-jobs/{id}/: A failed dry run lists its errors. Fix the file and upload it again.

3. Start the import

POST import-jobs/{id}/start/ imports what the dry run checked and returns 202.
  • People are imported in batches of 1,000. Each batch commits on its own.
  • One import runs per application at a time (import_running otherwise).
  • An interrupted import resumes after its last committed batch.
  • People already imported are skipped, so you can run the same file again.
  • The person who started the import gets an email when it finishes or stops.
The uploaded file is stored encrypted. It is deleted when the import ends, when its dry run fails, or 24 hours after a dry run that was never imported.

Import in batches

Send up to 1,000 people per request with an idempotency_key of up to 100 characters.
  • A dry run returns 200 with the result and writes nothing.
  • With dry_run: false, a successful import returns 201. A batch with any error returns 400 and imports nobody.
  • Repeating a committed request with the same key returns its recorded result. The same key with different content returns 400 {"idempotency_key": "different_payload"}.
  • Firebase parameters go in a firebase object: {signer_key, salt_separator, rounds, mem_cost}.
  • GET imports/ lists committed batches.

File format

JSON

An array of people, or an object whose users holds the array.

CSV

The same single-value columns, plus google_id, apple_id, github_id, microsoft_id, microsoft_tenant_id, organization_slug, organization_name and organization_role. A person in several organizations takes one line per organization.
Unknown fields or columns are errors, never ignored.

Duplicates and existing accounts

  • Lines with the same email become one person. An identical line is counted as a duplicate. A line with more links, organizations or an authenticator is merged.
  • Two different password hashes, authenticator secrets or organization roles for one person are errors. So is an external_id or a provider subject that two people claim.
  • If an account with that email already exists and an earlier import created it, the person is skipped (already_imported). If the person signed up on their own, it is an identity_conflict error. An import never changes an existing account.

Passwords

Firebase parameters are stored encrypted, for that application only. Any other format, or a cost above these limits, means the person needs a new password. After a person’s first successful sign-in, Didit stores their password again in its own format.

People without a usable password

When a person has no hash, or an unsupported one, a password attempt gets the normal wrong-password answer. Didit also emails them a link to set a new password (valid 30 minutes, at most once a day). This happens only when their email is verified, the account is not blocked and password sign-in is on. In the result, reset_required counts the people without a usable password. reset_emails counts those among them with a verified email: only they can be reached this way. People with an unverified email cannot sign in with a password. They can still sign in with an email code if you enable that method.
  • Social links are kept for providers your application has already configured, under its current client ID. A returning sign-in then needs no email proof. Google and GitHub subjects are global. Apple subjects are per developer team and Microsoft subjects are per app registration, so those links match only when your old platform used the same team or registration. Links to providers you have not configured are counted as social_unavailable and not imported.
  • Authenticator apps (TOTP secrets: SHA-1, 6 digits, 30 seconds) are stored encrypted. Imported people must use them as their second factor. They get no recovery codes.
  • Organizations that do not exist yet are created from their slug.
  • Passkeys cannot be imported. They belong to your old sign-in domain, so people add a new passkey after they sign in with Didit.

Results

Every dry run, batch and job returns the same result: Responses never contain password hashes, salts, authenticator secrets or field values.

Before you switch over

Test in your sandbox application:
  • sign-in with each password format you import,
  • the set-a-new-password email for a person without a usable hash,
  • social sign-in and authenticator codes for imported people,
  • running the same file twice.
Then check that each person’s vendor_data matches the value you use for their verifications and transactions.
Last modified on October 28, 2026