Skip to content

Start typing to search the documentation.

Using mock passports

Mock passports are how you exercise verification end-to-end without a real passport. Useful for development, CI, and demos.

Mock passports only work against flows in your test environment (i.e. sessions created with an sk_test_ key). They never verify against live flows. See Test vs. live.

Generating a mock passport

  1. On the Self app’s home screen, tap the settings gear in the top-right corner.

    Self app home screen with the settings gear in the top-right corner
  2. In Settings, tap Manage ID documents.

    Self app settings with the Manage ID documents option
  3. Tap Generate Mock Document. The Mock Document screen opens with a preview of the dev passport.

    Mock Document screen with the generate mock document data card and a dev passport preview
  4. Under Mock Document Parameters, set the attributes you want to test against (nationality, age, document expiry, OFAC status), then tap Generate Mock Document.

    Mock document parameters: nationality, age, document expiry, and OFAC status, with the Generate Mock Document button

The generated document appears as a card on the home screen, ready to use.

To try the whole loop end-to-end without writing any code, deploy a configuration and use the Try this flow link on its Configure tab; test sessions accept mock passports.

To stop using a mock passport, select a different document from the home screen. Real documents are added from the same Manage ID documents screen via Add New Document.

Was this page helpful?