Skip to content

API integrations and team

You want a script to see how InsightJet is connected to your other tools, and who is on your team. These operations are all read only. Connecting an integration, changing what it sends and disconnecting it stay in InsightJet’s Settings. No answer carries a token, a cursor, a client secret or an internal row id. The commands assume the variables from Tickets and ticket runs.

Terminal window
curl "$BASE/integrations/github/watch-rules" -H "Authorization: Bearer $INSIGHTJET_API_KEY"

Your GitHub watch rules, as { "rules": [...] }. Each says: when a push, a merged pull request, a finished workflow run, a new or changed GitHub issue or an opened pull request happens on a branch of a repository, create a ticket in a crawl.

Terminal window
curl "$BASE/integrations/github/board-rules" -H "Authorization: Bearer $INSIGHTJET_API_KEY"

Your GitHub project automations, as { "rules": [...] }. Each says: when an issue card of the chosen repositories is on a GitHub project, create a ticket in a crawl.

The fields of a rule are not confirmed.

Expected result: status 200 and a rules array, empty if you have none.

Terminal window
curl "$BASE/integrations/jira" -H "Authorization: Bearer $INSIGHTJET_API_KEY"
curl "$BASE/integrations/linear" -H "Authorization: Bearer $INSIGHTJET_API_KEY"

Whether your team has the tool connected, the Jira site and project (or the Linear workspace and team), which issues became tickets, what is written back, whether it is on or paused, when it was last checked and the last error in words. They answer for the team the key was made for. The fields are not confirmed.

Expected result: status 200 and the connection, also when the team has none connected.

Terminal window
curl "$BASE/team/members" -H "Authorization: Bearer $INSIGHTJET_API_KEY"
{ "members": [ { "id": 5, "name": "Dana Example" } ] }

The members of the key’s team: each person’s id and name, nothing else. A personal key has no team and lists none. You need these ids to give a ticket an ownerId or to mention someone in a comment (see Tickets and ticket runs).

Expected result: status 200 and a members array.