Shares#
From openapi.json: CrushMFT API, version v1, build 27.0.0_2143.
The shares users made, and the caller's own shares.
GET /WebInterface/api/v1/shares #
Every share of every user, as an administrator sees them. The share's password and anything holding it never come back; the link comes with the password masked.
- Operation:
shares.list - Credentials:
tokenorbasicorsession - Permission:
shares.all.view - Tier:
2 - Legacy:
getTempAccounts - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
owner |
query | string | Only the shares of this user. | |
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[].allow_uploads |
boolean | ||
items[].attach |
boolean | ||
items[].connection_group |
string | ||
items[].created |
string | ||
items[].direct_link |
boolean | ||
items[].email |
object | ||
items[].email.bcc |
string | ||
items[].email.cc |
string | ||
items[].email.from |
string | ||
items[].email.subject |
string | ||
items[].email.to |
string | ||
items[].expires |
string | ||
items[].id |
string | ||
items[].link |
string | ||
items[].max_logins |
null | ||
items[].owner |
string | ||
items[].password |
object | ||
items[].password.set |
boolean | ||
items[].paths |
list of string | ||
items[].privileges |
list of object | ||
items[].privileges[].path |
string | ||
items[].privileges[].privs |
list of string | ||
items[].shared_with_users |
boolean | ||
items[].type |
string | ||
items[].usernames |
array | ||
items[].usernames_privs |
list of string | ||
next_cursor |
null |
Example 200 response
{
"items": [],
"next_cursor": null
}
GET /WebInterface/api/v1/shares/{id}/files #
The items of one share and where each points.
- Operation:
shares.files.list - Credentials:
tokenorbasicorsession - Permission:
shares.all.view - Tier:
2 - Legacy:
getTempAccountFiles - Token: by its grants
- Read only: yes
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The share: its user name, the id the list gives. |
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 |
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 |
|---|---|---|---|
items |
list of object | ||
items[].name |
string | ||
items[].url |
string | ||
next_cursor |
null | ||
share |
string |
Example 200 response
{
"items": [],
"next_cursor": null,
"share": "nrQKUDgYUX"
}
POST /WebInterface/api/v1/shares/{id}/files #
Add a file from the shares' storage folder to a share, copied or as a reference.
- Operation:
shares.files.add - Credentials:
tokenorbasicorsession - Permission:
shares.all.edit - Tier:
1 - Legacy:
addTempAccountFile - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The share's id, as the list gives it. |
dry_run |
query | boolean | Run every check, add nothing. Default false. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
file |
string | yes | A file in the shares' storage folder (temp_accounts_path). |
reference |
boolean | Point the share at the file instead of copying it. Default false. |
Example request body
{
"file": "./TempAccounts/gate_add.txt"
}
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created. | 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 |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 201 response
| Field | Type | Required | Description |
|---|---|---|---|
added |
string | ||
files |
integer | ||
id |
string |
Example 201 response
{
"id": "jA4HWqhQjn",
"added": "gate_add.txt",
"files": 2
}
PATCH /WebInterface/api/v1/shares/{id} #
Change when a share ends.
- Operation:
shares.update - Credentials:
tokenorbasicorsession - Permission:
shares.all.edit - Tier:
2 - Legacy:
addTempAccount - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The share: its user name, the id the list gives. |
dry_run |
query | boolean | Run every check, change nothing, and answer what would change. Default false. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
expires |
string | yes | When the share ends, such as 2026-12-31T23:00:00Z. Kept to the minute. |
Example request body
{
"expires": "2031-01-15T10:00:30Z"
}
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 |
412 |
If-Match did not match: someone changed the object since it was read. |
Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
allow_uploads |
boolean | ||
attach |
boolean | ||
changes |
list of object | ||
changes[].field |
string | ||
changes[].new |
string | ||
changes[].old |
string | ||
connection_group |
string | ||
created |
string | ||
direct_link |
boolean | ||
email |
object | ||
email.bcc |
string | ||
email.cc |
string | ||
email.from |
string | ||
email.subject |
string | ||
email.to |
string | ||
expires |
string | ||
id |
string | ||
link |
string | ||
max_logins |
null | ||
owner |
string | ||
password |
object | ||
password.set |
boolean | ||
paths |
list of string | ||
privileges |
list of object | ||
privileges[].path |
string | ||
privileges[].privs |
list of string | ||
shared_with_users |
boolean | ||
type |
string | ||
usernames |
array | ||
usernames_privs |
list of string |
Example 200 response
{
"id": "nrQKUDgYUX",
"owner": "apishare1",
"connection_group": "MainUsers",
"type": "reference",
"paths": [
"/pub/hello.txt"
],
"created": "2026-11-22T19:29:00Z",
"expires": "2031-01-15T10:00:00Z",
"max_logins": null,
"allow_uploads": false,
"attach": false,
"direct_link": false,
"shared_with_users": false,
"usernames": [],
"usernames_privs": [
"view",
"read"
],
"email": {
"to": "",
"cc": "",
"bcc": "",
"from": "",
"subject": ""
},
"link": "http://192.0.2.10:443/?u=nrQKUDgYUX\u0026p=********",
"password": {
"set": true
},
"privileges": [
{
"path": "/",
"privs": [
"read",
"view",
"resume"
]
}
],
"changes": [
{
"field": "expires",
"old": "2030-12-31T09:00:00Z",
"new": "2031-01-15T10:00:00Z"
}
]
}
DELETE /WebInterface/api/v1/shares/{id} #
Delete a share: its account and the copies it holds. Files it only refers to stay.
- Operation:
shares.delete - Credentials:
tokenorbasicorsession - Permission:
shares.all.edit - Tier:
2 - Legacy:
removeTempAccount - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The share: its user name, the id the list gives. |
dry_run |
query | boolean | Run every check, change nothing, and answer what would be deleted. Default false. |
Responses
| Status | Description | Body |
|---|---|---|
204 |
Done, with nothing to answer. | |
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 |
DELETE /WebInterface/api/v1/shares/{id}/files/{name} #
Take one item out of a share.
- Operation:
shares.files.remove - Credentials:
tokenorbasicorsession - Permission:
shares.all.edit - Tier:
2 - Legacy:
removeTempAccountFile - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The share: its user name, the id the list gives. |
name |
path | string | yes | The item's name, as the share's file list gives it. |
dry_run |
query | boolean | Run every check, change nothing, and answer what would be removed. Default false. |
Responses
| Status | Description | Body |
|---|---|---|
204 |
Done, with nothing to answer. | |
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 |
GET /WebInterface/api/v1/me/shares #
The shares the caller made: type, paths, times, logins, downloads, recipients. Passwords masked.
- Operation:
me.shares.list - Credentials:
tokenorbasicorsession - Permission:
self.shares.manage - Tier:
2 - Legacy:
manageShares - 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[].allow_uploads |
boolean | ||
items[].comments |
string | ||
items[].created |
string | ||
items[].downloads |
integer | ||
items[].email |
object | ||
items[].email.bcc |
string | ||
items[].email.cc |
string | ||
items[].email.subject |
string | ||
items[].email.to |
string | ||
items[].expires |
string | ||
items[].id |
string | ||
items[].link |
string | ||
items[].max_logins |
integer | ||
items[].password |
object | ||
items[].password.set |
boolean | ||
items[].paths |
list of string | ||
items[].shared_with_users |
boolean | ||
items[].type |
string | ||
items[].usernames |
array | ||
next_cursor |
null |
Example 200 response
{
"items": [],
"next_cursor": null
}
POST /WebInterface/api/v1/me/shares #
Share paths of the caller's files: a link (copy, move or reference) or with users of the server. The link and its password are answered once.
- Operation:
me.shares.create - Credentials:
tokenorbasicorsession - Permission:
self.shares.create - Tier:
2 - Legacy:
publish,publish_attach - Token: by its grants
- Read only: no
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
paths |
array | yes | Paths of the caller's files to share. |
type |
string, one of reference, copy, move |
A link to the files where they are, a copy, or moved into the share. Default reference. |
|
expires |
string | yes | When the share ends, such as 2026-12-31T18:00:00Z. Required: a share is not made without an end date. |
max_logins |
integer | How many logins the link allows; -1 for no limit. | |
allow_uploads |
boolean | Whoever has the link may upload. Default false. |
|
direct_link |
boolean | A link that downloads the file at once. Default false. |
|
usernames |
array | Share with these users of the server instead of by a link. | |
usernames_privs |
string | Their privileges, such as (read)(view)(resume). | |
email_to |
array | Mail the link to these addresses. | |
email_subject |
string | The mail's subject. | |
email_body |
string | The mail's text. | |
comments |
string | A note kept with the share. | |
base_url |
string | The address the link starts with; the server's own when left out. |
Example request body
{
"paths": [
"/pub/hello.txt"
],
"type": "reference",
"expires": "2026-11-24T19:32:05Z",
"max_logins": 5
}
Responses
| Status | Description | Body |
|---|---|---|
201 |
Created. | 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 |
409 |
The object exists already, or its state does not allow this. | Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 201 response
| Field | Type | Required | Description |
|---|---|---|---|
email_sent |
boolean | ||
id |
string | ||
link |
string | ||
message |
string | ||
password |
string | ||
username |
string |
Example 201 response
{
"id": "jA4HWqhQjn",
"username": "jA4HWqhQjn",
"password": "4EFxw2pYpC",
"link": "?u=jA4HWqhQjn\u0026p=4EFxw2pYpC",
"message": "The share was made."
}
PATCH /WebInterface/api/v1/me/shares/{id} #
Change one of the caller's shares: when it ends, how many logins, its keywords.
- Operation:
me.shares.update - Credentials:
tokenorbasicorsession - Permission:
self.shares.manage - Tier:
2 - Legacy:
editTempAccount - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The share's id, as the list gives it. |
Request body (required): application/json
| Field | Type | Required | Description |
|---|---|---|---|
expires |
string | When the share ends. | |
max_logins |
integer | How many logins the link allows; -1 for no limit. | |
keywords |
string | The share's keywords. |
Example request body
{
"max_logins": 3
}
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 |
412 |
If-Match did not match: someone changed the object since it was read. |
Problem application/problem+json |
422 |
A field fails its rule: errors lists every one. |
Problem application/problem+json |
default |
Any other error. | Problem application/problem+json |
Fields of the 200 response
| Field | Type | Required | Description |
|---|---|---|---|
allow_uploads |
boolean | ||
comments |
string | ||
created |
string | ||
downloads |
integer | ||
email |
object | ||
email.bcc |
string | ||
email.cc |
string | ||
email.subject |
string | ||
email.to |
string | ||
expires |
string | ||
id |
string | ||
link |
string | ||
max_logins |
integer | ||
password |
object | ||
password.set |
boolean | ||
paths |
list of string | ||
shared_with_users |
boolean | ||
type |
string | ||
usernames |
array |
Example 200 response
{
"id": "jA4HWqhQjn",
"type": "reference",
"paths": [
"/pub/hello.txt"
],
"created": "2026-11-22T19:32:00Z",
"expires": "2026-11-24T19:32:00Z",
"max_logins": 3,
"downloads": 0,
"allow_uploads": false,
"shared_with_users": false,
"usernames": [],
"comments": "",
"email": {
"to": "",
"cc": "",
"bcc": "",
"subject": ""
},
"link": "?u=jA4HWqhQjn\u0026p=********",
"password": {
"set": true
}
}
DELETE /WebInterface/api/v1/me/shares/{id} #
Delete one of the caller's shares.
- Operation:
me.shares.delete - Credentials:
tokenorbasicorsession - Permission:
self.shares.manage - Tier:
2 - Legacy:
deleteTempAccount - Token: by its grants
- Read only: no
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | yes | The share's id, as the list gives it. |
dry_run |
query | boolean | Run every check, delete nothing. Default false. |
Responses
| Status | Description | Body |
|---|---|---|
204 |
Done, with nothing to answer. | |
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 |
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 |