{% extends "docs/base_docs.html" %} {% block docs_content %}
{{ group.description }}
Every HTML route returns JSON with Accept: application/json. Authentication: session cookie, X-API-KEY, Authorization: Bearer or Basic.
{{ item.path }}{{ item.min_role }}{{ item.description }}
{% endif %} {% if item.fields %}| Field | Type | Location | Required |
|---|---|---|---|
{{ f.name }}{% if f.enum %}Allowed: {{ f.enum | join(', ') }} {% endif %} | {{ f.type }} | {{ f.location }} | {{ 'yes' if f.required else 'no' }} |
{{ item.curl }}
const response = await fetch("{{ item.path }}", { method: "{{ item.method }}", headers: { "Accept": "application/json" } });
console.log(await response.json());
import httpx
print(httpx.request("{{ item.method }}", BASE + "{{ item.path }}", headers={"Accept": "application/json", "X-API-KEY": API_KEY}).json())
{{ item.sample | tojson(indent=2) if item.sample is not none else 'No example' }}
{% if item.interactive %}
Not sent yet.
{{ service.name }}{{ service.description }}
Fields: {% for f in service.fields %}{{ f.key }} ({{ f.type }}){% if not loop.last %}, {% endif %}{% endfor %}