WarmablyWarmablyDOCS
Search docs⌘K
Dashboard
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

FieldTypeDescription
email_id *stringThe email the attachment is on.
attachment_id *stringThe attachment's id.

Query parameters

FieldTypeDescription
account_id *stringThe connected account the email belongs to.

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.
CredentialsRequired
AuthorizationBearer wm_live_••••••••
RequestTry it
curl "https://api.warmably.com/api/linkedin/gateway/emails/7c1a9e42-6f3d-4b18-9e02-1a8f6d2c5b90/attachments/3d8f21a0-9c44-4b6e-8a71-5e2d9f0c1b33?account_id=459993d2-b0e7-4b19-baf9-45252ca324cf" \
  -H "Authorization: Bearer wm_live_..." \
  -o attachment.pdf
Response
200 OK
<raw file bytes, Content-Type set to the attachment's mime type>
No key yet? Create one from Dashboard → API Keys.