Skip to main content

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.

Upload KYB Documents via the Didit API: Formats and Limits

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

KYB document upload rules at a glance
ItemRule
Accepted formatsPDF, JPG, JPEG, PNG, TIFF, WebP, or a ZIP archive of those files
Size limitsPDF up to 50 MB, photos up to 6 MB, measured before compression
Password-protected PDFsSend the open password in document_passwords on the upload request
Document groupsLEGAL_PRESENCE, COMPANY_DETAILS, OWNERSHIP_STRUCTURE, REPRESENTATIVES_AUTHORIZATION, OTHER
Price$0.20 per document-collection step, however many files that step holds
Document statusesNot Finished, Approved, Declined, In Review, Resub Requested
Where the result appearsdocument_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.

Didit Business Console: kyb key people linked kyc
Didit Business Console: kyb key people linked kyc

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.

A session overview with its warnings in the Didit Business Console.
A session overview with its warnings in the Didit Business Console.

Accepted formats and size limits

What the upload endpoint accepts
File typeLimitNotes
PDFUp to 50 MBMulti-page filings, certificates and statements all fit in one file
JPG, JPEG, PNG, TIFF, WebPUp to 6 MB per photoSizes are checked before Didit compresses the image
ZIP archiveArchive of the formats aboveUseful 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.

Document groups and the subtypes Didit recognises
Group (document_group)What it provesRecognised subtypes
LEGAL_PRESENCEThe company legally existsCERTIFICATE_OF_INCORPORATION, CERTIFICATE_OF_GOOD_STANDING, CERTIFICATE_OF_INCUMBENCY, REGISTRY_EXCERPT, BUSINESS_LICENSE, TAX_REGISTRATION
COMPANY_DETAILSThe company's current detailsCONFIRMATION_STATEMENT, ANNUAL_RETURN, STATEMENT_OF_INFORMATION
OWNERSHIP_STRUCTUREThe ownership chainSHAREHOLDER_REGISTRY, MEMORANDUM_OF_ASSOCIATION, ARTICLES_OF_ASSOCIATION
REPRESENTATIVES_AUTHORIZATIONAuthority to act for the companyDIRECTOR_REGISTRY, POWER_OF_ATTORNEY, TRUST_AGREEMENT
OTHERAnything Didit cannot confidently classifyUNKNOWN

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

What you need before the first upload call
RequirementWhat you needWhere it comes from
PlanAny plan. Sandbox testing is free and unlimited; the Free plan gives $10 of monthly credit to organizations that sign up with a work emaildidit.me/pricing
ApplicationA Didit application with KYB enabledbusiness.didit.me
API keyNew keys commonly start with sk_test_ or sk_live_; older keys may have no prefix and still workDevelopers, then API keys
WorkflowA KYB workflow id with the Documents feature enabled and the document types you require selectedWorkflows, then Create workflow
Key accessIf 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 refusedDevelopers, then API keys
Webhook endpointOptional, but recommended: a URL reachable from the internet, subscribed with webhook_version set to v3POST /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

  1. 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_ or sk_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.

  2. 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.

  3. 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_number and url. Keep the session_id; you need it for the upload and for the decision.

  4. Pick the file and the group. Decide the group before you call the endpoint: LEGAL_PRESENCE for incorporation and registry documents, COMPANY_DETAILS for confirmation statements and annual returns, OWNERSHIP_STRUCTURE for shareholder registries and articles, REPRESENTATIVES_AUTHORIZATION for director registries and powers of attorney, OTHER for 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.

  5. 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 in document_passwords. Send it with the x-api-key header, like every other call on the verification API.

  6. Read the result. Fetch the decision and iterate document_verifications[]. Each item carries status, node_id, groups, required_groups and items[], where each item holds a signed file_url and the OCR extract.

    curl https://verification.didit.me/v3/session/$SESSION_ID/decision/ \
      -H "x-api-key: $DIDIT_API_KEY"
  7. Follow the status and act. Subscribe to status.updated and filter on session_kind equal to business, or poll the decision. When a document moves to Resub Requested, re-deliver the same url to the business contact: the hosted flow resumes at the resubmission step.

Reading document statuses and cross-check results

Document and aggregate statuses
StatusWhat it meansWhat you do
Not FinishedUpload in progress, OCR running, or cross-check pendingWait; do not re-upload the same file
ApprovedReviewed and acceptedNothing, keep the record
DeclinedReviewed and rejectedAsk for a valid document in the same group
In ReviewNeeds manual analyst attentionWait for the next webhook, then act on the session status
Resub RequestedAn analyst asked for a new version of this documentRe-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

How an upload maps to the decision payload and to events
You send or readAppears asNotes
document_group on the uploadgroups and the per-group counters in document_verifications[]Five values, one per file
document_passwords on the uploadNot a reporting fieldSupplies the password for a protected PDF
File statusdocument_verifications[].statusSame five labels as the table above
Per-file media and OCRdocument_verifications[].items[] with file_url and extractSigned URL, valid for a limited window, download promptly
Required evidencerequired_groupsCompare it to groups to see what is still missing
status.updatedWebhook with session_kind equal to businessCarries the full decision; the event to follow for progress
data.updatedWebhook for reviewer edits and registry changesNot sent for document uploads
business.status.updatedWebhook on the linked Business entityFires 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.

Error cases and fixes
SymptomCauseFix
401 from verification.didit.meThe x-api-key header is wrong, malformed, revoked or expiredRe-fetch the key or use one that has not expired
403No key header, a scoped key without access to this resource or action, or a key called from an address outside its IP listUse a key with that access from Developers, then API keys
403 with application_deletedThe key's application was deletedDo not retry; use the key of an application that exists
404 on a session routeThe session sits outside the scoped key's workflows or statusesUse a key whose limits include that session
400Invalid workflow_idCopy the id again from Workflows
502 with kyb_registry_provider_unavailableRegistry provider outage during company searchNot billed; in the hosted flow the business is offered manual company entry
KYB_COUNTRY_RESTRICTED warningCompany country outside the workflow's allowed countriesWiden the workflow's country list or run the company elsewhere
429Rate limitBack off using the Retry-After header, then retry
Session created but running KYC stepsThe workflow is not a KYB workflowCheck 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

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.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

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.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • 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.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • 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.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.