users/email_accounts/folders/messages/headers

Supported methods

GET

GET: Complete headers of a given email message

GET https://api.context.io/lite
/users/id/email_accounts/label/folders/folder/messages/message_id/headerstest it
idUnique id of a user accessible through your API key
labelThe label property of the email account instance. You can use 0 as an alias for the first email account of a user.
folderThe full folder path using / as the path hierarchy delimiter.
message_idUnique id of a message. This must be a email_message_id of an existing message in the thread.

Parameters

nametypedescription
optional:
delimiterstringIf / isn't fancy enough as a hierarchy delimiter when specifying the folder you want to obtain, you're free to use what you want, just make sure you set this delimiter parameter to tell us what you're using.
rawintegerBy default, this returns messages headers parsed into an object. Set this parameter to 1 to get raw unparsed headers.

Response body

{
  "resource_url": stringFull URI of the resource,
  "headers": {
    Name-Of-Header: arrayValues for that header (some headers can appear more than once in the message source),
    ...
  }
}

If you want to fetch headers, body and flags for a given message, you can use the related include_* GET parameters on the message instance to get them all in a single call.