GET (Email)

Instantiates a server task to get the body of an email contact and any customer-side attachments from the email server. The client polls the URL provided in the location header to get the status of the task.

URL:

https://<ServerIP>:<Port>/ccp-webapp/ccp/reply/email/<id>

HTTPS method:

GET

Input/Output format:

xml

Parameters:

See Email Reply API Parameters.

Example XML response:

<EmailMessage>
  <id>072D0E871000012B0000ED8B0A568DDF</id>
  <subject>Email subject</subject>
  <fromAddress>sender@xyz.com</fromAddress>
  <toAddress>name1@example.com</toAddress>
  <ccAddress>name2@example.com,name3@example.com</ccAddress>
  <receivedTimestamp>1302551491320</receivedTimestamp>
  <contentType>text/html</contentType>
  <body><![CDATA[ ... ]]></body>
  <refDraftURL>https://<server>:<serverport>/ccp-webapp/ccp/reply/
   email/{id}/draft</refDraftURL>
  <attachments>
      <incomingAttachments>
         <attachment>
             <name>incoming_filename</name>
             <refURL>https://<server>:<serverport>/ccp-webapp/ccp/
              reply/email/<id>/attachment/incoming/
             <attachmentIndex></refURL>
             <sizeBytes>256</sizeBytes>
          </attachment>
          ...
      </incomingAttachments>
  </attachments>
</EmailMessage> 

HTTPS response headers:

HTTPS response:

  • 200—Task is finished with result.

  • 202—Task is in progress. Poll again.

Location header:

https://<Server>:<Port>/ccp-webapp/ccp/reply/email/
F99A8E33100001470000004A0A56863B/getemailbody/1234