Skip to main content
POST
/
expenses
/
{expense_id}
/
attachments
Add Attachment To Expense
curl --request POST \
  --url https://api.everhour.com/expenses/{expense_id}/attachments \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '
{
  "name": "avatar.jpg",
  "content": "<string>"
}
'
{
  "id": 514,
  "name": "avatar.jpg",
  "token": "9a04b8a1fb99cbfadf3386ad6a338c14"
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

expense_id
number
required

Expense ID

Example:

7810

Body

application/json
name
string
required
Example:

"avatar.jpg"

content
string
required

Base64 file content. Only jpg, png and pdf supported

Response

OK

id
number
Example:

514

name
string
Example:

"avatar.jpg"

token
string
Example:

"9a04b8a1fb99cbfadf3386ad6a338c14"