{% extends "base.html" %} {% block title %}REST API{% endblock %} {% block body %}

REST API explorer

The production REST server is mounted in-process under /api. Interactive docs live at /api/docs.

{% for method, path, desc in endpoints %} {% endfor %}
MethodPathDescription
{{ method }}{{ path }}{{ desc }}

Example

curl -s http://localhost:8020/api/v1/evaluate \
  -H "Authorization: Bearer $FATHOM_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"facts":[{"template":"request","data":{"action":"read"}}],"ruleset":""}'
{% endblock %}