Skip to main content
POST
/
applications
/
{application_id}
/
documents
/
business
/
upload-url
Get presigned URL for business document upload
curl --request POST \
  --url https://api.platform.dakota.xyz/applications/{application_id}/documents/business/upload-url \
  --header 'Content-Type: application/json' \
  --header 'X-Application-Token: <api-key>' \
  --header 'x-idempotency-key: <x-idempotency-key>' \
  --data '
{
  "business_document_type": "articles_of_incorporation",
  "file_type": "pdf",
  "country": "US",
  "id_number": "12345678",
  "filename": "articles_of_incorporation.pdf"
}
'
{
  "upload_url": "https://storage.googleapis.com/bucket/path?...",
  "upload_id": "2hCjxJzUAW6JVRkZqaF9E0KpM3a",
  "object_path": "applications/business/2hCjxJzUAW6JVRkZqaF9E0KpM3a/business-documents/2hDeFgHiJkLmNoPqRsTuVwXyZ",
  "expires_at": "2025-01-15T18:30:00Z"
}

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 generate a presigned URL for uploading a business document

business_document_type
enum<string>
required

Type of business document

Available options:
cert_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
Example:

"articles_of_incorporation"

file_type
enum<string>
required

Supported file type

Available options:
pdf,
jpeg,
png
Example:

"pdf"

country
string
required

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

Required string length: 2
Example:

"US"

id_number
string

REQUIRED for formation documents (articles_of_incorporation, cert_of_incorporation). The business registration number. Not required for other business documents.

Example:

"12345678"

filename
string

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

Maximum string length: 100
Example:

"articles_of_incorporation.pdf"

Response

Presigned URL generated successfully

Response containing a presigned URL for document upload

upload_url
string<uri>
required

Presigned URL to upload the document to. Use PUT method with the file content.

Example:

"https://storage.googleapis.com/bucket/path?..."

upload_id
string
required

Unique identifier for this upload. Use this when calling the verify endpoint.

Example:

"2hCjxJzUAW6JVRkZqaF9E0KpM3a"

object_path
string
required

The GCS object path where the document will be stored. Pass this to the verify endpoint.

Example:

"applications/business/2hCjxJzUAW6JVRkZqaF9E0KpM3a/business-documents/2hDeFgHiJkLmNoPqRsTuVwXyZ"

expires_at
string<date-time>
required

ISO 8601 timestamp when the presigned URL expires

Example:

"2025-01-15T18:30:00Z"