Create pre-signed upload
Last updated
Was this helpful?
Last updated
Was this helpful?
This API generates a pre-signed URL for media uploads. It responds with information required to build a subsequent form data request to upload the media to an S3 bucket. Please refer to Examples below on how to use it.
In the following example, we'll generate a pre-signed upload URL, then use it to upload media, and finally send a message with it:
Generate URL
Upload media to pre-signed URL
All of the fields in uploadFormData
from the previous response need to be passed as form data string fields. Additionally, the field file
must contain the media file you'd like to upload.
The response status is 204 (No Content).
Send message with media
Creates a pre-signed URL to upload media that can be used when sending messages in a conversation. The maximum fize size is 100MiB.
/workspaces/{workspaceId}/conversations/{conversationId}/presigned-upload
The workspace ID
b4e02c85-c6d2-4b15-8885-e09671799c61
The conversation ID
67e4d358-ca94-421e-98b7-448860df9d33
The MIME type of the media being uploaded.
image/png