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.
The address
Section titled “The address”Every address starts with /api/v1:
https://insightjet.ai/api/v1The 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.
Get an API key
Section titled “Get an API key”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.
Before your first ticket run
Section titled “Before your first ticket run”A ticket run needs a crawl that has at least one ticket. Check both from your script:
export INSIGHTJET_API_KEY="<your key>"curl https://insightjet.ai/api/v1/crawls -H "Authorization: Bearer $INSIGHTJET_API_KEY"-
Check the key. The answer is
200with an array of your crawls. A401means the key was refused; see Authentication. -
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. -
Check it has a ticket. Take a crawl’s
idfrom 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 emptyticketsarray 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.
What it can do
Section titled “What it can do”| Area | What you can do | Page |
|---|---|---|
| Crawls | List crawls, read one, start one | Crawls |
| Tickets | List, read, create and edit tickets, set a status, list and add comments, ask for suggestions and create tickets from them | Tickets and ticket runs |
| Ticket runs | Start a run, list runs, read where one stands (or wait for it), read its result, run it again, stop it | Tickets and ticket runs |
| Test cases | List, read and read the history of test cases, run one (also as a page-object test), read test reports, run history and test flows | Test cases |
| Page-object suites | List suites, read a suite, a page object and its history, run a suite, update it from the latest tests, publish it to GitHub | Page-object suites |
| Discoveries | List, start and read discoveries, generate test cases from one | Discoveries and app knowledge |
| App knowledge | Read what runs have verified about an application | Discoveries and app knowledge |
| Integrations | Read your GitHub rules and the team’s Jira and Linear connections (read only) | Integrations and team |
| Team | List the members of the key’s team | Integrations 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.
Try it
Section titled “Try it”The API reference links the OpenAPI document and the API playground, where you can make calls with your own key.
- Authentication: the header, what a refused key looks like, revoking a key
- Errors and limits: the error shape and every code
- Cost labels: what each label means and which operation has which