Document Storage
You can upload documents, list them, and retrieve them later. (Deletion is not currently supported.) if you are storing PII you should set encryption as required this adds additional encryption treatment to the storage object /note>- US social security numbers (SSNs)
- any other similar national ID numbers
- driver’s license numbers
- images of driver’s licenses
- passport numbers
- images of passports
- any other similar government ID
What is a document?
A document is any file that either you or one of your customers needs to store. It could be a PDF file, a Word document, a spreadsheet, a JPEG file … almost anything.Upload
To upload a file, send aPOST /v0/documents
request with Content-Type: multipart/form-data
. Refer to Create Document (This is how browser upload works.)
The document size cannot exceed 32 MB.
The only required form parameter is the file data itself. A minimal curl
upload:
Retrieval
To retrieve the uploaded document later, useGET /v0/documents/{document_id}/contents
. Refer to Get Document
Listing
You can also get a paginated list of all uploaded documents withGET /v0/documents
. Refer to List Documents