Skip to main content
POST
/
applications
/
{application_id}
/
documents
Upload an application document
curl --request POST \
  --url https://api.platform.dakota.xyz/applications/{application_id}/documents \
  --header 'Content-Type: application/json' \
  --header 'X-Application-Token: <api-key>' \
  --header 'x-idempotency-key: <x-idempotency-key>' \
  --data '
{
  "document_type": "articles_of_incorporation",
  "file_type": "pdf",
  "file_content": "JVBERi0xLjQKJeLjz9MKMw==",
  "country": "US",
  "id_number": "string",
  "filename": "source_of_wealth.pdf",
  "description": "Q3 2024 bank statement"
}
'
{
  "document_id": "1NFHrqBHb3cTfLVkFSGmHZqdDPi"
}

Authorizations

X-Application-Token
string
header
required

Application-specific token for public URL access. Generated when a customer is created. Provides access to a single application without requiring an API key. Token is valid for 30 days and rate-limited to 100 requests per hour.

Headers

x-idempotency-key
string<uuid>
required

Unique key to ensure request idempotency. If the same key is used within a certain time window, the original response will be returned instead of executing the request again.

Path Parameters

application_id
string
required

The unique identifier for the application KSUID is a 27-character globally unique ID that combines a timestamp with a random component. Used for all entity identifiers in the Dakota platform.

Required string length: 27
Pattern: ^[0-9A-Za-z]{27}$
Example:

"1NFHrqBHb3cTfLVkFSGmHZqdDPi"

Body

application/json

Request to upload an application-level document

document_type
enum<string>
required

Type of application-level document (business or EDD)

Available options:
certificate_of_incorporation,
articles_of_incorporation,
certificate_of_good_standing,
corporate_registry_extract,
shareholder_registry,
bank_reference_letter,
operating_agreement,
memorandum,
articles_of_association,
proof_of_address,
bank_statement,
utility_bill,
source_of_funds,
crypto_statement,
investment_statement,
subscription_agreement,
safe_agreement,
convertible_note,
loan_agreement,
promissory_note,
pitch_deck,
marketing_material,
business_plan,
regulatory_license,
payslip,
employment_contract,
shareholders_agreement,
income_verification_letter,
savings_statement
Example:

"articles_of_incorporation"

file_type
enum<string>
required

Supported file type

Available options:
pdf,
jpeg,
png
Example:

"pdf"

file_content
string<byte>
required

Base64-encoded file content. Maximum size after decoding is 20MB.

Example:

"JVBERi0xLjQKJeLjz9MKMw=="

country
string
required

ISO 3166-1 alpha-2 country code for the document

Required string length: 2
Example:

"US"

id_number
string

Optional ID/registration number. Required for formation documents.

Required string length: 3 - 50
filename
string

Optional original filename. Will be sanitized for safe storage and display.

Maximum string length: 100
Example:

"source_of_wealth.pdf"

description
string

Optional description of the document

Maximum string length: 500
Example:

"Q3 2024 bank statement"

Response

Document uploaded successfully

Response after successfully uploading a document

document_id
string
required

KSUID is a 27-character globally unique ID that combines a timestamp with a random component. Used for all entity identifiers in the Dakota platform.

Required string length: 27
Pattern: ^[0-9A-Za-z]{27}$
Example:

"1NFHrqBHb3cTfLVkFSGmHZqdDPi"