Data Machines

Using a Data Machine

2min
using a data machine is fairly straightforward with several options provided to use it directly with rest api or by integrating with other applications here are the options in which a data machine can be used use with rest api use rest api to invoke the data machine from any of your apps that support rest api or use it directly using an app such as postman to suit your needs rest api input example the example source for the input request to trigger the data machine is shown below var settings = { "url" "https //mlapi qualetics com/api/datamachine/init?id=\<datamachine id>", "method" "post", "headers" { //add authorization headers here "content type" "application/json" }, "data" json stringify({ "input" "my name is james bond " }), }; $ ajax(settings) done(function (response) { console log(response); }); the endpoint for the data machine api is provided as soon as the it is published the end point is visible in the editor screen once a data machine is published and it is also available in the list view in the portal in order to successfully use a data machine with rest api, get the api credentials for the client instance and application under which the data machine is created refer to the api key management docid\ r6h2n7uem46hxczgckqgn section to get your credentials use with subscriptions on streaming data or insights every data machine that is published is available as one of the options under the trigger action of a subscription refer to the subscriptions docid\ h2auywg9rn0fxhcdjftgh section to learn how to use a subscription on incoming data use with zapier qualetics is also integrated with zapier to enable seamless integration with more than 6000 apps you can use zapier to test the newly created data machine instantly in order to test the data machine, refer to the steps below get your api credentials from the api key management docid\ r6h2n7uem46hxczgckqgn section the link to the zapier experience is provided in two places immediately after publishing a data machine, the unique link to the zapier is provided in the list of options the data machine list in the portal provides the link to the zapier testing experience with the unique zapier link the link provides access to the zapier testing interface where the newly created or updated data machine can be tested with any of the apps available on zapier an active account with zapier is required