Skip to content

Get Work Attachment Link

GET
/work/attachments/{attachment_id}

Authorize this credential for one attachment, then mint a short-lived link.

Being authenticated is not permission: an attachment id is a UUID in a URL, and “holds a key” would otherwise make every file in the organization readable. A caller may read an attachment carried by a message in a conversation they can see. A missing attachment and an unreadable one both answer 404, so this cannot be used to probe which ids exist.

Authorizations

Parameters

Path Parameters

attachment_id
required

Attachment id

string

Attachment id

Query Parameters

download

Force a download rather than inline rendering

boolean

Force a download rather than inline rendering

Header Parameters

X-Target-Org-Id
Any of:
string

Responses

200

Successful Response

object
data
required

A short-lived download link for one attachment.

object
attachment

Stored attachment metadata

object
key
additional properties
any
expires_in
required

Seconds until the URL stops working

integer
url
required

Time-limited download URL

string
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string