Skip to main content
A document is a file Slash stores for your legal entity, such as an invoice PDF or a photo of a receipt. It belongs to the user whose API key uploaded it.

Upload a file

Send the file to Upload a document as multipart/form-data, with the purpose it’s for:
PDF, PNG and JPEG files up to 25 MB are accepted, and PDFs can have up to 100 pages. HEIC photos are converted to JPEG. Uploading the same file twice creates two documents, so keep the id.

Download it

Get a document returns a downloadUrl that works for about 15 minutes. Fetch the document again whenever you need the file instead of storing the link.

Who can see a document

Until it’s attached, only the person who uploaded it. Once attached, anyone who can see that bill or accounting entry. If every bill or entry it was attached to is deleted, it’s back to only the uploader.