Generation

Once you have a template written and ready to go, you can publish the article using the editor. Once published, you can use the id of the published template to generate your content using the following endpoint:

GET https://api.icrobotic.com/templates/{id}/generate?contentId={contentId}
or
GET https://api.icrobotic.com/templates/{id}/{contentId}/generate
where id is the id of your published template, and contentId is the id of some content in your data source.

This will combine your data and the template to produce a response of the following form:

{
    "metadata": .. metadata given in the data endpoint ..,
    "mysection": "This is dummy text!",
    "myothersection": "This is also dummy text!",
}

Where metadata is only there if your data source provides metadata. Each section in your template will generate a property, the name of which will be a json-friendly version of your section name. The value of each section-property will be a string containing the result of the generation for that section.