1. Using a tool such as Postman, construct the DaVinci API call using the POST method and the following URL structure.
    https://orchestrate-api.pingone.com/v1/company/<YOUR_COMPANY_ID>/policy/<YOUR_POLICY_ID>/start

    The headers should include your API key using the following format.

    X-SK-API-KEY=<YOUR_API_KEY>

    You can include one or more parameters in the call. If you do so, you must include these parameters in the input schema for the flow. The following examples include a userId parameter.

  2. Execute the API call. The response body will be the output from the Send Success JSON Response action.

This example uses cURL.

curl 
--location 
--request POST 'https://orchestrate-api.pingone.com/v1/company/731f6c64-619a-46e5-97a5-c7cf0be0a70e/policy/e31c3b327523685b8e71ab9d76c83346/start' \
--header 'X-SK-API-KEY: 08cfae28703bbbf166b1bef69161af08faba321c7d0b55a7ed3df614a9136140646638ea91b69e00cdc87f25df124df1c0ded58dc642f2cd81a90df5499fafab67dbd768fec633b5a0802ffee9736f07e713f35034bcefac7de8afcc3ea1cfbabbef5dbb23875e485dabd89899a41a0eb0d45b7388be362c103d24f1b0145a6d'
--header 'Content-Type: application/json'
--data '{
     "userId": "b7e5ad3e-ccbd-4043-b22e-8d6d3bf8f7be"
}'

This example uses JavaScript and Fetch.

const myHeaders = new Headers();
myHeaders.append("X-SK-API-Key",
"08cfae28703bbbf166b1bef69161af08faba321c7d0b55a7ed3df614a9136140646638ea91b69e00cdc87f25df124df1c0ded58dc642f2cd81a90df5499fafab67dbd768fec633b5a0802ffee9736f07e713f35034bcefac7de8afcc3ea1cfbabbef5dbb23875e485dabd89899a41a0eb0d45b7388be362c103d24f1b0145a6d");
myHeaders.append("Content-Type", "application/json");

const raw = JSON.stringify({
  "userId": "b7e5ad3e-ccbd-4043-b22e-8d6d3bf8f7be"
});

var requestOptions = {
  method: 'POST',
  headers: myHeaders,
  body: raw,
  redirect: 'follow'
};

fetch("https://orchestrate-api.pingone.com/v1/company/731f6c64-619a-46e5-97a5-c7cf0be0a70e/policy/e31c3b327523685b8e71ab9d76c83346/start", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

This example uses JavaScript and NodeJS - Axios.

const axios = require('axios');
let data = JSON.stringify({
  "userId": "b7e5ad3e-ccbd-4043-b22e-8d6d3bf8f7be"
});

let config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://orchestrate-api.pingone.com/v1/company/731f6c64-619a-46e5-97a5-c7cf0be0a70e/policy/e31c3b327523685b8e71ab9d76c83346/start',
  headers: {
  'X-SK-API-Key':
'08cfae28703bbbf166b1bef69161af08faba321c7d0b55a7ed3df614a9136140646638ea91b69e00cdc87f25df124df1c0ded58dc642f2cd81a90df5499fafab67dbd768fec633b5a0802ffee9736f07e713f35034bcefac7de8afcc3ea1cfbabbef5dbb23875e485dabd89899a41a0eb0d45b7388be362c103d24f1b0145a6d',
    'Content-Type': 'application/json'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});