Files

Upload file (up to 3MB)

This API allows to upload small files (up to 3MB). To upload larger files, see the GET /files/url endpoint.

Supported files: .csv, .xls, .xlsx, .pdf, .doc, .docx, .png, .jpg, .jpeg, .xml, .json, .zip, .txt, .md, .tsv, .webp, .heic, .html, .htm.

  • Rate limit: 200 requests per minute
post/files/upload

Request

  • Base URL
    https://api.toriihq.com/v1.0
  • Auth
    API key in header Authorization

Request body multipart/form-data

filestring binary required

File up to 3MB

type'attachment' | 'expenseReport' | 'customIntegrationData' | 'plugin' | 'chatAttachment' | 'aiChatFile' required

File type

Response

File ID

idinteger

Unique file identifier

Example response

{
  "id": 1000
}

Changes

No recorded changes to this operation across all 1 revision of this API.