This would mean that Triggre creates an incoming Web API for you on the following URL:
https://example.triggre.net/lab/interfaces/rest/my first incoming web api/my_first_incoming_web_api
Tip: The automation flow part of the URLs is case-insensitive (after the /rest/ part), so whether you use capitalized words or not, doesn’t matter.
Step 3: Calling your incoming Web API
To call your Web API, you will need to use a POST request with the data you want to supply as JSON. Make sure to set the Content-Type header of your request to application/json.
Triggre uses Basic Authentication for incoming Web APIs, which means you will need to provide a username and password by sending them in a header:
The data you send must be structured as a JSON object. For example, if our incoming Web API has only a single input, a text named Example input then the data you send should look like this:
The incoming Web API will return a status code of 200 on success, and any data you have configured as output as a JSON object as well.
object with url*** property, e.g. { "Url": "https://some.file"}
Document
object with url*** property, e.g. { "Url": "https://some.document"}
Picture
object with url*** property, e.g. { "Url": "https://some.image"}
Other types
True/false
boolean
Pick list
string, value must correspond to pick list value
*) You can use a string for very large numbers, that are not natively supported. In most cases, just a number will be sufficient. **) Date time notations used per the W3.org date time standard. ***) Note that the Url property is case sensitive and must start with a capital, then lower case letters.
Example
Below is an example of how to format these types as a single item, and as a list of items: