WebAPIs are used to enable systems to call a Workflow within the Kinetic Platform.

Example Usage

jQuery Example

// You may need to change headers in order to comply with CSRF protection.
// For example the header may look something like:
// headers: {"X-XSRF-TOKEN": Cookies.get("XSRF-TOKEN")}

var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://space_slug.kinops.io/app/webApis/generate-survey?timeout=10",
    "method": "POST",
    "headers": {}
}

$.ajax(settings).done(function (response) {
    console.log(response);
});

Ruby Example

require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://space_slug.kinops.io/app/webApis/generate-survey?timeout=10")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body

Curl

curl --request POST \
    --url 'https://space_slug.kinops.io/app/webApis/generate-survey?timeout=10'

Did this page help you?