API referenceLinkedin messaging
The file's bytes with LinkedIn's content type. Only attachmentId (from the message's attachments[].id) is read.
X-API-KEY<token>
Your API key from the console (gw_live_…).
In: header
Path Parameters
id*string
The message's id (lgm_…). Part of the path only; it is not read, any value works.
attachmentId*string
The attachment's id from the message's attachments, as given. An id that does not name a LinkedIn file is 400.
Query Parameters
account_id*string
The LinkedIn account (lg_…) to act as.
Length
1 <= lengthResponse Body
application/octet-stream
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/messages/lgm_Zm9vYmFyYmF6cXV4/attachments/string?account_id=lg_3f9c2a7b1d""string"