---
title: "Add Attachment To Expense"
method: POST
path: "/expenses/{expense_id}/attachments"
tags: ["Expenses"]
---

# Add Attachment To Expense

`POST /expenses/{expense_id}/attachments`

Attach a previously uploaded file (by its token from `POST /attachments`) to an existing expense.

## Path parameters

- `expense_id` number, required

## Request body

- AttachmentRequest
  - `name` string, required
  - `content` string, required — Base64 file content. Only jpg, png and pdf supported
  - `type` 'assignment' | 'task' | 'user' | 'expense' — Object the attachment is linked to. Defaults to `expense`.

## Response `201`

Created

- AttachmentDetails
  - `id` number
  - `name` string
  - `token` string

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/everhour/apis/everhour-api.md) · [All operations](https://skmtc.net/everhour/apis/everhour-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/everhour/everhour-api/revisions/fc6136e33352/schema)
