Get the URL needed to upload the file by authorizing the attachment for upload to Business Chat.
- Business Chat API 1.0+
.push .apple .com /v1 /preUpload
The request body is empty. The request header must include the following keys:
A string of credentials used to authenticate the request.
An integer representing the size, in bytes, of the encrypted attachment.
A string that identifies the message sender.
The request was successful. See below for more information.
400 Bad Request
The request lacks required field or was malformed.
The request lacks the
The request failed to validate the
Authorization header field.
404 Not Found
The request failed to recognize the destination-id value.
500 Internal Server Error
Internal Server Error
A server error occurred.
Before uploading an attachment to Business Chat, authorize the file for upload by sending a
GET request to
/pre, passing the header fields listed in the HTTP Headers section. This call returns the URL that you use to upload the encrypted file to Business Chat.