Linking to a custom back-end

/ Help / Custom back-end


Linking a custom back-end means that instead of a third-party network like Facebook or Twitter Contempas will make a request to your own back-end service. It will be a POST request with payload describing the content of the post.

Let's say that we have selected the following content items: Custom back-end When the scheduled post happens Contempas will query your endpoint with:

POST 

[
  {
    "type": "FILE",
    "contentType": "video/quicktime",
    "value": "<url to the file>"
  },
  {
    "type": "FILE",
    "contentType": "image/jpeg",
    "value": "<url to the file>"
  },
  {
    "type": "FILE",
    "contentType": "image/jpeg",
    "value": "<url to the file>"
  },
  {
    "type": "TEXT",
    "contentType": "",
    "value": "Lorem ipsum dolor sit amet, consectetur ..."
  }
]
            

The post is considered successful if the response status code is 200.