Integration API Details (XML)
(Last Updated On: April 6, 2018)

Integration API details

When the API is activated and a new contact request is received, SnapEngage will automatically send a POST transaction to the URL specified in the API configuration. The transaction provides details about the request in an XML format.

POST event details:


Additional information

source_id: Value of 1 when the SnapEngage interaction was an offline message, value of 2 when it was a manual chat, or value of 3 if it was a proactive chat.

retries: The target system needs to respond with and HTTP 200 to confirm that the event has been received and processed. In the absence of a successful HTTP response, SnapEngage will retry the HTTP POST automatically for approximately 2 hours before sending it through email and flagging the event as sent.

using PHP: The XML content is a stream in XML format. You can not access this stream in the $_* variables of PHP. Please use this instead: