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 whenexpis not provided. The file is also registered for lookup-by-name.group-icon— image-only upload tied to a chat session; requires a validsession_id.chat-sync/sms-sync— internal sync uploads; require a service account identity (otherwise403).omni— omni upload. Limited to 5 MB forvisitoridentities, 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
- 200
- 400
- 401
- 403
- 500
Stored file metadata.
Bad Request — malformed request or a validation error (e.g. empty file, non-image group icon, missing required field, invalid tenant). Both bad-request and validation error codes are returned as HTTP 400.
Unauthorized (missing or invalid X-User-Identity).
Forbidden (caller not allowed to perform the operation).
Internal Server Error.