Skip to navigation

Upload a document

Attaches a customer-supplied document to a business or an agent thread. The file must be base64-encoded, at most 10 MB, and a PDF, JPEG, or PNG. The content type is detected from the file bytes, not the filename.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
filestringRequiredformat: "byte"

Base64-encoded file contents. The decoded file must be at most 10 MB and its content type, detected from the bytes rather than the filename, must be application/pdf, image/jpeg, or image/png.

filenamestringRequired
Name of the file, including its extension
documentable_typeenumRequired

Type of record to attach the document to. Use businesses with a business ID, or threads with an agent thread ID.

Allowed values:
documentable_idstringRequiredformat: "uuid"
ID of the business or agent thread to attach the document to

Response

document created
objectenum
Allowed values:
idstringformat: "uuid"
document_typestring or null

Type of document. Common values include: Initial_Filing, Certificate of Good Standing, Articles of Incorporation, Initial Filing (UCC1), Amendment (UCC3). Null for customer-uploaded documents.

filenamestring
Name of the document file
content_typestring
MIME type of the document
sizeinteger
File size in bytes
download_urlstringformat: "uri"
URL to download the document
created_atdatetime
sourceobjectOptional
filing_datedatetime or nullOptional
metadatamap from strings to anyOptional
Additional document metadata

Errors

400
Create Document Request Bad Request Error
404
Create Document Request Not Found Error
422
Create Document Request Unprocessable Entity Error