{% extends "base.html" %} {% import "_ui.html" as ui %} {% block title %}API{% endblock %} {% block crumbs %}API reference{% endblock %} {% block content %} {%- set auth = "-u USER:PASSWORD " if needs_auth else "" -%} {%- macro fill(path) -%}{{ path.replace("{run_id}", samples.run_id or "{run_id}").replace("{jid}", samples.jid or "{jid}") }}{%- endmacro -%} {%- macro curl(e) -%} {%- set url = base ~ fill(e.path) -%} {%- if e.method == "GET" -%} curl {{ auth }}{{ "-OJ " if e.path.endswith(("download", ".jsonl")) }}"{{ url }}" {%- else -%} curl {{ auth }}-X POST "{{ url }}"{% for f in e.fields if f.where in ("form", "file") %} \ -F {% if f.where == "file" %}"{{ f.name }}=@report.pdf"{% else %}"{{ f.name }}=<{{ f.type or "value" }}>"{% endif %}{% endfor %} {%- endif -%} {%- endmacro -%}
Drive ti2dac from a SOAR playbook, CI pipeline or script: start analyses, poll jobs, pull rules and queries, and record reviews and test results. Every action in this UI is an HTTP call you can make yourself.
ti2dac user add). Approvals need the approver role.
{% else %}Local single-user mode: no login, loopback only. Add users with ti2dac user add before exposing the server.{% endif %}
-F) and answer 303 with a Location; long work returns a job to poll at
/api/jobs/{jid}. Cross-origin browser posts are refused; scripts without an Origin header are fine.
{{ desc }}
{{ e.path }}
{{ e.doc.replace('`', '') }}
{{ ui.icon("chevron-right", "sm chev") }}
{{ curl(e) }}
Analyse a report, wait for the job, then fetch the rules.