Documents
Upload a document
Upload a PDF, PNG or JPEG of up to 25 MB as multipart/form-data.
POST
Upload a document
Authorizations
User API key authentication. Create a key under Settings → API keys in the Slash dashboard (https://app.slash.com/global-settings/api-keys) and send the x-legal-entity header naming the legal entity to act on with every request. Keys scoped to a legal entity are rejected with 403 user_api_key_required.
Headers
Body
multipart/form-data
Response
The uploaded document, with a downloadUrl for the stored file.
A file stored on Slash, uploaded through the API or generated by Slash. Attach it by id where its purpose is accepted; the file itself is fetched through downloadUrl.