App Logo
linkedin.com

Download a LinkedIn message attachment

Download the file attached to a message in a classic LinkedIn messaging thread. Returns filename, mimeType, size and the bytes as base64, plus the direct URL. Omit the message urn to take the most recent message in the thread that carries an attachment.

Input

threadUrl required

Conversation thread URL from list_inbox.

maxBytes optional

Refuse to base64-encode anything larger than this. Default 8000000 (8 MB); the URL is still returned.

messageUrn optional

Message identifier to pull from (as returned by this script's own output, or by react_to_message). Omit to take the newest message carrying an attachment.

Output

url required
threadUrl required
messageUrn required
kind optional

image = rendered inline; file = a document card with a download link.

size optional
base64 optional

Bytes, base64-encoded. Null when the file exceeded maxBytes — url is still usable.

filename optional
mimeType optional
pickedLatest optional
skippedEncoding optional

Start building not clicking