GET /api/debug/tasks/
Diagnostic snapshot of the current RTOS tasks and their stack watermarks.
Auth: Bearer token with powerUser access, or implicit powerUser access in diagnostic mode.
Response 200
Section titled “Response 200”{ "tasks": [ { "number": 1, "name": "Gate", "priority": 5, "stackMinFreeByte": 780, "stackSizeByte": 1024 }, { "number": 2, "name": "Logic", "priority": 4, "stackMinFreeByte": 1248, "stackSizeByte": 1600 } ]}Response fields
Section titled “Response fields”| Field | Type | Description |
|---|---|---|
tasks | array | Task list |
tasks[].number | number | RTOS xTaskNumber |
tasks[].name | string | Task name |
tasks[].priority | number | RTOS priority |
tasks[].stackMinFreeByte | number | All-time minimum free stack space, in bytes |
tasks[].stackSizeByte | number | Total stack size, in bytes |
If memory allocation fails → 507 ERROR_NO_MEMORY.