Self-description and health#
From openapi.json: CrushMFT API, version v1, build 27.0.0_2143.
The API's own description (OpenAPI, Markdown, HTML), the health answers a load balancer or a container runtime asks for, and the long-running operations a 202 answer hands out.
GET /WebInterface/api/v1 #
The API version, the server version and edition, and where to find the description.
- Operation:
api.root - Credentials:
tokenorbasicorsession - Permission: any login
- Tier:
"" - Token: by its grants
- Read only: yes
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
api |
string | ||
base |
string | ||
caller |
whoami | ||
docs |
string | ||
docs_markdown |
string | ||
enterprise |
boolean | ||
openapi |
string | ||
operations_built |
integer | ||
operations_planned |
integer | ||
self_test |
array | ||
server_version |
string |
Example 200 response
{
"api": "v1",
"base": "/WebInterface/api/v1",
"server_version": "Version 27.0.0_319",
"enterprise": true,
"openapi": "/WebInterface/api/v1/openapi.json",
"docs": "/WebInterface/api/v1/docs",
"docs_markdown": "/WebInterface/api/v1/docs.md",
"caller": {
"kind": "token",
"username": "apiadmin",
"connection_group": "MainUsers",
"root": false
},
"operations_built": 276,
"operations_planned": 0
}
GET /WebInterface/api/v1/openapi.json #
The OpenAPI 3.1 description of this API. mine=true cuts it to what the caller may use now.
- Operation:
api.openapi - Credentials:
tokenorbasicorsession - Permission: any login
- Tier:
"" - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
mine |
query | boolean | Only the operations this caller may use as things stand. Default false. |
|
planned |
query | boolean | Also the operations that are in the registry but not built yet. Default false. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
This description: an OpenAPI 3.1 document. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
GET /WebInterface/api/v1/docs #
The reference as an HTML page.
- Operation:
api.docs - Credentials:
tokenorbasicorsession - Permission: any login
- Tier:
"" - Token: by its grants
- Read only: yes
Responses
| Status | Description | Body |
|---|---|---|
200 |
The description as an HTML page. | string text/html |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
GET /WebInterface/api/v1/docs.md #
The reference as one markdown file, for tools that read documentation as text.
- Operation:
api.docs.markdown - Credentials:
tokenorbasicorsession - Permission: any login
- Tier:
"" - Token: by its grants
- Read only: yes
Responses
| Status | Description | Body |
|---|---|---|
200 |
The description as one Markdown file. | string text/markdown |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
GET /WebInterface/api/healthz #
The process answers. No login.
- Operation:
health.live - Credentials: none
- Permission: any login
- Tier:
- - Legacy:
ping - Token: by its grants
- Read only: yes
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
status |
string |
Example 200 response
{
"status": "ok"
}
GET /WebInterface/api/readyz #
The server is started, its listeners are up and it is not shutting down. No login.
- Operation:
health.ready - Credentials: none
- Permission: any login
- Tier:
"" - Token: by its grants
- Read only: yes
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
status |
string |
Example 200 response
{
"status": "ready"
}
GET /WebInterface/api/v1/operations #
The caller's long-running operations.
- Operation:
operations.list - Credentials:
tokenorbasicorsession - Permission: any login
- Tier:
"" - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit |
query | integer | At most this many items, 1 to 1000. Default 100. |
|
cursor |
query | string | The next_cursor of the page before. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
items |
list of object | ||
items[].cancellable |
boolean | ||
items[].ended |
string | ||
items[].id |
string | ||
items[].operation |
string | ||
items[].progress |
integer | ||
items[].result |
object | ||
items[].result.items |
list of object | ||
items[].result.items[].modified |
string | ||
items[].result.items[].name |
string | ||
items[].result.items[].path |
string | ||
items[].result.items[].privs |
list of string | ||
items[].result.items[].size |
integer | ||
items[].result.items[].type |
string | ||
items[].result.path |
string | ||
items[].started |
string | ||
items[].state |
string | ||
next_cursor |
null |
Example 200 response
{
"items": [],
"next_cursor": null
}
GET /WebInterface/api/v1/operations/{id} #
One long-running operation: state, progress, and its result or error.
- Operation:
operations.get - Credentials:
tokenorbasicorsession - Permission: any login
- Tier:
"" - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The operation's id. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. | object application/json |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
cancellable |
boolean | ||
ended |
string | ||
id |
string | ||
operation |
string | ||
progress |
integer | ||
result |
object | ||
result.items |
list of object | ||
result.items[].modified |
string | ||
result.items[].name |
string | ||
result.items[].path |
string | ||
result.items[].privs |
list of string | ||
result.items[].size |
integer | ||
result.items[].type |
string | ||
result.path |
string | ||
started |
string | ||
state |
string |
Example 200 response
{
"id": "op-mws8jolv-2-7gnWIt",
"operation": "files.search.start",
"state": "succeeded",
"progress": 100,
"started": "2026-11-22T19:34:13.075Z",
"ended": "2026-11-22T19:34:13.296Z",
"cancellable": false,
"result": {
"path": "/",
"items": [
{
"name": "hello.txt",
"path": "/hello.txt",
"type": "file",
"size": 15,
"modified": "2026-11-22T19:23:40.769Z",
"privs": [
"read",
"view",
"resume"
]
}
]
}
}
POST /WebInterface/api/v1/operations/{id}/cancel #
Ask a running operation to stop.
- Operation:
operations.cancel - Credentials:
tokenorbasicorsession - Permission: any login
- Tier:
"" - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The operation's id. |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The result. Its fields are not described yet: no test run recorded this reply. | |
400 |
The request is not JSON, or a parameter is of the wrong kind. | Problem application/problem+json |
401 |
No credential, or one that did not log in. | Problem application/problem+json |
403 |
Logged in, and refused: detail says why, permission names what was missing. |
Problem application/problem+json |
404 |
No such object, or one outside the caller's scope. | Problem application/problem+json |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Schemas used here#
Problem #
An error (RFC 9457), as application/problem+json. code is stable and is what a program switches on; detail says it in words; request_id finds the request in the server log.
| Code | Status | Meaning |
|---|---|---|
bad_request |
400 | The request cannot be read: a broken path, an unknown or badly typed parameter, a body that is not a JSON object. |
validation_failed |
422 | The body is well-formed, but one or more of its fields cannot be used. errors lists each field, the rule and a message. |
unauthenticated |
401 | No credential, or one that did not log in. |
forbidden |
403 | Logged in, and refused. detail carries the reason the access engine gave. |
tier0 |
403 | The operation is equal to full control of the server. No token may use it, and of the accounts only the Administrator role. |
read_only_token |
403 | The token is read-only and the operation changes something. |
legacy_account |
403 | The account holds legacy admin flags, which the API does not act on. Convert it to roles, or issue a token for it. |
not_open_yet |
403 | The command behind the operation is not switched on for roles and tokens yet. An administrator's own login can use it. |
dmz_not_allowed |
403 | The request came through a DMZ, and the API does not answer those unless api_from_dmz allows it. |
edition_required |
403 | The operation needs an edition this server is not licensed for. |
not_found |
404 | No such operation, no such object, or an object the caller's scope does not cover. |
method_not_allowed |
405 | The path exists and the method does not. Allow lists the methods that do. |
conflict |
409 | The object already exists, or is in a state that does not allow this. |
precondition_failed |
412 | If-Match did not match: the object changed since it was read. |
payload_too_large |
413 | The body is larger than api_max_body_kb. |
unsupported_media_type |
415 | A body must be Content-Type: application/json. |
rate_limited |
429 | Too many requests for this credential or address in this minute. Retry-After says when to try again. |
internal_error |
500 | A fault in the server. The server log has the cause under the request id. |
not_implemented |
501 | The operation is in the registry and is not built on this server yet. |
unavailable |
503 | The server is starting or shutting down. |
fips_restricted |
409 | The server runs in FIPS 140-3 mode (launched with -Dcrushmft.fips=true), and FIPS mode does not allow what was asked: the detail is the catalog row's reason and what to use instead, fips_id its id (CrushFTP design/61 section 5). |
| Field | Type | Required | Description |
|---|---|---|---|
type |
string | ||
title |
string | ||
code |
string, one of bad_request, validation_failed, unauthenticated, forbidden, tier0, read_only_token, legacy_account, not_open_yet, dmz_not_allowed, edition_required, not_found, method_not_allowed, conflict, precondition_failed, payload_too_large, unsupported_media_type, rate_limited, internal_error, not_implemented, unavailable, fips_restricted |
||
detail |
string | ||
operation |
string | ||
permission |
string | ||
request_id |
string | ||
status |
integer |
whoami #
| Field | Type | Required | Description |
|---|---|---|---|
connection_group |
string | The user connection group of the account | |
exclude |
list of string | Permissions and roles taken away from this account | |
extra |
object | Keys this table does not name yet, and values that did not fit their field's type, as the server holds them. A read followed by a write of the same object loses nothing. | |
grants |
array | The effective grants, each with its source and tier | |
kind |
string | user or token | |
layers |
array | The roles each inheritance layer adds | |
legacy_flags |
list of string | Legacy admin flags of the account. The API does not act on them | |
roles |
list of string | Role ids | |
root |
boolean | Administrator role or legacy CONNECT, and not a token | |
root_equivalent |
boolean | Root, or a legacy flag that can make itself root | |
scope_jobs |
list of string | ||
scope_storage |
list of string | ||
scope_users |
list of string | ||
token |
object | For a token: its limits | |
unknown_roles |
list of string | Role ids the account names that the server does not have | |
user_id |
string | The account's stable id; it survives a rename | |
username |
string |