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
- Base URLhttps://api.everhour.com
- AuthAPI key in header X-Api-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"name": "avatar.jpg",
"type": "expense"
}Response
Created
Example response
{
"id": 514,
"name": "avatar.jpg",
"token": "9a04b8a1fb99cbfadf3386ad6a338c14"
}Changes
No recorded changes to this operation across all 2 revisions of this API.