Create Attachment Upload URL
Beta/v1/messaging/conversations/{id}/attachments/actions/upload-urlIdempotent with Idempotency-Key header. Learn more
Mints a presigned URL for uploading a chat attachment directly to object storage.
idstringConversation ID the attachment will be sent in.
include[]optional arrayenumValues:attachmentattachment.resourceSub-objects to expand in the response. When omitted, sub-objects are returned as null.
filenamestringThe original filename of the file to upload.
content_typeoptional stringThe MIME content type of the file (sent as the Content-Type on the upload).
objectstringenumValues:attachment_upload_targetResource type identifier.
attachmentmessage_attachmentExpandablenullablePre-allocated attachment metadata for the staged upload.
idstringAttachment ID.
objectstringenumValues:message_attachmentResource type identifier.
kindstringenumValues:fileimagelinkThe kind of attachment, which determines how it is stored and which of the fields below are populated.
file: an uploaded non-image file.image: an uploaded image.link: an external URL reference, with no stored file.resource: a reference to an in-app resource, such as an order.
filenamestringnullableThe original filename for uploaded attachments.
null for link/resource attachments.
content_typestringnullableThe MIME content type for uploaded attachments.
null for link/resource attachments.
size_bytesintegernullableThe size in bytes for uploaded attachments.
null when unknown or for link/resource attachments.
urlstringnullableA time-limited download URL for uploaded (file/image) attachments, or the link URL.
null for resource attachments.
resourceentityExpandablenullableThe linked in-app resource for resource attachments.
null for file/image/link attachments.
idstringUnique identifier for the entity.
objectstringenumValues:entityResource type identifier.
typestringenumValues:accountactorentityThe resource kind that this entity references, as an object-type value (e.g. user, account).
Unlike object — which is always entity — this names the underlying resource the id points to.
namestringnullableHuman-readable display name for the entity (e.g. a user's full name, a sales order number).
handlestringnullableSecondary human-readable identifier (e.g. email address, username, redacted API key value).
created_atstring (date-time)Creation timestamp.
upload_urlstringThe presigned URL to PUT the file to.
s3_keystringThe object-storage key to echo back when sending the message.
expires_atstring (date-time)When the upload URL expires.
Responses
Successful response for Create Attachment Upload URL