You are here: Communications Cloud API v1 > Getting Started > Accepted Inputs

Accepted Inputs

The input and output format for the Communications Cloud version 1 API is XML. Each incoming request must contain an XML content-type header:

Content-Type: text/xml; charset: utf-8

However, POST/PUT methods can accept either simple post variables (e.g., as submitted by a form from a web browser) or the same variables in XML format. If you choose to POST/PUT XML as opposed to using simple post variables, you need to send a content-type header of application/XML, such as:

Content-Type: application/xml; charset: utf-8

Below is an example of variables in XML format:

<subscriber>
     <email>EMAIL@ADDRESS<email>
     <send-notifications type='boolean'>false</send-notifications>
     <digest-for>0</digest-for>
</subscriber>

 

Was this page helpful? Can't find what you need? Let us know