Skip to main content
GET
Preview an attachment inline

Authorizations

X-API-Key
string
header
required

API key for authentication

Path Parameters

attachmentId
string
required

Unique attachment identifier

Example:

"att_abc123def456"

Response

Preview generated successfully

kind
enum<string>
required

How to render the preview: url (inline signed URL), html (converted document), or unsupported.

Available options:
url,
html,
unsupported
Example:

"html"

name
string
required

Original file name of the attachment

Example:

"q3-access-review.xlsx"

url
string

Signed URL that renders inline in the browser. Present when kind is url.

Example:

"https://bucket.s3.amazonaws.com/path/to/file.pdf?signature=..."

contentType
string

Content type the signed URL is served with. Present when kind is url.

Example:

"application/pdf"

expiresIn
number

Seconds until the signed URL expires. Present when kind is url.

Example:

900

html
string

Self-contained HTML document rendering the file. Present when kind is html.

Example:

"<!doctype html><html>...</html>"

message
string

Why the file cannot be previewed. Present when kind is unsupported.

Example:

"This file type cannot be previewed. Download it to review the contents."