Skip to main content
POST
/
applications
/
{application_id}
/
documents
/
edd
Upload an EDD document
curl --request POST \
  --url https://api.platform.dakota.xyz/applications/{application_id}/documents/edd \
  --header 'Content-Type: application/json' \
  --header 'X-Application-Token: <api-key>' \
  --header 'x-idempotency-key: <x-idempotency-key>' \
  --data '
{
  "type": "bank_statement",
  "file_type": "pdf",
  "file_content": "JVBERi0xLjQKJeLjz9MKMw==",
  "country": "US",
  "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
Example:

"1NFHrqBHb3cTfLVkFSGmHZqdDPi"

Body

application/json

Request to upload an Enhanced Due Diligence (EDD) document

type
enum<string>
required

Type of EDD document. Required types depend on EDD data:

  • source_of_wealth: Always required
  • bank_statement: Always required
  • regulatory_license: Required if is_regulated=true
  • flow_of_funds: Required if transact_on_behalf_of_third_parties=true
Available options:
bank_statement,
regulatory_license,
flow_of_funds,
payslip,
employment_contract,
shareholders_agreement,
income_verification_letter,
savings_statement
Example:

"bank_statement"

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 500MB.

Example:

"JVBERi0xLjQKJeLjz9MKMw=="

country
string
required

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

Required string length: 2
Example:

"US"

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
Example:

"1NFHrqBHb3cTfLVkFSGmHZqdDPi"