API Reference/Endpoints
Retrieve an email attachment
GET/api/linkedin/gateway/emails/{email_id}/attachments/{attachment_id}
Downloads one attachment from an email. Find an attachment's id on the email's attachments array (see Retrieve an email).
Authentication
Send your personal API key as a bearer token. A missing, malformed or revoked key returns 401.
Path parameters
Query parameters
Response
Unlike the rest of this API, the body is the raw file — not JSON. The response's Content-Type header is set to the attachment's own mime type, so stream or buffer it directly to disk.
Errors
·401 Unauthorized. The key is missing, malformed or has been rotated.·403 Forbidden. The account_id doesn't belong to this key.·404 Not Found. No email or attachment with those ids was found on this account.