v1

latestOpenAPI 3.1.1LicenseRef-Proprietary2026-07-1310179223.1 KB
Expenses

Create Attachment

Upload a file and receive a one-time attachment token. The token can then be attached to an expense via POST /expenses/{expense_id}/attachments or included in POST /expenses.

post/attachments

Request body

namestring required
contentstring required

Base64 file content. Only jpg, png and pdf supported

type'assignment' | 'task' | 'user' | 'expense'

Object the attachment is linked to. Defaults to expense.

Example request

{
  "name": "avatar.jpg",
  "type": "expense"
}

Response

Created

idnumber
namestring
tokenstring

Example response

{
  "id": 514,
  "name": "avatar.jpg",
  "token": "9a04b8a1fb99cbfadf3386ad6a338c14"
}