Companies
Upload application documents
https://api.firstleeward.com/v0/companies/:id/applications/documentsUploads one company supporting document type for a Universal KYB application. Set documentType to a pending company document from nextAction and attach its file(s) as files. Upload one type per request. Beneficial-owner identity documents use POST /companies/:id/related-persons/:personId/documents.
Authorizations
Authorizationstring · headerrequiredAPI key as Bearer token, e.g. Bearer YOUR_API_KEY
Headers
Leeward-Versionenum<string>requiredAPI version (YYYY-MM-DD). Available option: 2026-09-18
Path Parameters
idstring<uuid>requiredUnique company identifier
Body
multipart/form-data
documentTypestringrequiredWhich supporting document this upload is for (one type per request; from the pending documents in nextAction)
CERTIFICATE_OF_INCORPORATIONCOMPANY_PROFILESHAREHOLDING_CHARTREGISTER_OF_DIRECTORSBUSINESS_REGISTRYSOURCE_OF_FUNDSSOURCE_OF_WEALTHfilesany | any[]requiredThe document file(s) for this type. Send a single file, or repeat the files field (max 5, 5MB total).
Response
200Application state after uploading a company document
documentTypestringrequiredDocument type that was uploaded
CERTIFICATE_OF_INCORPORATIONCOMPANY_PROFILESHAREHOLDING_CHARTREGISTER_OF_DIRECTORSBUSINESS_REGISTRYSOURCE_OF_FUNDSSOURCE_OF_WEALTHfilesobject[]requiredFiles stored for this upload
Show child attributes
fileIdstring<uuid>requiredIdentifier of the stored file
fileNamestringrequiredOriginal file name
nextActionobject | nullrequiredAction the client must take next, or null if none remains
Show child attributes
Option 1 · Document upload
typestringrequireddocumentsobject[]requiredSupporting documents to upload, each with its current upload state
Show child attributes
Option 1 · Company document
documentTypestringrequiredCompany supporting document to upload
CERTIFICATE_OF_INCORPORATIONCOMPANY_PROFILESHAREHOLDING_CHARTREGISTER_OF_DIRECTORSBUSINESS_REGISTRYSOURCE_OF_FUNDSSOURCE_OF_WEALTHstatusstringrequiredThis document still needs to be uploaded
Option 2 · UBO document
documentTypestringrequiredBeneficial-owner identity document
relatedPersonIdstring<uuid>requiredRelated person this identity document belongs to
uboDocumentTypestringrequiredIdentity document type declared for this owner
PASSPORTID_CARDDRIVERS_LICENCEstatusstringrequiredThis document still needs to be uploaded
Option 2 · Submit
typestringrequired400The submitted application data was rejected
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailobject | nullrequired403The requested verification method is not enabled for this project
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailobject | nullrequired404Response for status 404
Option 1 · CompanyNotFoundError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailobject | nullrequiredOption 2 · CompanyApplicationNotFoundError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailobject | nullrequired409Response for status 409
Option 1 · CompanyApplicationNotEditableError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailobject | nullrequiredOption 2 · CompanyApplicationNotSavedError
errorobjectrequiredShow child attributes
codestringrequiredmessagestringrequireddetailobject | nullrequired