API Reference/Endpoints
Retrieve an email
GET/api/linkedin/gateway/emails/{email_id}
Fetches a single email, including its full HTML and plain-text body.
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's id.
Query parameters
FieldTypeDescription
account_id *stringThe connected account the email belongs to.
include_headersbooleanInclude the email's raw headers in the response.
Response fields
FieldTypeDescription
object"Email"Always this value.
idstringThe email's id.
subjectstringThe email subject line.
bodystringThe HTML body.
body_plainstringThe plain-text body.
from_attendeeobjectSender: display_name and identifier.
to_attendeesarrayRecipients, same shape as from_attendee.
has_attachmentsbooleanWhether the email carries attachments.
attachmentsarrayAttachment metadata: id, name, size, mime and so on — use Retrieve an email attachment to download one.
thread_idstringThe thread this email belongs to.
foldersarrayThe folder(s) currently holding this email.
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 with that id belongs to this account.