Skip to main content
POST
Read a file
A chat file’s details and link, or a received email attachment with its bytes. id is chcv_…/<file id> from files_list, or <email id>#<index>, the email’s id from messages_get and the attachment’s position in it, starting at 0. Requires the messages:read scope.

Authorizations

x-api-key
string
header
required

An Avazal API key (avz_…) created in Settings → API keys.

Body

application/json
id
string
required

An id from another result: chcv_… (channel or DM), chcv_…@ (message), chcv_…/ (Slack List or canvas), chcv_…// (list item), mthr_ (email thread), mmsg_, mdrf_, mcmp_, mout_, att_, macc_, doc_, drev_, cevt_, cnt_, trg_, arun_, aart_, aask_, blnk_, a Linear issue such as ENG-123, or linear:team:, linear:view:, linear:mine.

Response

PublicFileContent

id
string
required

The object's id. Every operation that takes it accepts it.

url
string | null
required

A link that opens the object where it lives.

source
enum<string>
required

Where the object lives. Avazal is the source of its own objects.

Available options:
avazal,
slack,
gmail,
google-calendar,
google-drive,
linear,
github,
contacts
name
string | null
required
contentType
string | null
required
size
integer | null
required
conversation
string | null
required
message
string | null
required
sharedBy
string | null
required
sharedAt
string | null
required
data
string

Only email attachments carry their bytes.