Endpoint
Upload a document
Accepts a Base64-encoded file along with its document type classification. The platform processes the upload and associates it with the account for compliance review.POST /v1/accounts/{accountId}/documents/upload
Path parameters
Request body
Supported document_type values
Response
Returns204 No Content on success. No body is returned.
Example requests
Identity verification — passport (image)
Address verification — utility bill (PDF)
W-8BEN — JSON form data
Thew8ben document type accepts form data as a JSON object in content_data rather than a Base64-encoded file. The structure mirrors the IRS W-8BEN form fields.
Response
File size and format limits
Tip: If you’re encoding in JavaScript, useBuffer.from(fileBuffer).toString('base64'). In Python, usebase64.b64encode(file_bytes).decode('utf-8').
Common errors
Next steps
- W-9 Requests → — Generate W-9 forms programmatically for a user
- Retrieving Documents → — Access documents that have been generated for an account
- Account Opening → — Review the KYC fields collected at account creation
W-9 Requests Documentation
Overview
The W-9 endpoint enables automated generation of IRS Form W-9 (Request for Taxpayer Identification Number and Certification) for specified users. As the documentation states, “W-9s are required for U.S. persons and entities to certify their taxpayer identification number.”Key Endpoint
POST/v1/documents/w9 — Initiates W-9 generation for a user
Request Details
The endpoint requires a single query parameter:userId(string, UUID format) — The unique identifier for the user
Response Structure
A successful request (200 OK) returns:successful(boolean) — Confirms request acceptancemessage(string) — Status confirmation text
Processing Timeline
The endpoint confirms immediate receipt, but form generation occurs asynchronously. Users can later retrieve the completed W-9 using the document listing endpoint withdocumentTypeID: 3 and the relevant year.