Skip to main content
POST
/
api
/
workflow_manager
/
start
const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "your token");

const raw = JSON.stringify({
  "workflow": "industry_primer",
  "industry": "gaming",
  "workbook_name": "Industry Research - Gaming"
});

const requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow"
};

fetch("{{path}}/api/workflow_manager/start/", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));
{
    "report_id": 123345
}

Overview

Starts generating an Industry Research report for your specified industry.

Endpoint Details

  • Method: POST
  • Endpoint: api/workflow_manager/start/

Authentication requirements

  • Include a valid JWT token in your request header
  • If you don’t have a token yet, you can get one from the /auth/token/ endpoint first.

Request

Request Parameters

Header Parameters

token
string
required
JWT token obtained from the Authentication request

Body Parameters

industry
string
required
Industry on which the report will be created
workflow
string
required
industry_primer
custom_files
array of objects
Files to include in the report. Use fileName values from the file upload response

Response

Success response will include the report_id of the Industry Research report

Successful Response Fields

report_id
integer
Report id of the Industry Research
const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
myHeaders.append("Authorization", "your token");

const raw = JSON.stringify({
  "workflow": "industry_primer",
  "industry": "gaming",
  "workbook_name": "Industry Research - Gaming"
});

const requestOptions = {
  method: "POST",
  headers: myHeaders,
  body: raw,
  redirect: "follow"
};

fetch("{{path}}/api/workflow_manager/start/", requestOptions)
  .then((response) => response.text())
  .then((result) => console.log(result))
  .catch((error) => console.error(error));
{
    "report_id": 123345
}