Technical
Upload KYB Documents via the Didit API: Formats and Limits
The Didit KYB upload endpoint accepts PDF up to 50 MB, JPG, JPEG, PNG, TIFF and WebP up to 6 MB, or a ZIP of them. Send a protected PDF's password in document_passwords when you upload through the API.

Contents
In this guide
Jump to the part you need.
Teams collecting company paperwork through their own front end need one route: the KYB upload documents endpoint. It accepts PDFs up to 50 MB, photos up to 6 MB in JPG, JPEG, PNG, TIFF or WebP, or a ZIP archive, and takes a protected PDF's open password in document_passwords. Collection costs $0.20 per workflow step. One caveat: each file lands in one of five document groups, and the group categorizes the evidence and feeds the aggregate documents status.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
The short answer
| Item | Rule |
|---|---|
| Accepted formats | PDF, JPG, JPEG, PNG, TIFF, WebP, or a ZIP archive of those files |
| Size limits | PDF up to 50 MB, photos up to 6 MB, measured before compression |
| Password-protected PDFs | Send the open password in document_passwords on the upload request |
| Document groups | LEGAL_PRESENCE, COMPANY_DETAILS, OWNERSHIP_STRUCTURE, REPRESENTATIVES_AUTHORIZATION, OTHER |
| Price | $0.20 per document-collection step, however many files that step holds |
| Document statuses | Not Finished, Approved, Declined, In Review, Resub Requested |
| Where the result appears | document_verifications[] in GET /v3/session/<session_id>/decision/ |
Start free in the sandbox at https://business.didit.me/, with no sales call. If you also want an AI assistant to drive Didit calls, connect it through the Didit MCP server. Every line price lives at didit.me/pricing.

What the endpoint does, and what it does not
The upload route attaches evidence to a Business Verification session. It does not create the session. You create the session first from a KYB workflow, and the session is the container that holds the registry check, the key people, the AML screenings and the documents. Once the files are in, Didit runs OCR on them, extracts company names, registration numbers, addresses, financial figures and shareholder roles, then cross-references that data against the registry lookup, against what the business entered at session creation, and against your other uploaded files. Inconsistencies are flagged for analyst review.
Two things surprise teams the first time. First, we charge per step, not per file, so a ZIP of forty certificates costs the same as one PDF inside the same step. Second, the upload does not fire data.updated. That event covers reviewer edits to registry data or key people, and registry changes; the docs state it is not sent for document uploads or key people submissions. Poll the decision or follow status.updated instead.

Accepted formats and size limits
| File type | Limit | Notes |
|---|---|---|
| Up to 50 MB | Multi-page filings, certificates and statements all fit in one file | |
| JPG, JPEG, PNG, TIFF, WebP | Up to 6 MB per photo | Sizes are checked before Didit compresses the image |
| ZIP archive | Archive of the formats above | Useful when a company sends a folder of filings at once |
As general preparation guidance, not a platform limit: when a file is too large for the limit, compress it or split the PDF by section rather than dropping pages, so the full filing stays together.
The five document groups
Didit organizes uploaded documents into four structured groups, plus a catch-all group for anything it cannot confidently classify. The group categorizes the evidence, drives the per-group counters an analyst reads, and feeds the aggregate documents status on the business session.
Group (document_group) | What it proves | Recognised subtypes |
|---|---|---|
LEGAL_PRESENCE | The company legally exists | CERTIFICATE_OF_INCORPORATION, CERTIFICATE_OF_GOOD_STANDING, CERTIFICATE_OF_INCUMBENCY, REGISTRY_EXCERPT, BUSINESS_LICENSE, TAX_REGISTRATION |
COMPANY_DETAILS | The company's current details | CONFIRMATION_STATEMENT, ANNUAL_RETURN, STATEMENT_OF_INFORMATION |
OWNERSHIP_STRUCTURE | The ownership chain | SHAREHOLDER_REGISTRY, MEMORANDUM_OF_ASSOCIATION, ARTICLES_OF_ASSOCIATION |
REPRESENTATIVES_AUTHORIZATION | Authority to act for the company | DIRECTOR_REGISTRY, POWER_OF_ATTORNEY, TRUST_AGREEMENT |
OTHER | Anything Didit cannot confidently classify | UNKNOWN |
Each group tracks its own progress with counters: total, approved, pending, declined, in_review, other and missing. The business session's overall documents status aggregates across all groups. If your compliance process needs a group that is not in the run, the counter shows it as missing, which is exactly what your review screen should surface.
Password-protected PDFs and document_passwords
Filings sometimes arrive as encrypted PDFs. For a password-protected PDF, send the password in document_passwords when you upload through the API.
When the PDF is protected, supply that password in document_passwords when you upload through the API.
If you never receive a password and the file stays locked, ask for an unlocked copy or a different document from the same group.
Before you upload: prerequisites
| Requirement | What you need | Where it comes from |
|---|---|---|
| Plan | Any plan. Sandbox testing is free and unlimited; the Free plan gives $10 of monthly credit to organizations that sign up with a work email | didit.me/pricing |
| Application | A Didit application with KYB enabled | business.didit.me |
| API key | New keys commonly start with sk_test_ or sk_live_; older keys may have no prefix and still work | Developers, then API keys |
| Workflow | A KYB workflow id with the Documents feature enabled and the document types you require selected | Workflows, then Create workflow |
| Key access | If you hand a scoped key to a service instead of the Primary key, that key must be allowed to reach the routes it calls, otherwise it is refused | Developers, then API keys |
| Webhook endpoint | Optional, but recommended: a URL reachable from the internet, subscribed with webhook_version set to v3 | POST /v3/webhook/destinations/ |
Register the webhook with POST /v3/webhook/destinations/ and verify the X-Signature-V2 header, an HMAC-SHA256 of the canonical JSON, before you trust an event. De-duplicate on event_id and answer within 5 seconds.
Step by step: upload KYB documents through the API
Copy your API key. Sign in to the Didit Business Console, pick the Application from the dropdown at the top, open Developers then API keys, and copy the Primary key. New keys start with
sk_live_orsk_test_followed by 43 URL-safe characters, and keys created before that format have no prefix and keep working, so never validate a key by its prefix. Keep it server-side.Create the KYB workflow. Open Workflows, then Create workflow, and choose Business Verification as the workflow type. Enable Company registry lookup (required) and Documents, and pick the document types you will require. Add Company AML and Key People if your process needs them. Save and copy the
workflow_id.Create the business session. The session is what the documents attach to. A workflow with type kyb makes this a business session automatically.
curl -X POST https://verification.didit.me/v3/session/ \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "workflow_id": "YOUR_KYB_WORKFLOW_ID", "vendor_data": "biz-acme-001" }'The response contains
session_id,session_numberandurl. Keep thesession_id; you need it for the upload and for the decision.Pick the file and the group. Decide the group before you call the endpoint:
LEGAL_PRESENCEfor incorporation and registry documents,COMPANY_DETAILSfor confirmation statements and annual returns,OWNERSHIP_STRUCTUREfor shareholder registries and articles,REPRESENTATIVES_AUTHORIZATIONfor director registries and powers of attorney,OTHERfor anything else. Check the format against the accepted list and the size against the 50 MB PDF and 6 MB photo limits first, because a rejected upload costs a round trip.Send the upload request. Call the upload documents endpoint documented at docs.didit.me/sessions-api/kyb-upload-documents from your server, with the file, its
document_group, and, when the file is an encrypted PDF, the open password indocument_passwords. Send it with thex-api-keyheader, like every other call on the verification API.Read the result. Fetch the decision and iterate
document_verifications[]. Each item carriesstatus,node_id,groups,required_groupsanditems[], where each item holds a signedfile_urland the OCR extract.curl https://verification.didit.me/v3/session/$SESSION_ID/decision/ \ -H "x-api-key: $DIDIT_API_KEY"Follow the status and act. Subscribe to
status.updatedand filter onsession_kindequal to business, or poll the decision. When a document moves to Resub Requested, re-deliver the sameurlto the business contact: the hosted flow resumes at the resubmission step.
Reading document statuses and cross-check results
| Status | What it means | What you do |
|---|---|---|
| Not Finished | Upload in progress, OCR running, or cross-check pending | Wait; do not re-upload the same file |
| Approved | Reviewed and accepted | Nothing, keep the record |
| Declined | Reviewed and rejected | Ask for a valid document in the same group |
| In Review | Needs manual analyst attention | Wait for the next webhook, then act on the session status |
| Resub Requested | An analyst asked for a new version of this document | Re-deliver the hosted link so the business can re-upload |
The cross-check output is structured into three buckets. Critical fields are where document data and user-provided data do not match, and each one shows the document value, the user-provided value and a confidence score. Non-critical fields hold minor or formatting differences, such as an abbreviation in the company name. People overlap compares the people named in the document against the people submitted in the Key People flow, and highlights missing or additional individuals.
Analysts can also request a document from inside the session: they open the business session, click Request document, and specify the type and description. The business is notified, uploads the file, and it sits in the session with a Requested status until it arrives. That is a second path by which files enter the same decision you read.
Field and event mapping
| You send or read | Appears as | Notes |
|---|---|---|
document_group on the upload | groups and the per-group counters in document_verifications[] | Five values, one per file |
document_passwords on the upload | Not a reporting field | Supplies the password for a protected PDF |
| File status | document_verifications[].status | Same five labels as the table above |
| Per-file media and OCR | document_verifications[].items[] with file_url and extract | Signed URL, valid for a limited window, download promptly |
| Required evidence | required_groups | Compare it to groups to see what is still missing |
status.updated | Webhook with session_kind equal to business | Carries the full decision; the event to follow for progress |
data.updated | Webhook for reviewer edits and registry changes | Not sent for document uploads |
business.status.updated | Webhook on the linked Business entity | Fires when the entity status changes |
Testing in the sandbox
Use the sandbox application key that starts with sk_test_. Every check is mocked in sandbox, so you are testing your own plumbing: the request shape, the group values, the size checks, the decision parsing and the webhook handler. Do not read approval rates or OCR quality out of sandbox results.
Expected success looks like this. The session creation returns session_id, session_number and url. The upload call returns without an error. Use the decision endpoint to inspect the returned document_verifications[] items and their statuses, and confirm that groups reflect the group you sent. If you subscribed to status.updated, the event arrives with session_kind equal to business and carries the decision payload.
| Symptom | Cause | Fix |
|---|---|---|
| 401 from verification.didit.me | The x-api-key header is wrong, malformed, revoked or expired | Re-fetch the key or use one that has not expired |
| 403 | No key header, a scoped key without access to this resource or action, or a key called from an address outside its IP list | Use a key with that access from Developers, then API keys |
403 with application_deleted | The key's application was deleted | Do not retry; use the key of an application that exists |
| 404 on a session route | The session sits outside the scoped key's workflows or statuses | Use a key whose limits include that session |
| 400 | Invalid workflow_id | Copy the id again from Workflows |
502 with kyb_registry_provider_unavailable | Registry provider outage during company search | Not billed; in the hosted flow the business is offered manual company entry |
KYB_COUNTRY_RESTRICTED warning | Company country outside the workflow's allowed countries | Widen the workflow's country list or run the company elsewhere |
| 429 | Rate limit | Back off using the Retry-After header, then retry |
| Session created but running KYC steps | The workflow is not a KYB workflow | Check that the workflow type is kyb |
Disconnecting and rotating keys
There is no long-lived connection to tear down, because every call is authenticated by the key. To disconnect a service, revoke or replace its key in Developers then API keys, and from that moment the old key answers 401. If you delete the application, its keys are refused immediately with application_deleted for a few minutes and then treated like any invalid key.
If you used a scoped key for a partner, rotate it rather than sharing the Primary key. The Primary key carries full access to the API on behalf of the application, and it should never reach a browser bundle or a mobile build.
What it costs at both ends
On the Didit side, document collection is $0.20 per document-collection step, however many files that step holds. On Growth the line is $0.192, and on Scale it is $0.18. Business verification itself is priced by country and data tier from $2.00 per company, company AML is $0.20, person AML is $0.20 per UBO or officer, and a linked full ID check for a UBO is $0.33.
On your side, the upload call itself carries no separate charge beyond the step fee. Your own costs are the storage you keep before sending, the engineering time to call the endpoint and parse the decision, and any analyst time you spend in the console on documents in the In Review state.
Worked example
A KYB run on a company that needs two document-collection steps, two UBOs, and person AML for each UBO:
- Business verification, registry retrieval from $2.00 per company: $2.00
- Document collection, 2 steps at $0.20: $0.40
- Company AML, 1 check at $0.20: $0.20
- Person AML, 2 people at $0.20: $0.40
- Linked full ID check, 2 people at $0.33: $0.66
Total: 2.00 + 0.40 + 0.20 + 0.40 + 0.66 = $3.66 for the business. The registry line starts at $2.00 and rises with the country and the data tier you select, so treat that $2.00 as a floor and not a fixed quote; every other line in the example is a published list price. If the first step holds one certificate and the second holds a ZIP with thirty files, the document line is still $0.40, because the fee follows the step and not the file count. On a Scale plan each Didit line drops by 10 percent, so the document line becomes $0.36 for the two steps.
Sources
- Didit docs: KYB Documents API
- Didit docs: upload documents endpoint
- Didit docs: KYB quickstart
- Didit docs: KYB integration guide
- Didit docs: statuses
- Didit docs: KYB webhooks
- Didit docs: API authentication
- Didit docs: API errors
- Didit docs: data models
- Didit pricing and pricing as JSON, read November 26, 2026
- Didit MCP server setup
Next step: open the sandbox at https://business.didit.me/, create a KYB workflow with Documents enabled, and send one protected PDF through the upload endpoint with its password. No sales call, and every check is mocked until you switch to a live key.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Frequently asked questions
What file formats does the Didit KYB document upload API accept?
Didit accepts PDF, JPG, JPEG, PNG, TIFF and WebP, or a ZIP archive of those formats. Send the file from your server to the upload documents endpoint and tell it which document group the file belongs to. Check the format against the accepted list in this article before you send.
What is the size limit for KYB documents on Didit?
A PDF can be up to 50 MB and a photo can be up to 6 MB, both measured before Didit compresses the image. A ZIP archive of accepted files is also allowed. If a filing exceeds 50 MB, split it by section rather than dropping pages; that is general preparation guidance, not a platform rule.
How do I upload a password-protected PDF to Didit KYB?
Supply the protected PDF's password in document_passwords when you upload it through the API.
Which document group should I use for a certificate of incorporation?
Use LEGAL_PRESENCE. That group holds CERTIFICATE_OF_INCORPORATION, CERTIFICATE_OF_GOOD_STANDING, CERTIFICATE_OF_INCUMBENCY, REGISTRY_EXCERPT, BUSINESS_LICENSE and TAX_REGISTRATION. Ownership filings go in OWNERSHIP_STRUCTURE, director registries and powers of attorney in REPRESENTATIVES_AUTHORIZATION, and anything Didit cannot classify in OTHER.
Does Didit charge per document uploaded in KYB?
No. Didit charges $0.20 per document-collection workflow step, independent of how many documents are uploaded in that step. Re-uploading a document inside the same step does not add another fee, and a separate document-collection step has its own $0.20 charge. Growth customers pay $0.192 per step and Scale customers pay $0.18.
Does Didit send a webhook when a document is uploaded?
Not for the upload itself. The docs state that data.updated is not sent for document uploads or key people submissions. Follow status.updated with session_kind equal to business, which carries the full decision, or poll GET /v3/session/<session_id>/decision/.
How do I download the documents back from a Didit KYB session?
Fetch the decision and read document_verifications[].items[]. Each item carries a signed file_url and the OCR extract for that file. The signed URL is valid for a limited window, so download the file when you need it instead of storing the URL in your database.
What does Resub Requested mean on a Didit document?
An analyst reviewed the document and wants a new version before the session can progress. Re-deliver the same session url to the business contact: the hosted flow resumes at the resubmission step. The re-upload inside that step does not add another document-collection fee.
Can I upload a ZIP archive of company documents to Didit?
Yes. A ZIP archive of PDF, JPG, JPEG, PNG, TIFF or WebP files is accepted. Because the document-collection fee follows the step and not the file count, a ZIP and a single PDF inside the same step cost the same $0.20. Send the archive on the upload request with the document_group that matches its contents.
Is there an MCP route to the Didit KYB document upload?
Didit runs a hosted MCP server at mcp.didit.me/mcp, configured for each client at didit.me/developers/mcp, and the MCP server carries no fee. Document uploads themselves follow the REST upload documents endpoint described here, called from your server with the x-api-key header.
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy


