Niva's embeddable document upload widget collects files directly from your users and displays upload and validation results. Use it inside your own onboarding flow, with your own document labels and instructions.For a custom upload interface, use the Public Documents API.
Call Create new submission from your backend using a private API key. Keep the returned id, and pass its token to your frontend for the applicant who owns that submission.The submission token expires 24 hours after issue. Your backend can call Get submission for a fresh one.
Create a public API key in Settings › API Keys. The widget needs both that key (ntpub_…) and the submission token.
NOTE
Keep private API keys (nt_…) on your server. A public API key and a submission token serve different purposes; neither replaces the other. See Authentication.
This example collects an incorporation deed for a Mexican submission:
Replace the credentials and choose the correct document configuration for the submission's market. Widget attribute names and Mexican document identifiers differ from HTTP API field names. See Document upload widget for the complete configuration, events, form validation, and examples for other markets.The widget uploads documents; your backend still needs to call Run business verification when collection is complete.