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

FieldTypeDescription
message_id *stringThe id of the message the attachment is on.
attachment_id *stringThe id of the attachment, from the message's attachments array.

Query parameters

FieldTypeDescription
account_id *stringThe connected account this message belongs to. Must belong to the calling key.
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.
CredentialsRequired
AuthorizationBearer wm_live_••••••••
RequestTry it
curl "https://api.warmably.com/api/linkedin/gateway/messages/wCQ0j9dQXk2QGRLNJ8xE1w/attachments/R0j5uW2fCkQpN8vXeD1zAg?account_id=459993d2-b0e7-4b19-baf9-45252ca324cf" \
  -H "Authorization: Bearer wm_live_..." \
  -o attachment.bin
Response
200 OK
< binary attachment bytes, Content-Type set from the original file >
No key yet? Create one from Dashboard → API Keys.