Skip to content

API

You have a script, a build job or a small tool of your own that should start ticket runs in InsightJet and read what they found. The InsightJet API is plain REST over HTTPS with JSON bodies, for exactly that.

It does the same things the assistant tools do, but it is not built on MCP: you do not need an MCP client, and a script sends ordinary HTTP requests. The OpenAPI document names, for each operation, the assistant tool that does the same thing.

Every address starts with /api/v1:

https://insightjet.ai/api/v1

The API answers every path under /api/v1 itself. An address it does not have is a JSON 404 with the code not_found. It sets no CORS header, so a web page on another site cannot read its answers; call it from a server or a script.

Make one in Settings → Keys → API keys with New API key. The steps, how long a key lasts and how to revoke it are on Keys; how to send it is on Authentication. The same screen shows a one-line curl command to try it from a terminal.

A ticket run needs a crawl that has at least one ticket. Check both from your script:

Terminal window
export INSIGHTJET_API_KEY="<your key>"
curl https://insightjet.ai/api/v1/crawls -H "Authorization: Bearer $INSIGHTJET_API_KEY"
  1. Check the key. The answer is 200 with an array of your crawls. A 401 means the key was refused; see Authentication.

  2. Check there is a crawl. An empty array, [], means you have no crawl yet: learn an app in InsightJet (the Learn button) or start a crawl through the API.

  3. Check it has a ticket. Take a crawl’s id from the list and read its tickets:

    Terminal window
    curl https://insightjet.ai/api/v1/crawls/42/tickets -H "Authorization: Bearer $INSIGHTJET_API_KEY"

    The answer is {"tickets": [...]}. An empty tickets array means that crawl has no tickets yet; create one first.

Expected result: a 200 with at least one crawl and, for it, at least one ticket. Then go on to Tickets and ticket runs.

AreaWhat you can doPage
CrawlsList crawls, read one, start oneCrawls
TicketsList, read, create and edit tickets, set a status, list and add comments, ask for suggestions and create tickets from themTickets and ticket runs
Ticket runsStart a run, list runs, read where one stands (or wait for it), read its result, run it again, stop itTickets and ticket runs
Test casesList, read and read the history of test cases, run one (also as a page-object test), read test reports, run history and test flowsTest cases
Page-object suitesList suites, read a suite, a page object and its history, run a suite, update it from the latest tests, publish it to GitHubPage-object suites
DiscoveriesList, start and read discoveries, generate test cases from oneDiscoveries and app knowledge
App knowledgeRead what runs have verified about an applicationDiscoveries and app knowledge
IntegrationsRead your GitHub rules and the team’s Jira and Linear connections (read only)Integrations and team
TeamList the members of the key’s teamIntegrations and team

Every operation carries one of four cost labels that say what a call does before you make it.

Nothing in the API deletes anything. A request can only change a ticket that the key’s owner created or currently owns.

The API reference links the OpenAPI document and the API playground, where you can make calls with your own key.