API Reference/Endpoints
Retrieve a message attachment
GET/api/linkedin/gateway/messages/{message_id}/attachments/{attachment_id}
Downloads the raw bytes of one file, image or other embed carried by a message — the ids to pass in come from that message's own attachments array.
Authentication
Send your personal API key as a bearer token. A missing, malformed or revoked key returns 401.
Path parameters
Query parameters
The response body is the file itself, not JSON — read it as a stream or buffer and use the response's
Content-Type header to know what you got.Errors
·401 Unauthorized. The key is missing, malformed or has been rotated.·403 Forbidden. account_id doesn't belong to this key.·404 Not Found. No message or attachment exists with those ids on that account.