Skip to main content
Version: Next

Upload File

POST

/org/{tenant}/v2/files/{file_type}

Platform support: MT and CC

Token Cost: 1 token (low)

Uploads a file. The raw file bytes are sent as the request body and the size is taken from the Content-Length header. The {file_type} path segment selects the upload variant:

  • any non-special value (e.g. regular) — regular tenant upload limited by the PBXware max upload size.
  • fax — fax upload; a default expiration of 24h is applied when exp is not provided. The file is also registered for lookup-by-name.
  • group-icon — image-only upload tied to a chat session; requires a valid session_id.
  • chat-sync / sms-sync — internal sync uploads; require a service account identity (otherwise 403).
  • omni — omni upload. Limited to 5 MB for visitor identities, the PBXware max upload size otherwise.

Returns the stored file metadata, whose id is the storage identifier used for subsequent download/delete operations.

Request​

Responses​

Stored file metadata.