---
title: "Add an upload"
method: POST
path: "/companies/{companyId}/uploads"
tags: ["uploads"]
---

# Add an upload

`POST /companies/{companyId}/uploads`

## Request

- Base URL: `https://api.bokio.se/v1`
- URL: `https://api.bokio.se/v1/companies/{companyId}/uploads`
- Auth: HTTP bearer

Add an upload to bokio in the form of an image or pdf. One file can be uploaded per request. The request must be **multi-part MIME**.

#### Sample request for uploading a file using multipart MIME
```
POST http://api.bokio.se/companies/{companyId}/uploads
Content-Type: multipart/form-data; boundary=----FormBoundary7MA4YWxkTrZu0gW
Authorization: Bearer <token>

------FormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="File"; filename="receipt.png"
Content-Type: image/png

< ./receipt.png

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="journalEntryId"

835ba700-b306-4bd9-8447-59207b6b0002

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="description"

Description for the upload

------FormBoundary7MA4YWxkTrZu0gW--
```

**Scope:** `uploads:write`

## Headers

- `Content-Type` string, required

## Request body `multipart/form-data`

- object
  - `file` string, binary, required: The file to upload
  - `description` string: Description of the upload. If left empty, the file name will be used.
  - `journalEntryId` string, uuid: The journal entry id to attach the upload to

## Response `200`

Successfully added

- Upload
  - `id` string, uuid
  - `description` string
  - `contentType` string
  - `journalEntryId` string, uuid, nullable

## Other responses

- `400`: Invalid file data

## Changes

- **2026-11-03** `9395020f3da2`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bokio/apis/company-api/changes/companies/:companyId/uploads/post.md)

---

[API](https://skmtc.dev/bokio/apis/company-api.md) - [All operations](https://skmtc.dev/bokio/apis/company-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bokio/apis/company-api/revisions/9395020f3da2?raw)
