REST API
Read this page to get a token with an API key and call the qgon API from a program outside the server. It also covers how to read errors and what the external access level blocks. The full list of public paths is at the bottom.
Addresses
Section titled “Addresses”All HTTP traffic to the server comes in through one web port. Examples always start from a single server address variable. The web port is set at install time, and the default is 2551.
BASE="http://<server address>:<web port>"| Path | What it is | Credential |
|---|---|---|
/qgon-api/… |
The qgon API: experiments, datasets, models, test serving, endpoints, queues and more | Token |
/serve/<serving id>/… |
The test API | Personal key |
/endpoints/<name>/… |
Endpoint calls | Endpoint key, personal key |
/files/… |
Model and artifact file downloads | Token |
Call the REST API from a PC or server outside the server. Code inside workspaces and training jobs uses the SDK. From there, test APIs and endpoints are called at the in-server address the server sets up in advance (http://qdix-gateway:82). The path tails are the same as in the table above.
Authentication
Section titled “Authentication”There are several kinds of keys, and they are easy to mix up. Here they are by where the REST API uses them.
| Key | Where to create it | Where REST uses it |
|---|---|---|
| API key (access/secret) | Settings › API credentials | Get a token, then call /qgon-api and /files |
Personal key (qgk_…) |
Deploy › Playground › API usage | Test APIs, and endpoints within their scope |
Endpoint key (qge_…) |
Deploy › Endpoints › endpoint details › Keys | That endpoint |
| Workspace key | Set up access in a workspace | Not for REST. Only for the SDK inside the workspace |
The qgon app in the browser calls the same API with a sign-in cookie. Programs use a token obtained with an API key. A token carries the full permissions of the key's owner. A token from an admin's key can do admin actions too.
Get a token
Section titled “Get a token”- Create an API key in Settings › API credentials. The secret key is shown only once at creation, so copy it right away.
- Send the API key to the engine API
POST /api/auth.loginwith HTTP Basic authentication. The access key goes in the user name and the secret key in the password.data.tokenin the response is the token. - Add the
Authorization: Bearer <token>header when you call the qgon API.

BASE="http://<server address>:<web port>"ACCESS_KEY="…" # key created in Settings › API credentialsSECRET_KEY="…"
TOKEN=$(curl -s -X POST -u "$ACCESS_KEY:$SECRET_KEY" "$BASE/api/auth.login" \ | python3 -c 'import sys, json; print(json.load(sys.stdin)["data"]["token"])')
curl -H "Authorization: Bearer $TOKEN" "$BASE/qgon-api/me"curl -H "Authorization: Bearer $TOKEN" "$BASE/qgon-api/experiments?mine=1&status=completed"# pip install requestsimport osimport requests
BASE = "http://<server address>:<web port>"
r = requests.post(f"{BASE}/api/auth.login", auth=(os.environ["ACCESS_KEY"], os.environ["SECRET_KEY"]))r.raise_for_status()H = {"Authorization": "Bearer " + r.json()["data"]["token"]}
me = requests.get(f"{BASE}/qgon-api/me", headers=H).json()runs = requests.get(f"{BASE}/qgon-api/experiments", params={"mine": 1}, headers=H).json()When a token expires you get 401; get a new token then. Revoking a key does not end tokens already issued with it: they keep working until they expire (30 days by default). If a key or token leaked, revoke the key and tell your admin.
Errors
Section titled “Errors”The error body shape depends on the path.
| Path | Error body |
|---|---|
/qgon-api/… |
{"detail": "<message in Korean>", "code": "<error code>", "request_id": "<request number>"}. Some errors have no code |
/qgon-api/… input validation (422) |
The default validation error, where detail is an array. The text is in English |
/serve/…, /endpoints/… |
The OpenAI shape {"error": {"message", "type", "code"}} |
Programs should branch on the HTTP status and code, not on the message. Messages are meant for people and may change.
Every response carries an X-Request-Id header. The request_id in /qgon-api error bodies is the same value. When you report a problem to the admin, include this number so the admin can find the same request in the action log and the service logs.
Common statuses:
| Status | Meaning |
|---|---|
| 401 | The token or key is missing or expired |
| 403 | Not allowed. A code of lan_only means the action works only from the LAN, and external_denied means the external access level blocked it |
| 404 | The target does not exist, or you cannot see it |
| 409 | The request does not fit the current state (already done, for example) |
| 413 | The body is too large. Most /qgon-api bodies are capped at 4 MB. Send large files in chunks through the upload paths |
| 429 | Too many requests. If there is a Retry-After header, wait that long |
Same origin only
Section titled “Same origin only”The server does not send CORS headers. A web app hosted on another site cannot call the qgon API straight from the browser, and the server rejects state-changing requests from another origin with 403. To use the API from a web app, call it from the app's server side. Programs that send no Origin header (curl, Python and so on) are not affected.
Limits by external access level
Section titled “Limits by external access level”The server decides from the client address whether a request came from the LAN or from outside. Requests from the LAN have no limits. Requests from outside follow the external access level the admin set.
| External access level | What works from outside the server |
|---|---|
| Blocked | Nothing. Even getting a token is blocked |
| Read-only | Reading (GET), file downloads, and read actions such as marking notifications read |
| Read + basic actions | Read-only plus the groups the admin picked (Stop · start/stop, Run again, Workspace members) |
| Full access | Everything except LAN-only actions. Test API and endpoint calls work only at this level |
At any level, LAN-only actions are blocked from outside with 403 lan_only. These include the paths whose auth column reads Signed-in, LAN only in the list below (creating and deleting personal keys, issuing endpoint keys, saving and changing import tokens), and admin actions such as account, team and security settings. Even at Full access, an endpoint cannot be called from outside unless its Allow calls from outside setting is on.
To see how your own connection is classified, call GET /qgon-api/access/me. Setting the level is covered in Security and access.
Path list
Section titled “Path list”These are the public paths that server users can call. Admin-only paths and paths used only by the app screens are left out. In the auth column, Signed-in means an app sign-in or a token obtained with an API key. Replace each {…} in a path with the matching id or name.
Auth & account
Get a token and manage your account and keys. Only the token request is an engine API (/api) path; the rest are qgon API.
/api/auth.login Exchange an API key for a tokenEngine API. Use data.token from the response as Authorization: Bearer.API key (Basic)/qgon-api/me My account, role, teams, workspace summary and SSH keysSigned-in/qgon-api/access/me Whether I connect from the LAN or outside, and the external access levelSigned-in/qgon-api/credentials List my API keys (no secrets)Signed-in/qgon-api/credentials Create an API keysecret_key appears only in this response. The device addresses (api_server, files_server) come with it.Signed-in/qgon-api/credentials/{access_key} Revoke an API keySigned-in/qgon-api/keys Add an SSH public keyBody {key, name?}. Used for SSH into workspaces.Signed-in/qgon-api/keys/{key_id} Remove an SSH public keySigned-in/qgon-api/account/proxy-keys List keys kept for automatic requeueThe key values are never shown.Signed-in/qgon-api/account/proxy-keys/{key_id} Revoke a key kept for automatic requeueSigned-in/qgon-api/me/activity My action logPage with cursor (next_cursor in the response).Signed-inStarter templates
Browse starter templates and copy one into your workspace.
/qgon-api/templates List starter templates and whether they are readySigned-in/qgon-api/templates/{template_id} Template details (settings, license, code preview)Signed-in/qgon-api/templates/{template_id}/copy Copy into my workspaceBody {workspace, preset?}. Use copy_id from the response to check the result.Signed-in/qgon-api/templates/copies/{copy_id} Result of a copySigned-inDatasets
List dataset versions, and mount or unmount them.
/qgon-api/datasets List datasetsSigned-in/qgon-api/datasets/version/{task_id} Dataset version details (lineage, files, label distribution)Signed-in/qgon-api/datasets/materialized Mounted versions, with disk usageSigned-in/qgon-api/datasets/{version_id}/materialize Mount state of one versionSigned-in/qgon-api/datasets/{version_id}/materialize Request a mount202 means queued; 200 means it is already mounted.Signed-in/qgon-api/datasets/{version_id}/materialize Unmount (the source dataset stays)Signed-inUploads
The resumable upload sessions the browser uses. Upload in chunks, inspect, then commit a new dataset version.
/qgon-api/uploads/me Whether I can upload now, and the limitsSigned-in/qgon-api/uploads Create a resumable upload sessionSigned-in/qgon-api/uploads/{upload_id}/manifest Send the next part of the file listSigned-in/qgon-api/uploads/{upload_id} Upload a chunkContent-Type application/offset+octet-stream with an Upload-Offset header. Use HEAD to read the current offset.Signed-in/qgon-api/uploads/{upload_id} Session stateSigned-in/qgon-api/uploads/{upload_id} Cancel the upload (received data is deleted)Signed-in/qgon-api/uploads List my upload sessionsSigned-in/qgon-api/dataset-uploads/{upload_id}/inspect Start inspecting the uploaded filesSigned-in/qgon-api/dataset-uploads List my dataset upload jobsSigned-in/qgon-api/dataset-uploads/{upload_id} Inspection report and suggested valuesSigned-in/qgon-api/dataset-uploads/{upload_id}/preview/{n} Sample thumbnail (JPEG)Signed-in/qgon-api/dataset-uploads/{upload_id}/commit Commit a new dataset versionSigned-in/qgon-api/dataset-uploads/{upload_id}/cancel Cancel the upload jobSigned-inData Explorer
Index a dataset version and browse samples and distributions. Save a filtered view as a new version.
/qgon-api/explorer/status Index state of several versionsSigned-in/qgon-api/explorer/versions/{version_id}/status Index state and progress of one versionSigned-in/qgon-api/explorer/versions/{version_id}/index Start indexingSigned-in/qgon-api/explorer/versions/{version_id}/samples List samples (filter, sort, cursor)Signed-in/qgon-api/explorer/versions/{version_id}/samples/{sample_id} Sample detailsSigned-in/qgon-api/explorer/versions/{version_id}/samples/{sample_id}/thumb Sample thumbnail (JPEG)Signed-in/qgon-api/explorer/versions/{version_id}/samples/{sample_id}/preview Sample preview (JPEG)Signed-in/qgon-api/explorer/versions/{version_id}/samples/{sample_id}/annotations/{annotation_id}/mask Segmentation mask (PNG)Signed-in/qgon-api/explorer/versions/{version_id}/stats Label and split distribution, metadata rangesSigned-in/qgon-api/explorer/compare Compare two versionsSigned-in/qgon-api/explorer/versions/{version_id}/save Save the filtered samples as a new dataset versionSigned-inImports
Bring Hugging Face models and datasets and Git code onto the device. Saving or changing tokens works only from the LAN.
/qgon-api/imports/options Import sources, limits and policySigned-in/qgon-api/imports/inspect Inspect what would be importedStart the import with inspect_id from the response.Signed-in/qgon-api/imports/lookup Find something already importedSigned-in/qgon-api/imports Start an importSigned-in/qgon-api/imports List importsSigned-in/qgon-api/imports/{import_id} Import details and progressSigned-in/qgon-api/imports/{import_id}/cancel Cancel an importSigned-in/qgon-api/imports/{import_id}/retry Retry an importSigned-in/qgon-api/imports/{import_id}/model Delete an imported modelRefused while something uses it.Signed-in/qgon-api/account/import-credentials List my import tokens (no values)Signed-in/qgon-api/account/import-credentials Save a Hugging Face or Git tokenSigned-in, LAN only/qgon-api/account/import-credentials/{credential_id} Replace a tokenSigned-in, LAN only/qgon-api/account/import-credentials/{credential_id} Delete a tokenSigned-in, LAN only/qgon-api/account/import-credentials/{credential_id}/test Test a tokenSigned-inExperiments
Read experiment lists, summaries, logs, curves, comparisons and lineage. The SDK writes the records.
/qgon-api/experiments List experimentsFilter with project, mine, status, q and days.Signed-in/qgon-api/experiments/{task_id}/children Trials or steps under a controllerSigned-in/qgon-api/experiments/{task_id}/summary Experiment summary (key metric, all metrics, settings, environment, lineage)Signed-in/qgon-api/experiments/{task_id}/log Console logSigned-in/qgon-api/experiments/{task_id}/scalars Scalar curvesmetric may be repeated.Signed-in/qgon-api/experiments/{task_id}/files Output files and artifactsSigned-in/qgon-api/projects/{project_id}/primary-metric Remember my key metric for a projectSigned-in/qgon-api/compare Compare runs (2 to 20)Signed-in/qgon-api/compare/export Export the comparison table (CSV, LaTeX, Markdown)Signed-in/qgon-api/lineage Lineage graphkind is one of dataset_version, run or model.Signed-inRuns & checkpoints
Start a run from workspace code, rerun it, and resume from a checkpoint.
/qgon-api/runs Start a run from workspace codeYou must be a member of the workspace and have finished access setup.Signed-in/qgon-api/runs/{task_id}/rerun Rerun with the same settingsSigned-in/qgon-api/experiments/{task_id}/checkpoints List an experiment's checkpointsSigned-in/qgon-api/experiments/{task_id}/checkpoints/{model_id}/pin Pin a checkpointSigned-in/qgon-api/experiments/{task_id}/checkpoints/delete Delete checkpoints (to trash)Without confirm it only previews.Signed-in/qgon-api/experiments/{task_id}/checkpoints/restore Restore from trashSigned-in/qgon-api/experiments/{task_id}/resume Resume from a checkpointSigned-inQueue & dispatch
Queue order, urgent requests, GPU yield and dispatch status. Inside a workspace the SDK (qgon.queue) can call this group too. Admin moves such as top and bottom do not work with a workspace key.
/qgon-api/queues/{name}/order Queue orderMembers do not see other people's job names.Signed-in or workspace key/qgon-api/queues/{name}/move Move a waiting jobaction is up, down, top or bottom. top and bottom are admin only.Signed-in or workspace key/qgon-api/queues/urgent-requests List urgent requestsSigned-in or workspace key/qgon-api/queues/urgent-requests Send an urgent requestSigned-in or workspace key/qgon-api/queues/urgent-requests/{urgent_id}/cancel Cancel my urgent requestSigned-in or workspace key/qgon-api/dispatch/status Dispatch state, free memory and wait reasonsSigned-in or workspace key/qgon-api/dispatch/requeue/{task_id} Requeue a stopped jobSigned-in/qgon-api/dispatch/yield/{task_id} Ask a job to yield its GPUSigned-in or workspace key/qgon-api/dispatch/yield/{task_id} Cancel a yield requestSigned-in or workspace keyLLM fine-tuning
Everything the fine-tuning studio does: data check, estimate, start, stop, resume and merge.
/qgon-api/finetune/options Readiness, base model candidates and limitsSigned-in/qgon-api/finetune/datasets/{version_id}/files Training files in a mounted version (.jsonl, .json)Signed-in/qgon-api/finetune/dataset-check Check data format, errors and length distributionSigned-in/qgon-api/finetune/estimate Estimate memory and stepsSigned-in/qgon-api/finetune/runs Start fine-tuningSigned-in/qgon-api/finetune/runs List fine-tuning and merge runsSigned-in/qgon-api/finetune/runs/{task_id} Fine-tuning details (settings, progress, loss, before/after samples)Signed-in/qgon-api/finetune/runs/{task_id}/stop StopSigned-in/qgon-api/finetune/runs/{task_id}/resume ResumeSigned-in/qgon-api/finetune/runs/{task_id}/merge Build a merged modelSigned-inModels
List and publish models. Download model files from the /files links in the list.
/qgon-api/models List models (with key metric and download link)Signed-in/qgon-api/models/{model_id}/publish Publish a modelModel author (or the author of the run that made it) and admins.Signed-in/files/{path} Download a model or artifact fileUse the link from the model list as is. Uploads go through the SDK.Signed-inTest serving
Start, stop and configure Playground test servings. Personal keys (qgk_) are created here too.
/qgon-api/serving My test servings and shared ones I can useSigned-in/qgon-api/serving/models Models that can be startedSigned-in/qgon-api/serving/estimate Format check, reserved memory and whether it can start nowSigned-in/qgon-api/serving/predict-defaults Defaults for starting with custom inference codeFills in workspace, code folder, entry file and environment version from the run that made the model.Signed-in/qgon-api/serving Start a test servingReturns 202 at once. Poll GET /qgon-api/serving/{serving_id} for state.Signed-in/qgon-api/serving/{serving_id} Test serving state and model nameSigned-in/qgon-api/serving/{serving_id} Change sharing and idle timeSigned-in/qgon-api/serving/{serving_id}/logs Engine logStarter and admins only.Signed-in/qgon-api/serving/{serving_id}/stop Stop a test servingSigned-in/qgon-api/account/serve-keys List my personal keysSigned-in/qgon-api/account/serve-keys Create a personal keyThe key value appears only in this response.Signed-in, LAN only/qgon-api/account/serve-keys/{key_id} Delete a personal key (blocked at once)Signed-in, LAN onlyTest API calls
Addresses for calling one test serving. They sit right under the device address at /serve/<serving id>, not under /qgon-api, and errors use the OpenAI shape ({error:{message, type, code}}). LLMs use the /v1 paths; custom inference code uses predict, info and cancel.
/serve/{serving_id}/v1/models Model list (to find the model value)Personal key or signed-in/serve/{serving_id}/v1/chat/completions Chat (OpenAI compatible)With stream it returns SSE. Body up to 4 MB.Personal key or signed-in/serve/{serving_id}/v1/completions Text completion (OpenAI compatible)Personal key or signed-in/serve/{serving_id}/v1/embeddings Embeddings (OpenAI compatible)Personal key or signed-in/serve/{serving_id}/health Engine healthPersonal key or signed-in/serve/{serving_id}/predict Call custom inference codemultipart image (several allowed) or JSON {image | images | table, params}. Body up to 12 MB.Personal key or signed-in/serve/{serving_id}/info Input kind, classes and limitsPersonal key or signed-in/serve/{serving_id}/cancel Cancel the running requestThe requester, the starter or an admin.Personal key or signed-inEndpoint management
Create, stop, restart and delete endpoints and issue endpoint keys (qge_). Admins, the team lead and the creator manage them.
/qgon-api/endpoints List endpoints and device limitsSigned-in/qgon-api/endpoints Create an endpointfrom_serving (promote a test serving) or spec (LLM model directly). Returns 202.Signed-in/qgon-api/endpoints/{name} Endpoint details (address, state, reservation)404 if you cannot see it.Signed-in/qgon-api/endpoints/{name} Change title, description, scope or outside callsWidening the scope needs confirm: true.Signed-in/qgon-api/endpoints/{name} Delete an endpoint?confirm=<name>. Keys are revoked and the name stays reserved for 30 days.Signed-in/qgon-api/endpoints/{name}/revisions List versionsSigned-in/qgon-api/endpoints/{name}/stop StopBody {confirm: <name>}.Signed-in/qgon-api/endpoints/{name}/start Start againSigned-in/qgon-api/endpoints/{name}/events Event historySigned-in/qgon-api/endpoints/{name}/logs Engine logManagers only.Signed-in/qgon-api/endpoints/{name}/keys List endpoint keys (no values)Signed-in/qgon-api/endpoints/{name}/keys Issue an endpoint keyBody {name?, expires_days?, rpm_limit?}. The key value appears only in this response.Signed-in, LAN only/qgon-api/endpoints/{name}/keys/{key_id} Revoke an endpoint keySigned-inEndpoint calls
The production address, called by name. The paths match the test API, and for LLMs the model value is the endpoint name. While recovering it returns 503 with Retry-After.
/endpoints/{name}/v1/models Model list (model = endpoint name)Endpoint key, personal key or signed-in/endpoints/{name}/v1/chat/completions Chat (OpenAI compatible)Endpoint key, personal key or signed-in/endpoints/{name}/v1/completions Text completion (OpenAI compatible)Endpoint key, personal key or signed-in/endpoints/{name}/v1/embeddings Embeddings (OpenAI compatible)Endpoint key, personal key or signed-in/endpoints/{name}/health Health checkEndpoint key, personal key or signed-in/endpoints/{name}/predict Call custom inference code (same input as the test API predict)Endpoint key, personal key or signed-in/endpoints/{name}/info Input kind, classes and limitsEndpoint key, personal key or signed-in/endpoints/{name}/cancel Cancel the running requestEndpoint key, personal key or signed-inWorkspaces & environments
Start and stop your workspaces and list saved environment versions. Creating, deleting and member management are admin tasks and are not listed here.
/qgon-api/workspaces List my workspacesSigned-in/qgon-api/workspaces/{name} Workspace detailsSigned-in/qgon-api/workspaces/{name}/start StartSigned-in/qgon-api/workspaces/{name}/stop StopSigned-in/qgon-api/workspaces/{name}/logs Startup logSigned-in/qgon-api/workspaces/{name}/jobs Experiments sent from this workspaceSigned-in/qgon-api/workspaces/{name}/env List environment versionsSigned-in/qgon-api/task-envs Environment versions I can train withSigned-in/qgon-api/envs Environment versions across workspacesSigned-in/qgon-api/shared-envs List shared environmentsSigned-inTeams, resources & storage
Read team and pool quotas, GPU usage and storage usage.
/qgon-api/teams List teams (your own unless admin)Signed-in/qgon-api/teams/{team} Team details (members, quotas, limits)Signed-in/qgon-api/pools Pools with my teams' limits and usageSigned-in/qgon-api/resources Device and GPU metrics, jobs per poolSigned-in/qgon-api/usage GPU hours useddays and group (user or project).Signed-in/qgon-api/gpu/usage Device memory and what is using the GPU nowSigned-in/qgon-api/gpu/usage/task/{task_id} Peak and last GPU memory for a jobSigned-in/qgon-api/storage/usage My storage usageSigned-in/qgon-api/projects/{project_id}/storage Project storage (largest experiments first)Signed-in/qgon-api/storage/summary Device storage summarySigned-inNotifications
Read your notifications and turn each kind on or off.
/qgon-api/notifications My notificationsSigned-in/qgon-api/notifications/read Mark as read{ids: […]} or {all: true}.Signed-in/qgon-api/notifications/settings Notification settings by kindSigned-in/qgon-api/notifications/settings Change notification settingsSigned-in