App server HTTP API¶
This page summarizes the FastAPI endpoints implemented in konfai_apps.app_server.
Authentication is enforced through bearer tokens when the server runs with the
default --auth bearer mode.
Health and system endpoints¶
Method |
Path |
Purpose |
|---|---|---|
|
|
Health check. |
|
|
Visible GPU ids and names. |
|
|
Server RAM usage. |
|
|
VRAM usage for requested devices. |
App repository endpoints¶
Method |
Path |
Purpose |
|---|---|---|
|
|
List configured apps. |
|
|
Fetch app metadata and capabilities. |
|
|
Download app config files as a zip archive. |
Job submission endpoints¶
Method |
Path |
|---|---|
|
|
|
|
|
|
|
|
|
|
All job-submission endpoints return:
{
"job_id": "abc123",
"status_url": "/jobs/abc123",
"logs_url": "/jobs/abc123/logs",
"result_url": "/jobs/abc123/result"
}
Job control endpoints¶
Method |
Path |
Purpose |
|---|---|---|
|
|
Job metadata and status. |
|
|
Server-sent event log stream. |
|
|
Download the zipped result bundle. |
|
|
Terminate a running job. |
Notes on behavior¶
The following behavior is visible directly in the server code:
uploads are written into isolated temporary workspaces
jobs are scheduled with optional GPU allocation
logs are streamed over SSE
outputs are zipped before download
workspaces are deleted after a grace period