Skip to main content
This script shows the full API workflow in one file. Use it as a base for your own agent. It uses the requests library.

Before you run it

  • Complete the one-time setup.
  • Set KALLIGATOR_API_KEY to a Read and write key.
  • Choose a program with open intake. Read its scope. Confirm that your asset is in scope.
  • Put your evidence file next to the script, for example request.txt.

The script

submit_report.py

How it works

Make it your own

  • Store state. Write report_id and revision to a file. If the script stops, run the next step again with the same IDs.
  • Poll many reports. To follow all your reports, use GET /api/reports?updated_since=.... See Retries and polling.
  • Handle conflicts. On revision_conflict, the error body has current. Merge your change into it and save again.
  • Send files with a reply. Upload the file with the file route first. Then send its ID in the files list of the message.