Bokio automation · runs daily
Upload receipts to Bokio automatically
Receipts pile up as photos and PDFs in a folder or in your inbox, and each one has to be added to Bokio by hand before the books can be closed.
Cotlet does it in your own Bokio account with list_uploads and upload_receipt, called by your AI agent, an n8n workflow or a script.
Hosted · nothing to install or maintain
Can Bokio do this on its own?
Bokio's API has an uploads endpoint that takes a PDF, JPEG or PNG with an optional description and, since the 5 Oct 2026 changelog, can link an upload to a journal entry (checked 14 Oct 2026). A private integration token or a public integration with the uploads scope is required, and the API only uploads: booking the receipt is a separate step.
How you do it in Bokio today
- Click Skapa Ny and choose Ladda upp.
- Select the receipts and invoices on your computer and click Öppna.
- Bokio takes you to the Uppladdat page, which lists every uploaded file.
- Book each file from there or from the Att göra page, or delete a file that was uploaded by mistake.
How to upload receipts to Bokio automatically
Take the PDF and photo receipts from this folder and upload each one to Bokio with the shop name and date as the description. Tell me which ones were already there. - 01
Read what is already uploaded
list_uploads returns the files already in Bokio with their descriptions, so the agent can skip a receipt it has uploaded before.
- 02
Check type and size
Only PDF, PNG and JPEG are accepted. The agent also checks that each PDF is within the 4 MB Bokio's help gives for multi-file uploads and reports the files it skipped.
- 03
Describe each file
The agent reads the receipt and passes a description such as shop name and date to upload_receipt. Without one Bokio uses the file name.
- 04
Upload one file per call
upload_receipt sends one file at a time. The upload appears on the Uppladdat page, ready for you to book.
- 05
Report the queue
At the end the agent lists the uploads that are still unbooked, so you know what is waiting for you.
What you get back
Receipts found in folder: 5
Uploaded 4:
- Clas Ohlson 2026-10-09 (jpeg)
- Telia October invoice (pdf)
Skipped 1: already uploaded as "Elgiganten 2026-10-02"
Waiting to be booked in Bokio: 4 Other ways to ask
- Every evening, upload the receipt attachments from this mailbox and label them with the sender and date.
- Upload these three PDFs and link each one to the journal entry with the same amount.
- List the files I uploaded this month that have not been booked yet.
What Bokio allows, and what to know first
- Bokio accepts PDF, PNG and JPEG for uploads, and PDFs must not exceed 4 MB each in a multi-file upload.
- Files you upload land on the Uppladdat page and on the Att göra page until they are booked.
- In a multi-file upload you cannot group files that belong to the same voucher; add those when you book the voucher.
- Bokio's API takes one file per request, and an upload can be attached to a journal entry by its ID.
upload_receipt changes only your own Bokio data and reach no one else, so it runs without asking first.
Sources: Bokio Help: Ladda upp flera underlag samtidigt · Bokio API docs: Add an upload · Bokio API docs: Changelog 2026-10-05
Call upload_receipt from a script
curl -X POST https://cotlet.dev/api/v1/bokio/receipts \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"file_url":"https://files.example.com/receipts/clas-ohlson-2026-10-09.jpg","description":"Clas Ohlson 2026-10-09"}' {
"upload_id": "d41c8e07-5a2b-4f93-8c60-3e1b9a7d2f54",
"description": "Clas Ohlson 2026-10-09",
"content_type": "image/jpeg",
"journal_entry_id": null
} MCP: add https://cotlet.dev/mcp/v1 with the same key; the call is bokio_write → upload_receipt. Example data.
Schedule it in n8n, Make, Zapier or cronBokio tools this automation uses
| Tool | Parameters |
|---|---|
| list_uploads | page, page_size |
| upload_receipt | file_url, description, journal_entry_id |
Frequently asked questions
Is it safe to connect Bokio to Cotlet?
Yes. You sign in to Bokio yourself, in your own Cloud Browser in the EU, and we never save your password. Your agents only get Bokio once you enable it, every background request is listed, and the browser profile is stored encrypted with AES-256-GCM, the cipher 1Password uses for its vaults. The AI model never sees a login, posts and messages wait for your OK, and Disable for agents cuts access in one click. Independent scanners grade cotlet.dev A+ on Qualys SSL Labs, securityheaders.com and Mozilla Observatory; live results are on https://cotlet.dev/security.
Give your agent access to Bokio.
Free 7-day trial with 2,000 credits, no card needed. Cotlet is independent and not affiliated with Bokio.