Administration.
These calls need an administrator and a key with the admin scope. Several of them also need another license feature, named on the call. Reading the license does not.
See the API reference for the key, errors, and the licence spelling of the license routes.
Settings
POST /api/v1/client-errors
Report a portal page that failed to draw. Kept in the audit trail as portal.error.
Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
reference | string | required | |
message | string | required | |
page | string | optional | |
stack | string | optional | |
browser | string | optional | The browser's own description of itself. |
{
"reference": "example",
"message": "The cut is in the folder.",
"page": "example",
"stack": "example",
"browser": "example"
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | reference is required |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "reference is required"
}
}
GET /api/v1/admin/transfer-settings
How long a transfer link stays valid before its transfer starts, and how the server compares a file that is already there: {linkMinutes, defaultMinutes, minMinutes, maxMinutes, resumeHours, fileCompare}.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
fileCompare is off (never give a checksum), known (only checksums the server already has; the default) or full (also read a file for its checksum, in the background).
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
linkMinutes | integer | required | |
defaultMinutes | integer | required | |
minMinutes | integer | required | |
maxMinutes | integer | required | |
resumeHours | integer | required | How long after its first use a broken transfer can be continued with the same ticket. Set on the time limits screen. |
fileCompare | string | required | When a file with the same name is already there: off (no checksums), known (only checksums the server has) or full (also read files for theirs). |
{
"linkMinutes": 1,
"defaultMinutes": 1,
"minMinutes": 1,
"maxMinutes": 1,
"resumeHours": 24,
"fileCompare": "example"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/admin/transfer-settings
Change it with {linkMinutes, fileCompare?}. A value outside its range is refused, not clamped. Link times apply to links made from then on; file comparison at once.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
linkMinutes | integer | required | |
fileCompare | string | optional | Left as it is when not given. |
{
"linkMinutes": 1,
"fileCompare": "example"
}
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
linkMinutes | integer | required | |
defaultMinutes | integer | required | |
minMinutes | integer | required | |
maxMinutes | integer | required | |
resumeHours | integer | required | How long after its first use a broken transfer can be continued with the same ticket. Set on the time limits screen. |
fileCompare | string | required | When a file with the same name is already there: off (no checksums), known (only checksums the server has) or full (also read files for theirs). |
{
"linkMinutes": 1,
"defaultMinutes": 1,
"minMinutes": 1,
"maxMinutes": 1,
"resumeHours": 24,
"fileCompare": "example"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a value outside its allowed range |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "a value outside its allowed range"
}
}
GET /api/v1/admin/peer-locations
The location an administrator confirmed for a far-end address or host name, given as ?address=. Returns {location}; location is left out when none is saved.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
address | query | string | required |
Success. 200.
| Field | Type | Meaning | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
location | Place | optional, left out when empty | |||||||||||||||||
It is an object:
| |||||||||||||||||||
{
"location": {
"name": "Rush delivery",
"lat": 1,
"lon": 1
}
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/admin/peer-locations
Confirm where a far-end address or host name is with {address, location: {name, lat, lon}}, or {address, location: null} to remove it. A confirmed location wins over the city database. Written to the audit log.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
address | string | required | |||||||||||||||||
location | Place | optional | null removes the saved location. | ||||||||||||||||
It is an object:
| |||||||||||||||||||
{
"address": "example",
"location": {
"name": "Rush delivery",
"lat": 1,
"lon": 1
}
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
location | Place | optional, left out when empty | |||||||||||||||||
It is an object:
| |||||||||||||||||||
{
"location": {
"name": "Rush delivery",
"lat": 1,
"lon": 1
}
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | not an address or host name, or a coordinate off the globe |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "not an address or host name, or a coordinate off the globe"
}
}
GET /api/v1/admin/time-limits
Every expiry an administrator may change: {limits: [{id, value, default, min, max, unit}], receiveAllowNever}.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Ids: transferLink, transferResume, sessionIdle, sessionMax, passwordReset, packageDownload, receiveLink, receiveUpload, desktopHandoff. Unit is minutes, hours or days.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
limits | array of objects | required | |||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||
receiveAllowNever | boolean | required | Whether people may make receive links that never expire. | ||||||||||||||||||||||||||||
{
"limits": [
{
"id": "k7Qm2sLp9vX4aB1c",
"value": 1,
"default": 1,
"min": 1,
"max": 1,
"unit": {}
}
],
"receiveAllowNever": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/admin/time-limits
Change any of them with {limits: {id: value}, receiveAllowNever}; what is left out keeps its value.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
A value outside its range, or an id this server does not know, is refused and nothing is changed. A shorter transfer resume window or session limit also applies to links and sessions already open.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
limits | object | optional | |
receiveAllowNever | boolean | optional |
{
"limits": {},
"receiveAllowNever": true
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
limits | array of objects | required | |||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||
receiveAllowNever | boolean | required | Whether people may make receive links that never expire. | ||||||||||||||||||||||||||||
{
"limits": [
{
"id": "k7Qm2sLp9vX4aB1c",
"value": 1,
"default": 1,
"min": 1,
"max": 1,
"unit": {}
}
],
"receiveAllowNever": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a value outside its allowed range, or an unknown id |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "a value outside its allowed range, or an unknown id"
}
}
GET /api/v1/admin/sign-in-policy
Password rules, lockout and session timeout.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
passwordMinLength | integer | required | |
passwordRequireMixedCase | boolean | required | |
passwordRequireDigit | boolean | required | |
passwordRequireSymbol | boolean | required | |
requireTotp | boolean | required | Whether every account must carry an authenticator code, rather than each person deciding for themselves. |
lockoutAttempts | integer | required | |
lockoutMinutes | integer | required | |
sessionIdleMinutes | integer | required |
{
"passwordMinLength": 1,
"passwordRequireMixedCase": true,
"passwordRequireDigit": true,
"passwordRequireSymbol": true,
"requireTotp": true,
"lockoutAttempts": 1,
"lockoutMinutes": 1,
"sessionIdleMinutes": 1
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/admin/sign-in-policy
Change them. A value outside its range is refused, not clamped. sessionIdleMinutes may be left out to keep what is set.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
passwordMinLength | integer | required | |
passwordRequireMixedCase | boolean | required | |
passwordRequireDigit | boolean | required | |
passwordRequireSymbol | boolean | required | |
requireTotp | boolean | required | |
lockoutAttempts | integer | required | |
lockoutMinutes | integer | required | |
sessionIdleMinutes | integer | optional | Left out to keep what is set. The time limits screen owns it now. |
{
"passwordMinLength": 1,
"passwordRequireMixedCase": true,
"passwordRequireDigit": true,
"passwordRequireSymbol": true,
"requireTotp": true,
"lockoutAttempts": 1,
"lockoutMinutes": 1,
"sessionIdleMinutes": 1
}
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
passwordMinLength | integer | required | |
passwordRequireMixedCase | boolean | required | |
passwordRequireDigit | boolean | required | |
passwordRequireSymbol | boolean | required | |
requireTotp | boolean | required | Whether every account must carry an authenticator code, rather than each person deciding for themselves. |
lockoutAttempts | integer | required | |
lockoutMinutes | integer | required | |
sessionIdleMinutes | integer | required |
{
"passwordMinLength": 1,
"passwordRequireMixedCase": true,
"passwordRequireDigit": true,
"passwordRequireSymbol": true,
"requireTotp": true,
"lockoutAttempts": 1,
"lockoutMinutes": 1,
"sessionIdleMinutes": 1
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a value outside its allowed range |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "a value outside its allowed range"
}
}
GET /api/v1/admin/appearance
Company name, logos, accent color, sign-in page text, globe route, footer links and notice, and what the accent measures against white.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
appearance | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
accentContrast | number | required | The measured contrast of white text on the accent. Returned so the screen can show how a color is doing while it is being chosen, rather than only when saving it fails. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
included | boolean | required | Whether the license includes custom branding. When it does not, recipients see the product's own look and saving is refused; what is stored is kept for when a license that includes it is loaded. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"appearance": {
"companyName": "example",
"accent": "example",
"logo": "example",
"logoDark": "example",
"eyebrow": "example",
"headline": "example",
"subtext": "example",
"linkLabel": "example",
"linkUrl": "example",
"cardTitle": "example",
"cardSubtitle": "example",
"globe": true,
"routeFrom": "example",
"routeTo": "example",
"footerLinks": [
{
"label": "example",
"url": "example"
}
],
"notice": "example"
},
"accentContrast": 1,
"included": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/admin/appearance
Change them.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when this server's license does not include custom branding.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
companyName | string | required | |||||||||||||
accent | string | required | |||||||||||||
logo | string | required | Empty removes the logo, which is the only way to go back to the product's own mark once one has been uploaded. | ||||||||||||
logoDark | string | optional | |||||||||||||
eyebrow | string | optional | |||||||||||||
headline | string | optional | |||||||||||||
subtext | string | optional | |||||||||||||
linkLabel | string | optional | |||||||||||||
linkUrl | string | optional | |||||||||||||
cardTitle | string | optional | |||||||||||||
cardSubtitle | string | optional | |||||||||||||
globe | boolean | optional | |||||||||||||
routeFrom | string | optional | |||||||||||||
routeTo | string | optional | |||||||||||||
footerLinks | array of objects | optional | |||||||||||||
Each item is an object:
| |||||||||||||||
notice | string | optional | |||||||||||||
{
"companyName": "example",
"accent": "example",
"logo": "example"
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
appearance | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
accentContrast | number | required | The measured contrast of white text on the accent. Returned so the screen can show how a color is doing while it is being chosen, rather than only when saving it fails. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
included | boolean | required | Whether the license includes custom branding. When it does not, recipients see the product's own look and saving is refused; what is stored is kept for when a license that includes it is loaded. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"appearance": {
"companyName": "example",
"accent": "example",
"logo": "example",
"logoDark": "example",
"eyebrow": "example",
"headline": "example",
"subtext": "example",
"linkLabel": "example",
"linkUrl": "example",
"cardTitle": "example",
"cardSubtitle": "example",
"globe": true,
"routeFrom": "example",
"routeTo": "example",
"footerLinks": [
{
"label": "example",
"url": "example"
}
],
"notice": "example"
},
"accentContrast": 1,
"included": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a color white text cannot be read on, a logo that is not a plain PNG or SVG, text over its length, or a link that is not https or mailto |
| 402 | licence_required | this server's license does not include custom branding |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "bad_request",
"message": "a color white text cannot be read on, a logo that is not a plain PNG or SVG, text over its length, or a link that is not https or mailto"
}
}
DELETE /api/v1/admin/appearance
Return to the Farwing defaults: every logo, color, text and link is removed.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
appearance | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
accentContrast | number | required | The measured contrast of white text on the accent. Returned so the screen can show how a color is doing while it is being chosen, rather than only when saving it fails. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
included | boolean | required | Whether the license includes custom branding. When it does not, recipients see the product's own look and saving is refused; what is stored is kept for when a license that includes it is loaded. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"appearance": {
"companyName": "example",
"accent": "example",
"logo": "example",
"logoDark": "example",
"eyebrow": "example",
"headline": "example",
"subtext": "example",
"linkLabel": "example",
"linkUrl": "example",
"cardTitle": "example",
"cardSubtitle": "example",
"globe": true,
"routeFrom": "example",
"routeTo": "example",
"footerLinks": [
{
"label": "example",
"url": "example"
}
],
"notice": "example"
},
"accentContrast": 1,
"included": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/service-accounts
Service accounts, what each is for, and how many keys it holds.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
The body is an array.
| Field | Type | Meaning | |
|---|---|---|---|
id | string | required | The id. |
name | string | required | The name. |
purpose | string | required | |
keys | integer | required | |
lastUsedAt | string | optional | A time, as RFC 3339. |
disabled | boolean | required |
[
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"purpose": "example",
"keys": 1,
"lastUsedAt": "2026-10-05T18:00:00Z",
"disabled": true
}
]
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/service-accounts
Make a service account. It cannot sign in; it only holds API keys.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
name | string | required | The name. |
purpose | string | optional |
{
"name": "Rush delivery",
"purpose": "example"
}
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
id | string | required | The id. |
name | string | required | The name. |
purpose | string | required | |
keys | integer | required | |
lastUsedAt | string | optional | A time, as RFC 3339. |
disabled | boolean | required |
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"purpose": "example",
"keys": 1,
"lastUsedAt": "2026-10-05T18:00:00Z",
"disabled": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/admin/system
Version, uptime, disk, health checks and backups. A figure this platform cannot measure is absent rather than guessed.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
version | string | required | |||||||||||||||||||||
build | string | required | The version and the commit it was built from, such as 0.4.0 (abc1234). | ||||||||||||||||||||
installId | string | required | The id. | ||||||||||||||||||||
startedAt | string | required | When this process started, not when the installation was made. | ||||||||||||||||||||
uptimeSeconds | integer | required | Counted from [started_at], so it is the age of the process. See the note there for why it can read low on a server nobody has looked at. | ||||||||||||||||||||
database | object | required | |||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||
disk | array of objects | required | |||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
checks | array of objects | required | |||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
backups | array of objects | required | |||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
{
"version": "example",
"build": "example",
"installId": "k7Qm2sLp9vX4aB1c",
"startedAt": "2026-10-05T18:00:00Z",
"uptimeSeconds": 1,
"database": {
"path": "projects/rush",
"bytes": 1048576,
"schemaVersion": 1
},
"disk": [
{
"name": "Rush delivery",
"path": "projects/rush",
"bytesFree": 1,
"bytesTotal": 1
}
],
"checks": [
{
"name": "Rush delivery",
"ok": true,
"detail": "example"
}
],
"backups": [
{
"name": "Rush delivery",
"bytes": 1048576,
"modifiedAt": "2026-10-05T18:00:00Z"
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/admin/system/logs
The audit trail as a text file. The process log goes to standard output, where the container runtime keeps it.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/admin/system/support
Whether this release is still supported, and the notice to show as end of support nears.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. line is the release line (1.x), status is current, security or ended, endOfSupport is a date when one is announced, upgradeTo names the newest current line, and notice is ending from six months before end of support and ended from that day. The list is read from farwing.io at most once a day; without internet access the list built into this release is used. Null for a 0.x release.
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
line | string | optional | The release line it belongs to, such as 1.x; null when none is listed. |
status | string | required | current, security or ended. |
endOfSupport | string | optional | YYYY-MM-DD, when one has been announced. |
upgradeTo | string | optional | The newest current line, to name in an upgrade notice. |
notice | string | optional | ending from six months before end of support, ended from that day; null otherwise. |
policyUrl | string | required |
{
"line": "example",
"status": "example",
"endOfSupport": "example",
"upgradeTo": "example",
"notice": "example",
"policyUrl": "example"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/admin/system/backups
One page of database backups, newest first.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. total is how many backups there are in all. Without limit the page holds 20; the largest page is 100.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
limit | query | integer | optional | How many backups to return, from 1 to 100. Defaults to 20. |
offset | query | integer | optional | How many backups to skip. Defaults to 0. |
Success. 200.
| Field | Type | Meaning | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
items | array of objects | required | The records in this reply. | ||||||||||||||||
Each item is an object:
| |||||||||||||||||||
total | integer | required | How many matched, including ones not on this page. | ||||||||||||||||
limit | integer | required | |||||||||||||||||
offset | integer | required | |||||||||||||||||
{
"items": [
{
"name": "Rush delivery",
"bytes": 1048576,
"modifiedAt": "2026-10-05T18:00:00Z"
}
],
"total": 1,
"limit": 50,
"offset": 1
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/system/backups/delete
Delete one or more database backups by file name.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Names that are not in the backups folder are skipped. At most 100 names per request.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
names | array of string | required |
{
"names": [
"Rush delivery"
]
}
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
deleted | array of string | required |
{
"deleted": [
"example"
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | Choose at least one backup to delete. |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "Choose at least one backup to delete."
}
}
GET /api/v1/admin/system/backups/{name}
Download one database backup file.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
name | path | string | required | The file name as returned by the backups list. |
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | not_found | not there, or not visible to this caller |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "not_found",
"message": "not found"
}
}
GET /api/v1/admin/usage/recount
The storage count running now, the locations waiting, and what each location's last count found.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
running | Progress | optional, left out when empty | |||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||
queued | array of string | required | |||||||||||||||||||||||||||||
last | array of objects | required | |||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||
{
"running": {
"rootId": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"files": 1,
"bytes": 1048576,
"seconds": 1,
"previousBytes": 1
},
"queued": [
"example"
],
"last": [
{
"rootId": "k7Qm2sLp9vX4aB1c",
"files": 1,
"bytes": 1048576,
"seconds": 1,
"unreadable": 1,
"error": "example"
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/usage/recount
Count what is in the storage locations again, for files added or removed outside Farwing. Optional body: {rootId} for one location. Answers 202 at once; the count runs in the background, one location at a time.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. JSON.
The body may be left out.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
rootId | string | optional | One location. Absent counts every one. |
{
"rootId": "k7Qm2sLp9vX4aB1c"
}
Success. 202.
| Field | Type | Meaning | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
running | Progress | optional, left out when empty | |||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||
queued | array of string | required | |||||||||||||||||||||||||||||
last | array of objects | required | |||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||
{
"running": {
"rootId": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"files": 1,
"bytes": 1048576,
"seconds": 1,
"previousBytes": 1
},
"queued": [
"example"
],
"last": [
{
"rootId": "k7Qm2sLp9vX4aB1c",
"files": 1,
"bytes": 1048576,
"seconds": 1,
"unreadable": 1,
"error": "example"
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | not_found | no such storage location |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "not_found",
"message": "not found"
}
}
GET /api/v1/admin/folders
The folders directly inside a folder.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
With root, inside that storage location, each with how many spaces, automations, links and packages use it or something in it. Without root, on the server's own disk, each marked when it is a storage location, is inside or holds one, is or holds the server's data folder, or belongs to the system, and with canAdd saying whether a folder can be added in the one listed; an empty path lists the top of the disk.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
root | query | string | optional | The storage location. Leave out for the server's disk. |
path | query | string | optional | The folder: inside the location, or a full path on the server. |
filter | query | string | optional | Only names containing this. |
Encode the query value. A slash in a path may stay as / or be written %2F; the server reads the decoded value. Do not put a leading slash on the path.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
path | string | optional, left out when empty | The folder listed, as the server writes it. Server listings only. | ||||||||||||||||||||||||||||||||||||
parent | string | optional, left out when empty | |||||||||||||||||||||||||||||||||||||
status | Status | optional, left out when empty | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
canAdd | boolean | optional, left out when empty | Server listings only: whether a folder can be added here. | ||||||||||||||||||||||||||||||||||||
folders | array of objects | required | |||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||
truncated | boolean | required | |||||||||||||||||||||||||||||||||||||
places | array of objects | required | |||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||
{
"path": "projects/rush",
"parent": "example",
"status": {
"kind": "file",
"location": "example"
},
"canAdd": true,
"folders": [
{
"name": "Rush delivery",
"path": "projects/rush",
"uses": 1,
"status": {
"kind": "file",
"location": "example"
}
}
],
"truncated": true,
"places": [
{
"label": "example",
"path": "projects/rush",
"location": true
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/folders
Add a folder. Body: {"root", "path" (the folder it goes in), "name"}.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
root | string | optional | |
path | string | optional | The folder, or for a new one the folder it goes in. |
name | string | optional | The name. |
confirm | string | optional | The folder's name, typed, when deleting it takes files with it. |
{
"root": "k7Qm2sLp9vX4aB1c",
"path": "projects/rush",
"name": "Rush delivery",
"confirm": "example"
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
path | string | required | A path relative to the space or the storage location, with / between folders and no leading slash. | ||||||||||||||||||||||||||||||||||||
name | string | required | The name. | ||||||||||||||||||||||||||||||||||||
uses | array of objects | required | |||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||
{
"path": "projects/rush",
"name": "Rush delivery",
"uses": [
{
"kind": {},
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"path": "projects/rush",
"here": true,
"detail": "example",
"onRename": {},
"onDelete": {}
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the name cannot be used, or the folder it goes in belongs to the system or the server's own data |
| 409 | conflict | something by that name is already there |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the name cannot be used, or the folder it goes in belongs to the system or the server's own data"
}
}
GET /api/v1/admin/folders/impact
What renaming or deleting a folder would do, without doing it: what is in it, everything that uses it and what happens to each, and anything that stops the change.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
root | query | string | optional | The storage location. Leave out for the server's disk. |
path | query | string | optional | The folder. |
filter | query | string | optional |
Encode the query value. A slash in a path may stay as / or be written %2F; the server reads the decoded value. Do not put a leading slash on the path.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name | string | required | The name. | ||||||||||||||||||||||||||||||||||||||||||||
path | string | required | A path relative to the space or the storage location, with / between folders and no leading slash. | ||||||||||||||||||||||||||||||||||||||||||||
empty | boolean | required | |||||||||||||||||||||||||||||||||||||||||||||
contents | object | required | |||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||
uses | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||
renameRefused | string | optional, left out when empty | Why it cannot be renamed at all. | ||||||||||||||||||||||||||||||||||||||||||||
deleteRefused | string | optional, left out when empty | Why it cannot be deleted, apart from what uses it. | ||||||||||||||||||||||||||||||||||||||||||||
confirm | boolean | required | Deleting needs the folder's name typed, because files go with it. | ||||||||||||||||||||||||||||||||||||||||||||
{
"name": "Rush delivery",
"path": "projects/rush",
"empty": true,
"contents": {
"files": 1,
"folders": 1,
"bytes": 1048576,
"more": true,
"top": 1,
"sample": [
{
"name": "Rush delivery",
"folder": true
}
]
},
"uses": [
{
"kind": {},
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"path": "projects/rush",
"here": true,
"detail": "example",
"onRename": {},
"onDelete": {}
}
],
"renameRefused": "example",
"deleteRefused": "example",
"confirm": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/folders/rename
Rename a folder in place.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Spaces, personal folders, access, hot folders, sync jobs, receive links, API keys, server links, packages and storage locations that use it are moved to the new name in the same step; the reply lists them. Event rules that may mention it are listed to check. Body: {"root", "path", "name"}.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
root | string | optional | |
path | string | optional | The folder, or for a new one the folder it goes in. |
name | string | optional | The name. |
confirm | string | optional | The folder's name, typed, when deleting it takes files with it. |
{
"root": "k7Qm2sLp9vX4aB1c",
"path": "projects/rush",
"name": "Rush delivery",
"confirm": "example"
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
path | string | required | A path relative to the space or the storage location, with / between folders and no leading slash. | ||||||||||||||||||||||||||||||||||||
name | string | required | The name. | ||||||||||||||||||||||||||||||||||||
uses | array of objects | required | |||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||
{
"path": "projects/rush",
"name": "Rush delivery",
"uses": [
{
"kind": {},
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"path": "projects/rush",
"here": true,
"detail": "example",
"onRename": {},
"onDelete": {}
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the name cannot be used, the folder belongs to the system, or it is a folder with files in a bucket |
| 409 | conflict | something by that name is already there |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the name cannot be used, the folder belongs to the system, or it is a folder with files in a bucket"
}
}
POST /api/v1/admin/folders/delete
Delete a folder.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Refused while anything other than access uses it; access to it is removed with it. A folder with files in it needs its name in confirm, and outside a storage location only an empty folder can be deleted. Body: {"root", "path", "confirm"}.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
root | string | optional | |
path | string | optional | The folder, or for a new one the folder it goes in. |
name | string | optional | The name. |
confirm | string | optional | The folder's name, typed, when deleting it takes files with it. |
{
"root": "k7Qm2sLp9vX4aB1c",
"path": "projects/rush",
"name": "Rush delivery",
"confirm": "example"
}
Success. 200.
The reply has no body.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the name was not typed, or the folder cannot be deleted from here |
| 409 | conflict | something still uses it |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the name was not typed, or the folder cannot be deleted from here"
}
}
POST /api/v1/preview/open
Open a file in the viewer.
Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.
Body: {space, path} or {root, path}, with optional purpose (view or thumb) and replaces, the session of the file the viewer moved on from. Answers {session, outcome, kind, format, route, url, size, width, height, version, purpose, details, download, captions}. outcome is ok, noPreview, tooLarge, kindOff, spaceOff, scanning, held or busy; only ok has a url and a session. details is {name, size, modified, uploadedBy, space, folder, scan, activity} for the Details panel; download is {url, desktop, command}, the download route and whether Farwing Desktop and the terminal command can be offered; captions lists {label, url} for caption files beside a video. The file's bytes are checked against its name before anything is served. A failed request carries its error code in X-Preview-Error, and the server log has the same code.
Request body. None.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | not_found | no such file, or this caller may not see it |
| 429 | too_many_requests | too many previews opened in a short time; ask again after Retry-After |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "not_found",
"message": "not found"
}
}A 429 also sends Retry-After, the number of seconds to wait.
GET /api/v1/preview/file
The bytes of an open preview, inline, with a content type from a short allow-list and a policy that runs nothing in the file.
Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.
Honors one range: bytes=A-B, bytes=A- (at most 16 MiB per answer) or bytes=-N; of several ranges only the first is answered. HEAD is answered with the same headers.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
space | query | string | optional | The space, when the path is relative to one. |
root | query | string | optional | The storage location, otherwise. |
path | query | string | optional | The file. |
s | query | string | optional | The session /preview/open gave. |
sidecar | query | string | optional | One of the caption files /preview/open listed for this session, by name: answered whole, as text/vtt or text/plain. |
Encode the query value. A slash in a path may stay as / or be written %2F; the server reads the decoded value. Do not put a leading slash on the path.
Success. 200.
JSON object.
A Range request that the server can satisfy answers 206 with that part of the file.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | not_found | no such open preview for this caller and file |
| 412 | | changed: the file changed since the preview opened; open it again |
| 416 | | the range starts past the end of the file, or a thumbnail asked for more than it may read |
| 503 | unavailable | busy: too many previews are open; ask again in a moment |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "not_found",
"message": "not found"
}
}
POST /api/v1/preview/ping
Keep an open preview open while the viewer shows it. Body: {session}. A preview with no request and no ping for 90 seconds closes.
Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.
Request body. None.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | not_found | no such open preview for this caller |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "not_found",
"message": "not found"
}
}
POST /api/v1/preview/close
Close a preview. Body: {session, bytes}; bytes is what the browser received and counts only for a preview straight from cloud storage. Closing one that is already closed is fine.
Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.
Request body. None.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/preview/thumb
A thumbnail of an image for the Files grid: a WebP at most 320 pixels wide, made on this server from JPEG, PNG, GIF (first frame), WebP, BMP or TIFF.
Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.
None for an image over the thumbnail cut-off on System → File previews, when previews of images are off or only from cloud storage, or in a space with previews off. Cached by the browser for a day, with the file's version as its ETag.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
space | query | string | optional | The space, when the path is relative to one. |
root | query | string | optional | The storage location, otherwise. |
path | query | string | optional | The file. |
v | query | string | optional | The version the folder listing gave, so a changed file gets a new thumbnail in the browser's cache. |
Encode the query value. A slash in a path may stay as / or be written %2F; the server reads the decoded value. Do not put a leading slash on the path.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 304 | | the version in If-None-Match is still the file's |
| 404 | not_found | no thumbnail for this file, or this caller may not see it |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "not_found",
"message": "not found"
}
}
GET /api/v1/admin/automation
The server's automation limit and how many days the detail of each file is kept.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
limits | object | required | |||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||
fileDetailDays | integer | required | How many days the detail of each file is kept. | ||||||||||||||||||||
parallel | boolean | optional | Hot folders and syncs run side by side, rather than one after another. | ||||||||||||||||||||
timeZone | string | optional | The server's time zone, which the window is read in. The same one traffic schedules and scheduled rules use. Left out keeps it. | ||||||||||||||||||||
allowPrivateWebhooks | boolean | optional | Rules may call webhooks on this server's own networks. Left out keeps it. | ||||||||||||||||||||
{
"limits": {
"maxBps": 1,
"maxAtOnce": 1,
"windowFrom": "example",
"windowTo": "example"
},
"fileDetailDays": 1,
"parallel": true,
"timeZone": "example",
"allowPrivateWebhooks": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/admin/automation
Change them.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
limits.maxBps is a speed in bits per second shared by every hot folder and sync. limits.maxAtOnce is how many files they send at once. With limits.windowFrom and limits.windowTo (HH:MM), the limit applies only inside that window. While people are transferring, automation sends one file at a time. fileDetailDays is 1 to 365; files a sync removed and files that failed are kept as long as their batch, which is two years. parallel (default true) runs hot folders and syncs side by side, up to six at once; false runs them one after another. allowPrivateWebhooks (default false) lets rule webhooks call addresses on this server's own networks; left out keeps it.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
limits | object | required | |||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||
fileDetailDays | integer | required | How many days the detail of each file is kept. | ||||||||||||||||||||
parallel | boolean | optional | Hot folders and syncs run side by side, rather than one after another. | ||||||||||||||||||||
timeZone | string | optional | The server's time zone, which the window is read in. The same one traffic schedules and scheduled rules use. Left out keeps it. | ||||||||||||||||||||
allowPrivateWebhooks | boolean | optional | Rules may call webhooks on this server's own networks. Left out keeps it. | ||||||||||||||||||||
{
"limits": {
"maxBps": 1,
"maxAtOnce": 1,
"windowFrom": "example",
"windowTo": "example"
},
"fileDetailDays": 1,
"parallel": true,
"timeZone": "example",
"allowPrivateWebhooks": true
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
limits | object | required | |||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||
fileDetailDays | integer | required | How many days the detail of each file is kept. | ||||||||||||||||||||
parallel | boolean | optional | Hot folders and syncs run side by side, rather than one after another. | ||||||||||||||||||||
timeZone | string | optional | The server's time zone, which the window is read in. The same one traffic schedules and scheduled rules use. Left out keeps it. | ||||||||||||||||||||
allowPrivateWebhooks | boolean | optional | Rules may call webhooks on this server's own networks. Left out keeps it. | ||||||||||||||||||||
{
"limits": {
"maxBps": 1,
"maxAtOnce": 1,
"windowFrom": "example",
"windowTo": "example"
},
"fileDetailDays": 1,
"parallel": true,
"timeZone": "example",
"allowPrivateWebhooks": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a limit or a time is not valid |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "a limit or a time is not valid"
}
}
GET /api/v1/automation/batches
Automation as batches, newest first: one per sync run, one per hot folder burst, and one per burst received from a connected server.
Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.
A burst ends after ten minutes with nothing sent. active is true only while one of the job's files is sending, and sending says how many; a job sending its first file before it has a batch is listed first with an id starting live:. status says how many files automation is sending and waiting to send, and what is slowing it.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
before | query | string | optional | Only batches started before this time, to page back. |
limit | query | integer | optional | At most this many, up to 500. |
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
items | array of objects | required | The records in this reply. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
status | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"items": [
{
"id": "k7Qm2sLp9vX4aB1c",
"source": "example",
"jobId": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"startedAt": "2026-10-05T18:00:00Z",
"lastAt": "2026-10-05T18:00:00Z",
"active": true,
"sending": 1,
"files": 1,
"failed": 1,
"bytes": 1048576
}
],
"status": {
"sending": 1,
"waiting": 1,
"limitedBy": [
"example"
]
}
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/automation/holds
The files of one hot folder or sync that someone skipped or paused, newest first. A pause past its end time is not listed.
Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
jobKind | query | string | required | hot_folder or sync. |
jobId | query | string | required | The hot folder's or sync's id. |
limit | query | integer | optional |
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | jobKind is not hot_folder or sync |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "jobKind is not hot_folder or sync"
}
}
DELETE /api/v1/automation/holds/{id}
Resume a skipped or paused file. The job sends it at its next look.
Who. Any user with a key that has the write scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | not_found | not there, or not visible to this caller |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "not_found",
"message": "not found"
}
}
GET /api/v1/automation/history
What one hot folder or sync sent, and who skipped, paused or resumed its files, newest first.
Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.
kind is sent, failed, stopped, sending, skip, pause, resumed, expired or changed. transferId links a file to its transfer; by names who decided.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
jobKind | query | string | required | hot_folder or sync. |
jobId | query | string | required | The hot folder's or sync's id. |
limit | query | integer | optional | At most this many, up to 500. Default 100. |
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | jobKind is not hot_folder or sync |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "jobKind is not hot_folder or sync"
}
}
GET /api/v1/attention
What needs someone right now, with what happened, what it affects, how to fix it and a link to the page where it is fixed.
Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.
An item goes away when the problem is fixed. Administrators get connection items; people who run automation get hot folder and sync items. counts gives the number of items for each area.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
items | array of objects | required | The records in this reply. | ||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||
counts | object | required | |||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||
{
"items": [
{
"id": "k7Qm2sLp9vX4aB1c",
"area": {},
"what": "2026-10-05T18:00:00Z",
"affects": "example",
"fix": "example",
"link": "example",
"since": "example"
}
],
"counts": {
"connections": 1,
"hotFolders": 1,
"sync": 1,
"directory": 1
}
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/destinations
Saved destinations a watched folder or a sync job can send to.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
The body is an array.
| Field | Type | Meaning | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | required | The id. | ||||||||||||||||||||||||||||
name | string | required | The name. | ||||||||||||||||||||||||||||
kind | string | required | |||||||||||||||||||||||||||||
address | string | required | |||||||||||||||||||||||||||||
port | integer | optional | |||||||||||||||||||||||||||||
username | string | required | |||||||||||||||||||||||||||||
folder | string | required | |||||||||||||||||||||||||||||
config | value | required | |||||||||||||||||||||||||||||
hasSecret | boolean | required | |||||||||||||||||||||||||||||
identity | string | optional | |||||||||||||||||||||||||||||
identityChanged | boolean | required | |||||||||||||||||||||||||||||
identityNew | string | optional | For an SSH place, the different server key the host showed. | ||||||||||||||||||||||||||||
identityConfirmedAt | string | optional | When someone confirmed the saved server key. None while it was only saved at the first sign-in. | ||||||||||||||||||||||||||||
speed | string | required | |||||||||||||||||||||||||||||
speedReason | string | optional | |||||||||||||||||||||||||||||
health | string | required | |||||||||||||||||||||||||||||
healthDetail | string | optional | |||||||||||||||||||||||||||||
lastTestedAt | string | optional | A time, as RFC 3339. | ||||||||||||||||||||||||||||
linkId | string | optional | The id. | ||||||||||||||||||||||||||||
connection | PlaceConnection | optional | For a folder a connected server shares: which server, the level, and whether it is still shared. Such a place follows the connection. | ||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||
maxConnections | integer | optional | Connections this place allows at once. None for no limit. | ||||||||||||||||||||||||||||
usedBy | object | required | |||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||
createdAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||||||||||
location | Place | optional, left out when empty | Where the place is on the Home map. Absent until one is saved. | ||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||
[
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"kind": "shared",
"address": "example",
"username": "example",
"folder": "example",
"config": {
"file": {
"name": "rush.mov"
}
},
"hasSecret": true,
"identityChanged": true,
"speed": "example",
"health": "example",
"usedBy": {
"hotFolders": 1,
"syncJobs": 1,
"rules": 1
},
"createdAt": "2026-10-05T18:00:00Z"
}
]
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/destinations
Save a destination after its connection has been checked and a folder chosen.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
SSH and SFTP take a password or an OpenSSH private key. FTP and FTPS take a password. A bucket takes the same settings as a storage location: the service, the region, an endpoint when it is not Amazon S3, and an access key or this server's role. The port may be its own field or written in the address.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
name | string | required | The name. |
kind | string | required | |
address | string | optional | |
port | integer | optional | |
username | string | optional | |
folder | string | optional | |
config | value | optional | |
secret | string | optional |
{
"name": "Rush delivery",
"kind": "shared",
"address": "example",
"port": 443,
"username": "example",
"folder": "example",
"config": {
"file": {
"name": "rush.mov"
}
},
"secret": "a-secret-shown-once"
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | required | The id. | ||||||||||||||||||||||||||||
name | string | required | The name. | ||||||||||||||||||||||||||||
kind | string | required | |||||||||||||||||||||||||||||
address | string | required | |||||||||||||||||||||||||||||
port | integer | optional | |||||||||||||||||||||||||||||
username | string | required | |||||||||||||||||||||||||||||
folder | string | required | |||||||||||||||||||||||||||||
config | value | required | |||||||||||||||||||||||||||||
hasSecret | boolean | required | |||||||||||||||||||||||||||||
identity | string | optional | |||||||||||||||||||||||||||||
identityChanged | boolean | required | |||||||||||||||||||||||||||||
identityNew | string | optional | For an SSH place, the different server key the host showed. | ||||||||||||||||||||||||||||
identityConfirmedAt | string | optional | When someone confirmed the saved server key. None while it was only saved at the first sign-in. | ||||||||||||||||||||||||||||
speed | string | required | |||||||||||||||||||||||||||||
speedReason | string | optional | |||||||||||||||||||||||||||||
health | string | required | |||||||||||||||||||||||||||||
healthDetail | string | optional | |||||||||||||||||||||||||||||
lastTestedAt | string | optional | A time, as RFC 3339. | ||||||||||||||||||||||||||||
linkId | string | optional | The id. | ||||||||||||||||||||||||||||
connection | PlaceConnection | optional | For a folder a connected server shares: which server, the level, and whether it is still shared. Such a place follows the connection. | ||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||
maxConnections | integer | optional | Connections this place allows at once. None for no limit. | ||||||||||||||||||||||||||||
usedBy | object | required | |||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||
createdAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||||||||||
location | Place | optional, left out when empty | Where the place is on the Home map. Absent until one is saved. | ||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"kind": "shared",
"address": "example",
"username": "example",
"folder": "example",
"config": {
"file": {
"name": "rush.mov"
}
},
"hasSecret": true,
"identityChanged": true,
"speed": "example",
"health": "example",
"usedBy": {
"hotFolders": 1,
"syncJobs": 1,
"rules": 1
},
"createdAt": "2026-10-05T18:00:00Z"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the destination needs a name, or the kind is not one this server sends to |
| 409 | conflict | a destination with that name already exists |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the destination needs a name, or the kind is not one this server sends to"
}
}
POST /api/v1/destinations/probe
Sign in to a destination that has not been saved yet.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Nothing is stored. The password, private key or secret access key is used for this check and is not written to the log.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
kind | string | required | |
address | string | optional | |
port | integer | optional | |
username | string | optional | |
secret | string | optional | |
folder | string | optional | |
config | value | optional |
{
"kind": "shared",
"address": "example",
"port": 443,
"username": "example",
"secret": "a-secret-shown-once",
"folder": "example",
"config": {
"file": {
"name": "rush.mov"
}
}
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the address, the login or the bucket settings were refused |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the address, the login or the bucket settings were refused"
}
}
POST /api/v1/destinations/folders
List the folders inside a destination that has not been saved yet.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Signs in with the same details as the connection check, then returns the folders one level down. Nothing is stored.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
kind | string | required | |
address | string | optional | |
port | integer | optional | |
username | string | optional | |
secret | string | optional | |
folder | string | optional | |
config | value | optional |
{
"kind": "shared",
"address": "example",
"port": 443,
"username": "example",
"secret": "a-secret-shown-once",
"folder": "example",
"config": {
"file": {
"name": "rush.mov"
}
}
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the login was refused, or that folder is not inside the destination |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the login was refused, or that folder is not inside the destination"
}
}
POST /api/v1/destinations/folders/create
Create a folder inside a destination that has not been saved yet.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Signs in with the same details as the connection check. The new folder is one name inside the folder being viewed. The reply is that folder's listing. Nothing is stored. The login has to be allowed to create folders.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
kind | string | required | |
address | string | optional | |
port | integer | optional | |
username | string | optional | |
secret | string | optional | |
folder | string | optional | |
config | value | optional | |
name | string | optional | The name. |
path | string | optional | A path relative to the space or the storage location, with / between folders and no leading slash. |
{
"kind": "shared"
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the name was refused, or the login cannot create a folder there |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the name was refused, or the login cannot create a folder there"
}
}
POST /api/v1/destinations/folders/rename
Rename a folder inside a destination that has not been saved yet.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Signs in with the same details as the connection check. The new name is one folder name. The reply is the listing of the folder being viewed. A cloud bucket cannot rename a folder in one step.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
kind | string | required | |
address | string | optional | |
port | integer | optional | |
username | string | optional | |
secret | string | optional | |
folder | string | optional | |
config | value | optional | |
name | string | optional | The name. |
path | string | optional | A path relative to the space or the storage location, with / between folders and no leading slash. |
{
"kind": "shared"
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the name was refused, or the login cannot rename a folder there |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the name was refused, or the login cannot rename a folder there"
}
}
POST /api/v1/destinations/folders/delete
Delete a folder inside a destination that has not been saved yet.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Signs in with the same details as the connection check, then removes that folder and everything inside it. The starting folder cannot be deleted. The reply is the listing of the folder being viewed. The login has to be allowed to delete.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
kind | string | required | |
address | string | optional | |
port | integer | optional | |
username | string | optional | |
secret | string | optional | |
folder | string | optional | |
config | value | optional | |
name | string | optional | The name. |
path | string | optional | A path relative to the space or the storage location, with / between folders and no leading slash. |
{
"kind": "shared"
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the login cannot delete that folder, or it is the starting folder |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the login cannot delete that folder, or it is the starting folder"
}
}
GET /api/v1/destinations/{id}
One saved destination. Whether a password is saved is returned; the password is not.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | required | The id. | ||||||||||||||||||||||||||||
name | string | required | The name. | ||||||||||||||||||||||||||||
kind | string | required | |||||||||||||||||||||||||||||
address | string | required | |||||||||||||||||||||||||||||
port | integer | optional | |||||||||||||||||||||||||||||
username | string | required | |||||||||||||||||||||||||||||
folder | string | required | |||||||||||||||||||||||||||||
config | value | required | |||||||||||||||||||||||||||||
hasSecret | boolean | required | |||||||||||||||||||||||||||||
identity | string | optional | |||||||||||||||||||||||||||||
identityChanged | boolean | required | |||||||||||||||||||||||||||||
identityNew | string | optional | For an SSH place, the different server key the host showed. | ||||||||||||||||||||||||||||
identityConfirmedAt | string | optional | When someone confirmed the saved server key. None while it was only saved at the first sign-in. | ||||||||||||||||||||||||||||
speed | string | required | |||||||||||||||||||||||||||||
speedReason | string | optional | |||||||||||||||||||||||||||||
health | string | required | |||||||||||||||||||||||||||||
healthDetail | string | optional | |||||||||||||||||||||||||||||
lastTestedAt | string | optional | A time, as RFC 3339. | ||||||||||||||||||||||||||||
linkId | string | optional | The id. | ||||||||||||||||||||||||||||
connection | PlaceConnection | optional | For a folder a connected server shares: which server, the level, and whether it is still shared. Such a place follows the connection. | ||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||
maxConnections | integer | optional | Connections this place allows at once. None for no limit. | ||||||||||||||||||||||||||||
usedBy | object | required | |||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||
createdAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||||||||||
location | Place | optional, left out when empty | Where the place is on the Home map. Absent until one is saved. | ||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"kind": "shared",
"address": "example",
"username": "example",
"folder": "example",
"config": {
"file": {
"name": "rush.mov"
}
},
"hasSecret": true,
"identityChanged": true,
"speed": "example",
"health": "example",
"usedBy": {
"hotFolders": 1,
"syncJobs": 1,
"rules": 1
},
"createdAt": "2026-10-05T18:00:00Z"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PATCH /api/v1/destinations/{id}
Change a destination's name, and for anything other than a Farwing server, its address, login and folder.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
An empty secret keeps the one already saved. A Farwing server changes its connection by pairing again, which can replace this destination. maxConnections (1 to 64) is how many connections hot folders and syncs open to this place at once, together; 0 removes the limit and leaving it out keeps it.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
name | string | required | The name. |
address | string | optional | |
port | integer | optional | |
username | string | optional | |
folder | string | optional | |
config | value | optional | |
secret | string | optional | |
maxConnections | integer | optional | Connections at once, 1 to 64; 0 removes the limit. Absent leaves it. |
{
"name": "Rush delivery",
"address": "example",
"port": 443,
"username": "example",
"folder": "example",
"config": {
"file": {
"name": "rush.mov"
}
},
"secret": "a-secret-shown-once",
"maxConnections": 1
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | required | The id. | ||||||||||||||||||||||||||||
name | string | required | The name. | ||||||||||||||||||||||||||||
kind | string | required | |||||||||||||||||||||||||||||
address | string | required | |||||||||||||||||||||||||||||
port | integer | optional | |||||||||||||||||||||||||||||
username | string | required | |||||||||||||||||||||||||||||
folder | string | required | |||||||||||||||||||||||||||||
config | value | required | |||||||||||||||||||||||||||||
hasSecret | boolean | required | |||||||||||||||||||||||||||||
identity | string | optional | |||||||||||||||||||||||||||||
identityChanged | boolean | required | |||||||||||||||||||||||||||||
identityNew | string | optional | For an SSH place, the different server key the host showed. | ||||||||||||||||||||||||||||
identityConfirmedAt | string | optional | When someone confirmed the saved server key. None while it was only saved at the first sign-in. | ||||||||||||||||||||||||||||
speed | string | required | |||||||||||||||||||||||||||||
speedReason | string | optional | |||||||||||||||||||||||||||||
health | string | required | |||||||||||||||||||||||||||||
healthDetail | string | optional | |||||||||||||||||||||||||||||
lastTestedAt | string | optional | A time, as RFC 3339. | ||||||||||||||||||||||||||||
linkId | string | optional | The id. | ||||||||||||||||||||||||||||
connection | PlaceConnection | optional | For a folder a connected server shares: which server, the level, and whether it is still shared. Such a place follows the connection. | ||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||
maxConnections | integer | optional | Connections this place allows at once. None for no limit. | ||||||||||||||||||||||||||||
usedBy | object | required | |||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||
createdAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||||||||||
location | Place | optional, left out when empty | Where the place is on the Home map. Absent until one is saved. | ||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"kind": "shared",
"address": "example",
"username": "example",
"folder": "example",
"config": {
"file": {
"name": "rush.mov"
}
},
"hasSecret": true,
"identityChanged": true,
"speed": "example",
"health": "example",
"usedBy": {
"hotFolders": 1,
"syncJobs": 1,
"rules": 1
},
"createdAt": "2026-10-05T18:00:00Z"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the destination needs a name, or the login was refused |
| 409 | conflict | a destination with that name already exists |
| 404 | not_found | not there, or not visible to this caller |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the destination needs a name, or the login was refused"
}
}
DELETE /api/v1/destinations/{id}
Delete a place.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
token is the one from its delete plan. dependents says what happens to the hot folders and syncs that use it: delete (the default) or pause. A place made from a folder a connected server shares is refused with 409 follows_connection while that folder is still shared.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
dependents | query | string | optional | |
token | query | string | optional |
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/destinations/{id}/delete-plan
What deleting this place affects: the hot folders and syncs that use it, and the rules that name it.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
dependents | query | string | optional | |
token | query | string | optional |
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
items | array of objects | required | The records in this reply. | ||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
token | string | required | |||||||||||||||||||||
{
"items": [
{
"kind": "file",
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"effect": {}
}
],
"token": "example"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 409 | conflict | the place follows a folder a connected server shares |
| 404 | not_found | not there, or not visible to this caller |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "conflict",
"message": "the place follows a folder a connected server shares"
}
}
POST /api/v1/destinations/{id}/folders
List the folders inside a saved destination, using the password already saved.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
folder | string | optional |
{
"folder": "example"
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/destinations/{id}/folders/create
Create a folder inside a saved destination, using the password already saved.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
The new folder is one name inside the folder being viewed. The login has to be allowed to create folders.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
folder | string | optional | |
name | string | optional | The name. |
path | string | optional | A path relative to the space or the storage location, with / between folders and no leading slash. |
{
"folder": "example",
"name": "Rush delivery",
"path": "projects/rush"
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/destinations/{id}/folders/rename
Rename a folder inside a saved destination, using the password already saved.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
A cloud bucket cannot rename a folder in one step.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
folder | string | optional | |
name | string | optional | The name. |
path | string | optional | A path relative to the space or the storage location, with / between folders and no leading slash. |
{
"folder": "example",
"name": "Rush delivery",
"path": "projects/rush"
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/destinations/{id}/folders/delete
Delete a folder, and everything inside it, on a saved destination.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
The starting folder cannot be deleted. The login has to be allowed to delete.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
folder | string | optional | |
name | string | optional | The name. |
path | string | optional | A path relative to the space or the storage location, with / between folders and no leading slash. |
{
"folder": "example",
"name": "Rush delivery",
"path": "projects/rush"
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/destinations/{id}/location
Save where the place is on the home screen's map with {location: {name, lat, lon}}, or {location: null} to remove it. Returns {location}. Written to the audit log.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
location | Place | optional | null removes the saved location. | ||||||||||||||||
It is an object:
| |||||||||||||||||||
{
"location": {
"name": "Rush delivery",
"lat": 1,
"lon": 1
}
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
location | Place | optional, left out when empty | |||||||||||||||||
It is an object:
| |||||||||||||||||||
{
"location": {
"name": "Rush delivery",
"lat": 1,
"lon": 1
}
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a name missing or too long, or a coordinate off the globe |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "a name missing or too long, or a coordinate off the globe"
}
}
POST /api/v1/destinations/{id}/host-key/accept
Trust the server key of an SSH or SFTP place.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Send {"key": "SHA256:…"} with the key you compared. It confirms the key saved at the first sign-in, or accepts the different key the host showed (identityNew). Sending stops while a different key is waiting.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
key | string | required | The SHA256:… key the person checked. Naming it means a key that changed again after they looked is not accepted by mistake. |
{
"key": "a-secret-shown-once"
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | required | The id. | ||||||||||||||||||||||||||||
name | string | required | The name. | ||||||||||||||||||||||||||||
kind | string | required | |||||||||||||||||||||||||||||
address | string | required | |||||||||||||||||||||||||||||
port | integer | optional | |||||||||||||||||||||||||||||
username | string | required | |||||||||||||||||||||||||||||
folder | string | required | |||||||||||||||||||||||||||||
config | value | required | |||||||||||||||||||||||||||||
hasSecret | boolean | required | |||||||||||||||||||||||||||||
identity | string | optional | |||||||||||||||||||||||||||||
identityChanged | boolean | required | |||||||||||||||||||||||||||||
identityNew | string | optional | For an SSH place, the different server key the host showed. | ||||||||||||||||||||||||||||
identityConfirmedAt | string | optional | When someone confirmed the saved server key. None while it was only saved at the first sign-in. | ||||||||||||||||||||||||||||
speed | string | required | |||||||||||||||||||||||||||||
speedReason | string | optional | |||||||||||||||||||||||||||||
health | string | required | |||||||||||||||||||||||||||||
healthDetail | string | optional | |||||||||||||||||||||||||||||
lastTestedAt | string | optional | A time, as RFC 3339. | ||||||||||||||||||||||||||||
linkId | string | optional | The id. | ||||||||||||||||||||||||||||
connection | PlaceConnection | optional | For a folder a connected server shares: which server, the level, and whether it is still shared. Such a place follows the connection. | ||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||
maxConnections | integer | optional | Connections this place allows at once. None for no limit. | ||||||||||||||||||||||||||||
usedBy | object | required | |||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||
createdAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||||||||||
location | Place | optional, left out when empty | Where the place is on the Home map. Absent until one is saved. | ||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"kind": "shared",
"address": "example",
"username": "example",
"folder": "example",
"config": {
"file": {
"name": "rush.mov"
}
},
"hasSecret": true,
"identityChanged": true,
"speed": "example",
"health": "example",
"usedBy": {
"hotFolders": 1,
"syncJobs": 1,
"rules": 1
},
"createdAt": "2026-10-05T18:00:00Z"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the place is not SSH or SFTP |
| 409 | conflict | the key is not the one waiting; reload and compare again |
| 404 | not_found | not there, or not visible to this caller |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the place is not SSH or SFTP"
}
}
POST /api/v1/destinations/{id}/test
Try the connection: reach it, sign in, and confirm the folder.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
The first time a destination is reached, the reply asks the administrator to confirm it is the right server. For SSH and SFTP, the first successful sign-in saves the server key and a later different key stops sending.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
folder | string | optional |
{
"folder": "example"
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | not_found | not there, or not visible to this caller |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "not_found",
"message": "not found"
}
}
GET /api/v1/destinations/{id}/test/{test_id}
The result of a connection test, including each step.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The destination's id. |
test_id | path | string | required | The test's id. |
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | not_found | not there, or not visible to this caller |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "not_found",
"message": "not found"
}
}
GET /api/v1/server-links
Other Farwing servers this one is paired with.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/server-links
Start an incoming link and get a pairing code for the other server.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name | string | required | The name. | ||||||||||||||||||||||||
direction | string | optional | |||||||||||||||||||||||||
folders | array of objects | optional | |||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||
speedLimitBps | integer | optional | |||||||||||||||||||||||||
notifyOnArrival | boolean | optional | |||||||||||||||||||||||||
codeHours | integer | optional | |||||||||||||||||||||||||
{
"name": "Rush delivery",
"direction": "download",
"folders": [
{
"rootId": "k7Qm2sLp9vX4aB1c",
"path": "projects/rush",
"canWrite": true,
"canRead": true,
"canDelete": true
}
],
"speedLimitBps": 1,
"notifyOnArrival": true,
"codeHours": 1
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the link needs a name |
| 409 | conflict | a connection with that name already exists |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the link needs a name"
}
}
GET /api/v1/server-links/identity
This server's identity, shown while pairing so the other side can be checked.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/server-links/pair
Ask another server to pair, using its address and the code it showed.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
With linkId, the code reconnects that connection, keeping its folders and settings; a connection to the same server that is not working is reconnected without it. reconnects in the answer names the connection.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
name | string | optional | The name. |
address | string | required | |
code | string | required | |
linkId | string | optional | Reconnect this connection rather than make a new one. |
{
"name": "Rush delivery",
"address": "example",
"code": "example",
"linkId": "k7Qm2sLp9vX4aB1c"
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | that server could not be reached, or its certificate is not trusted |
| 404 | not_found | not there, or not visible to this caller |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "that server could not be reached, or its certificate is not trusted"
}
}
POST /api/v1/server-links/pair/{pairing_id}/confirm
Confirm the other server is the one you meant, and finish pairing.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
pairing_id | path | string | required | The pairing that is waiting. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
folders | array of objects | optional | Folders this server shares back with the other one. May be empty. | ||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||
{
"folders": [
{
"rootId": "k7Qm2sLp9vX4aB1c",
"path": "projects/rush",
"canWrite": true,
"canRead": true,
"canDelete": true
}
]
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | that pairing has expired |
| 409 | conflict | this connection was deleted while you were reconnecting it. Connect to the server again. |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "that pairing has expired"
}
}
DELETE /api/v1/server-links/pair/{pairing_id}
Cancel a pairing that is still waiting.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
pairing_id | path | string | required | The pairing that is waiting. |
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/server-links/{id}
One server link.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PATCH /api/v1/server-links/{id}
Change a link's speed limit, whether it is on, and which folders it may use.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
status | string | optional | |||||||||||||||||||||||||
speedLimitBps | integer | optional | |||||||||||||||||||||||||
notifyOnArrival | boolean | optional | |||||||||||||||||||||||||
codeConfirmed | boolean | optional | The administrator compared the other server's security code and it matched. | ||||||||||||||||||||||||
folders | array of FolderIn | optional | The whole list of folders shared with the other server. Folders left out stop being shared. | ||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||
{
"status": "example",
"speedLimitBps": 1,
"notifyOnArrival": true,
"codeConfirmed": true,
"folders": [
{
"rootId": "k7Qm2sLp9vX4aB1c",
"path": "projects/rush",
"canWrite": true,
"canRead": true,
"canDelete": true
}
]
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a connection can be paused or resumed |
| 404 | not_found | not there, or not visible to this caller |
| 409 | conflict | the other server paused this connection. It resumes when they resume it. |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "a connection can be paused or resumed"
}
}
DELETE /api/v1/server-links/{id}
Delete a connection.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
dependents says what happens to the hot folders and syncs that use it: delete (the default) or pause. token is the one from the delete plan, so the plan the administrator read is the one carried out.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
dependents | query | string | optional | |
token | query | string | optional |
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | dependents is delete or pause |
| 404 | not_found | not there, or not visible to this caller |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "dependents is delete or pause"
}
}
GET /api/v1/server-links/{id}/delete-plan
What deleting this connection would change: the places, jobs and service accounts that use it.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
dependents | query | string | optional | |
token | query | string | optional |
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
items | array of objects | required | The records in this reply. | ||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
token | string | required | |||||||||||||||||||||
{
"items": [
{
"kind": "file",
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"effect": {}
}
],
"token": "example"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | dependents is delete or pause |
| 404 | not_found | not there, or not visible to this caller |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "dependents is delete or pause"
}
}
POST /api/v1/server-links/{id}/refresh
Fetch the folders the other server shares now, and bring the places that follow them in line.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Request body. None.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 502 | | the other server could not be reached |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/server-links/{id}/code
The connection code this server made that is still waiting to be used, with the message to send. Recorded in the audit log.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | no_code | no code can be shown: it was used, cancelled or expired, or made before codes were kept |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "no_code",
"message": "not found"
}
}
POST /api/v1/server-links/{id}/code
A new connection code for a connection this server made the code for and that is not working. Its name, folders and settings stay; the earlier code stops working. codeHours is 1 to 168, 24 by default.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
codeHours | integer | optional |
{
"codeHours": 1
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the other server made the code for this connection |
| 409 | conflict | the connection is working and needs no new code |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the other server made the code for this connection"
}
}
PUT /api/v1/server-links/{id}/location
Save where the connected server is on the home screen's map with {location: {name, lat, lon}}, or {location: null} to remove it. Returns {location}. Written to the audit log.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
location | Place | optional | null removes the saved location. | ||||||||||||||||
It is an object:
| |||||||||||||||||||
{
"location": {
"name": "Rush delivery",
"lat": 1,
"lon": 1
}
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
location | Place | optional, left out when empty | |||||||||||||||||
It is an object:
| |||||||||||||||||||
{
"location": {
"name": "Rush delivery",
"lat": 1,
"lon": 1
}
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a name missing or too long, or a coordinate off the globe |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "a name missing or too long, or a coordinate off the globe"
}
}
POST /api/v1/server-links/{id}/address
Change the other server's address. Kept only if the server at the new address has the security code this connection already trusts.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
address | string | required |
{
"address": "example"
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the address is not https, or that server could not be reached |
| 409 | identity_changed | the server there has a different security code; ask for a new connection code |
| 404 | not_found | not there, or not visible to this caller |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the address is not https, or that server could not be reached"
}
}
GET /api/v1/admin/smtp
Mail settings. Never the password.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
enabled | boolean | required | |
host | string | required | |
port | integer | required | |
security | string | required | |
username | string | required | |
passwordSet | boolean | required | Whether one is stored. Never the password. |
fromName | string | required | |
fromAddress | string | required | |
problem | string | optional, left out when empty | What is stopping these settings working, if anything. Shown whether or not email is switched on, so an administrator filling the form in can see what is still missing. |
lastTestAt | string | optional, left out when empty | When a test send last worked, if one ever has. The screen uses this rather than the enabled flag to say email is working: a flag only records what somebody intended. |
{
"enabled": true,
"host": "files.example.com",
"port": 443,
"security": "example",
"username": "example",
"passwordSet": true,
"fromName": "example",
"fromAddress": "example"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/admin/smtp
Set them up, or change them.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
enabled | boolean | required | |
host | string | required | |
port | integer | required | |
security | string | required | |
username | string | optional | |
password | string | optional | Absent means "keep the stored one". Present and empty means "there is no password", which some relays genuinely want. |
fromName | string | optional | |
fromAddress | string | required |
{
"enabled": true,
"host": "files.example.com",
"port": 443,
"security": "example",
"username": "example",
"password": "a-secret-shown-once",
"fromName": "example",
"fromAddress": "example"
}
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
enabled | boolean | required | |
host | string | required | |
port | integer | required | |
security | string | required | |
username | string | required | |
passwordSet | boolean | required | Whether one is stored. Never the password. |
fromName | string | required | |
fromAddress | string | required | |
problem | string | optional, left out when empty | What is stopping these settings working, if anything. Shown whether or not email is switched on, so an administrator filling the form in can see what is still missing. |
lastTestAt | string | optional, left out when empty | When a test send last worked, if one ever has. The screen uses this rather than the enabled flag to say email is working: a flag only records what somebody intended. |
{
"enabled": true,
"host": "files.example.com",
"port": 443,
"security": "example",
"username": "example",
"passwordSet": true,
"fromName": "example",
"fromAddress": "example"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
DELETE /api/v1/admin/smtp
Turn email off.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
enabled | boolean | required | |
host | string | required | |
port | integer | required | |
security | string | required | |
username | string | required | |
passwordSet | boolean | required | Whether one is stored. Never the password. |
fromName | string | required | |
fromAddress | string | required | |
problem | string | optional, left out when empty | What is stopping these settings working, if anything. Shown whether or not email is switched on, so an administrator filling the form in can see what is still missing. |
lastTestAt | string | optional, left out when empty | When a test send last worked, if one ever has. The screen uses this rather than the enabled flag to say email is working: a flag only records what somebody intended. |
{
"enabled": true,
"host": "files.example.com",
"port": 443,
"security": "example",
"username": "example",
"passwordSet": true,
"fromName": "example",
"fromAddress": "example"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/smtp/test
Send a test message, and report what the mail server said.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
to | string | optional | Where to send it. Defaults to the signed-in administrator, which is the address they can actually check. |
{
"to": "projects/rush"
}
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
sentTo | string | required |
{
"sentTo": "example"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the mail server refused; its own words are in the message |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the mail server refused; its own words are in the message"
}
}
GET /api/v1/admin/trusted-certificates
The certificates this server trusts for its own connections.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Besides the public certificate authorities and the ones the machine trusts, these are trusted for object storage, single sign-on, webhooks, connected servers, FTPS, email and the license service. The LDAP page keeps its own list.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
trusted | array of objects | required | |||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||
added | array of objects | required | |||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||
{
"trusted": [
{
"subject": "Files for Monday",
"issuer": "example",
"names": [
"Rush delivery"
],
"notBefore": "example",
"notAfter": "example",
"isCa": true,
"selfSigned": true,
"fingerprintSha256": "example",
"pem": "example"
}
],
"added": [
{
"subject": "Files for Monday",
"issuer": "example",
"names": [
"Rush delivery"
],
"notBefore": "example",
"notAfter": "example",
"isCa": true,
"selfSigned": true,
"fingerprintSha256": "example",
"pem": "example"
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/trusted-certificates
Trust a certificate for this server's connections.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Takes a CA certificate, or a server's own self-signed certificate, as PEM text or as a DER or PEM file. One file may hold several certificates. A private key, an expired certificate or a file that is not a certificate is refused. Applies at once, with no restart. Email trusts only CA certificates from this list. The audit log records the subject and SHA-256 fingerprint.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
text | string | optional | PEM text, pasted or read from a text file. |
base64 | string | optional | A file's bytes in base64, for a DER (binary) certificate. |
{
"text": "example",
"base64": "example"
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
trusted | array of objects | required | |||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||
added | array of objects | required | |||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||
{
"trusted": [
{
"subject": "Files for Monday",
"issuer": "example",
"names": [
"Rush delivery"
],
"notBefore": "example",
"notAfter": "example",
"isCa": true,
"selfSigned": true,
"fingerprintSha256": "example",
"pem": "example"
}
],
"added": [
{
"subject": "Files for Monday",
"issuer": "example",
"names": [
"Rush delivery"
],
"notBefore": "example",
"notAfter": "example",
"isCa": true,
"selfSigned": true,
"fingerprintSha256": "example",
"pem": "example"
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the file is not a usable certificate (the message says why) |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the file is not a usable certificate (the message says why)"
}
}
DELETE /api/v1/admin/trusted-certificates/{fingerprint}
Stop trusting a certificate for this server's connections.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. fingerprint is the certificate's SHA-256 fingerprint as shown in trusted. The audit log records the subject and fingerprint.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
fingerprint | path | string | required | The fingerprint. |
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
trusted | array of objects | required | |||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||
added | array of objects | required | |||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||
{
"trusted": [
{
"subject": "Files for Monday",
"issuer": "example",
"names": [
"Rush delivery"
],
"notBefore": "example",
"notAfter": "example",
"isCa": true,
"selfSigned": true,
"fingerprintSha256": "example",
"pem": "example"
}
],
"added": [
{
"subject": "Files for Monday",
"issuer": "example",
"names": [
"Rush delivery"
],
"notBefore": "example",
"notAfter": "example",
"isCa": true,
"selfSigned": true,
"fingerprintSha256": "example",
"pem": "example"
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | not_found | no trusted certificate has that fingerprint |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "not_found",
"message": "not found"
}
}
GET /api/v1/admin/previews
What may be previewed, how large, and how many at once.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Answers {preset, kinds, perPerson, perServer, thumbnailMaxBytes, bandwidthMbps}. kinds has image, pdf, text, audio and video, each with a mode (always, cloud or off) and a maxBytes (null for no limit).
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/admin/previews
Change the preview settings, all of them at once.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. The same shape as GET. The preset name saved is the one the kinds match. Written to the audit log as settings.previews.
Request body. The raw bytes of the piece. Not JSON.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a text size limit, perPerson outside 1 to 20, perServer outside 1 to 200, thumbnailMaxBytes outside 5 to 500 MB, or bandwidthMbps outside 10 to 100,000 |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "a text size limit, perPerson outside 1 to 20, perServer outside 1 to 200, thumbnailMaxBytes outside 5 to 500 MB, or bandwidthMbps outside 10 to 100,000"
}
}
License
GET /api/v1/license
What this installation is licensed to do: plan, speed, features, users and jobs. Answers in Free mode too.
Who. Any user with an API key. The key does not need a particular scope. This is the one API-key call that still answers when the license does not include the REST API, so a script can see why the others return 402. The same call is also at GET /api/v1/licence.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/license
Load a license. Checked before it replaces the old one.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. None.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | not a valid license, or not for this install |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "not a valid license, or not for this install"
}
}
DELETE /api/v1/admin/license
Remove the license. The server drops to Free mode at once; the file is set aside.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/admin/license/free-mode
Who stays active and which jobs keep running in Free mode.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/admin/license/free-mode
Pick the active users and the running jobs.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. The raw bytes of the piece. Not JSON.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | more than the limit was picked |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "more than the limit was picked"
}
}
POST /api/v1/admin/license/request/preview
The license request email, with its request code, before it is sent.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. None.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/license/request/send
Send the license request.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
via: "service" (the default) sends it to license.farwing.io, which tells sales and later returns the answer; via: "email" sends it to [email protected] through this server's email settings. When that way fails, the reply has sent: false, the step and reason, and the whole email to send by hand.
Request body. None.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/license/trial/start
Ask license.farwing.io for a 30-day trial.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. None.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/license/trial/verify
Enter the code from the trial email. The trial license is loaded at once.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. None.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/licence/limits
The license limits in force: plan, speed, users, jobs, and which features are on. Answers in Free mode too.
Who. Any user with a key that has the read scope. A key with the admin scope includes the others. The key needs a license that includes the REST API.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
Audit
GET /api/v1/admin/audit
The audit trail. Read-only, including for administrators.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
action | query | string | optional | Exact action, or a prefix ending in . such as auth.. |
actorKind | query | string | optional | user, api_key, system or recipient. |
from | query | string | optional | RFC 3339. Inclusive. |
to | query | string | optional | RFC 3339. Exclusive, so paging by at cannot repeat a row. |
before | query | integer | optional | Page backwards: only rows with a smaller id than this one. |
limit | query | integer | optional | Up to 500. Clamped, not refused. |
q | query | string | optional | Matched against the action, the target and the detail. |
actorId | query | string | optional |
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
items | array of objects | required | The records in this reply. | ||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||
nextBefore | integer | optional | Pass as before for the next page. Null when there is no next page. | ||||||||||||||||||||||||||||||||||||||||
actions | array of string | required | Every action present in the table, so the filter can offer a list rather than ask an administrator to remember the naming scheme. | ||||||||||||||||||||||||||||||||||||||||
{
"items": [
{
"id": 1,
"at": "2026-10-05T18:00:00Z",
"actorKind": "example",
"action": "release"
}
],
"nextBefore": 1,
"actions": [
"release"
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | an unknown actorKind |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "an unknown actorKind"
}
}
GET /api/v1/admin/audit.csv
The same rows as a CSV file, with the same filters. No paging: the file is the whole window.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
action | query | string | optional | Exact action, or a prefix ending in . such as auth.. |
actorId | query | string | optional | |
actorKind | query | string | optional | |
from | query | string | optional | RFC 3339. Inclusive. |
to | query | string | optional | RFC 3339. Exclusive, so paging by at cannot repeat a row. |
before | query | integer | optional | Page backwards: only rows with a smaller id than this one. |
limit | query | integer | optional | |
q | query | string | optional | Matched against the action, the target and the detail. |
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
The server
GET /api/v1/admin/server-location
Where the home screen's map puts this server: {location: {name, lat, lon, source, setBy, setByName, setAt}, showLiveMap, databaseAvailable}. location is left out until one is saved.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
location | SavedLocation | optional, left out when empty | |||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||
showLiveMap | boolean | required | |||||||||||||||||||||||||||||||||||||||||||||
databaseAvailable | boolean | required | Whether the city database is installed, so Suggest can work. | ||||||||||||||||||||||||||||||||||||||||||||
{
"location": {
"location": {
"name": "Rush delivery",
"lat": 1,
"lon": 1,
"source": "example",
"setBy": "example",
"setAt": "2026-10-05T18:00:00Z"
},
"setByName": "example"
},
"showLiveMap": true,
"databaseAvailable": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/admin/server-location
Save the place with {name, lat, lon, source: manual | suggested, showLiveMap}. Latitude -90 to 90, longitude -180 to 180. Written to the audit log.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
name | string | required | The name. |
lat | number | required | |
lon | number | required | |
source | string | required | manual or suggested. |
showLiveMap | boolean | required |
{
"name": "Rush delivery",
"lat": 1,
"lon": 1,
"source": "example",
"showLiveMap": true
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
location | SavedLocation | optional, left out when empty | |||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||
showLiveMap | boolean | required | |||||||||||||||||||||||||||||||||||||||||||||
databaseAvailable | boolean | required | Whether the city database is installed, so Suggest can work. | ||||||||||||||||||||||||||||||||||||||||||||
{
"location": {
"location": {
"name": "Rush delivery",
"lat": 1,
"lon": 1,
"source": "example",
"setBy": "example",
"setAt": "2026-10-05T18:00:00Z"
},
"setByName": "example"
},
"showLiveMap": true,
"databaseAvailable": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/server-location/suggest
Suggest a place from the address this server reaches the internet from, looked up in the server's own city database. Makes one request to farwing.io. Saves nothing.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. None.
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
name | string | required | The name. |
lat | number | required | |
lon | number | required |
{
"name": "Rush delivery",
"lat": 1,
"lon": 1
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | Could not suggest a place. Enter it by hand. |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "Could not suggest a place. Enter it by hand."
}
}
GET /api/v1/admin/network
The address and ports in use, the ones the next start will use, which are fixed by the environment, and the firewall rules that matter.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
hostname | string | required | What the next start will use: the config file, then the environment. | ||||||||||||||||||||
dataPort | integer | required | |||||||||||||||||||||
webPort | integer | required | |||||||||||||||||||||
running | object | required | What this process is using now. | ||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||
pending | array of string | required | What a restart would change, one line each. | ||||||||||||||||||||
pinned | object | required | The environment variable that fixes each setting, where one does. The portal shows those read-only, since a value saved here would be overridden at the next start. | ||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||
lowPorts | object | required | Whether this server may open ports below 1024. | ||||||||||||||||||||
problems | array of objects | required | What would go wrong opening the saved ports, found by trying them. | ||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
notes | array of string | required | What start-up had to work around, such as a port it could not open. | ||||||||||||||||||||
rules | array of objects | required | What has to be open, and what people cannot do if it is not. For the saved ports, since those are the ones to open before a restart. | ||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
dataServiceRunning | boolean | required | Whether the data service is actually listening. | ||||||||||||||||||||
checkedFromOutside | boolean | required | Always false here: reachability from the internet is only known by asking something outside, which is [probe_network]. | ||||||||||||||||||||
{
"hostname": "example",
"dataPort": 443,
"webPort": 443,
"running": {
"hostname": "example",
"webPort": 443,
"dataPort": 443
},
"pending": [
"example"
],
"pinned": {
"hostname": "example",
"webPort": "example",
"dataPort": "example"
},
"lowPorts": {},
"problems": [
{
"blocking": true,
"text": "example"
}
],
"notes": [
"The cut is in the folder."
],
"rules": [
{
"port": 443,
"protocol": "example",
"what": "2026-10-05T18:00:00Z",
"costIfClosed": "example"
}
],
"dataServiceRunning": true,
"checkedFromOutside": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/admin/network
Set the address, the portal port (TCP) and the transfer port (UDP, with TCP on the same number as a fallback). Takes effect on the next restart.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
hostname | string | optional | The name people will reach this server by. Empty clears it; absent leaves it as it is. |
webPort | integer | optional | TCP, for the portal and the API. Read as a wide number so a value out of range is answered in a sentence rather than a parse error. |
dataPort | integer | optional | UDP for transfers, and TCP on the same number for the fallback. |
{
"hostname": "example",
"webPort": 443,
"dataPort": 443
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
hostname | string | required | What the next start will use: the config file, then the environment. | ||||||||||||||||||||
dataPort | integer | required | |||||||||||||||||||||
webPort | integer | required | |||||||||||||||||||||
running | object | required | What this process is using now. | ||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||
pending | array of string | required | What a restart would change, one line each. | ||||||||||||||||||||
pinned | object | required | The environment variable that fixes each setting, where one does. The portal shows those read-only, since a value saved here would be overridden at the next start. | ||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||
lowPorts | object | required | Whether this server may open ports below 1024. | ||||||||||||||||||||
problems | array of objects | required | What would go wrong opening the saved ports, found by trying them. | ||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
notes | array of string | required | What start-up had to work around, such as a port it could not open. | ||||||||||||||||||||
rules | array of objects | required | What has to be open, and what people cannot do if it is not. For the saved ports, since those are the ones to open before a restart. | ||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
dataServiceRunning | boolean | required | Whether the data service is actually listening. | ||||||||||||||||||||
checkedFromOutside | boolean | required | Always false here: reachability from the internet is only known by asking something outside, which is [probe_network]. | ||||||||||||||||||||
{
"hostname": "example",
"dataPort": 443,
"webPort": 443,
"running": {
"hostname": "example",
"webPort": 443,
"dataPort": 443
},
"pending": [
"example"
],
"pinned": {
"hostname": "example",
"webPort": "example",
"dataPort": "example"
},
"lowPorts": {},
"problems": [
{
"blocking": true,
"text": "example"
}
],
"notes": [
"The cut is in the folder."
],
"rules": [
{
"port": 443,
"protocol": "example",
"what": "2026-10-05T18:00:00Z",
"costIfClosed": "example"
}
],
"dataServiceRunning": true,
"checkedFromOutside": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | not a host name, a port out of range, a port fixed by the environment, or a port this server cannot open |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "not a host name, a port out of range, a port fixed by the environment, or a port this server cannot open"
}
}
POST /api/v1/admin/network/probe
Ask farwing.io to try this server's ports from the internet.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Sends the address, the port numbers and a one-time ticket for a 256 KiB file of random bytes; farwing.io connects only to the address the request comes from. TCP is tried with a connection. UDP is tried by downloading the test file over UDP only, without the TCP fallback, and reports open, timeout (nothing arrived), oneway (it arrived but the replies did not get back) or untested.
Request body. None.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
checkedFromOutside | boolean | required | Whether farwing.io actually ran the check. | ||||||||||||||||||||||||||||||||
skippedReason | string | optional, left out when empty | |||||||||||||||||||||||||||||||||
address | string | optional, left out when empty | The address farwing.io connected to: this server's outgoing address. | ||||||||||||||||||||||||||||||||
host | string | required | |||||||||||||||||||||||||||||||||
hostMatches | boolean | optional, left out when empty | Whether the host name points at the address that was tried. None when the check did not run. | ||||||||||||||||||||||||||||||||
hostAddresses | array of string | optional | |||||||||||||||||||||||||||||||||
results | array of objects | required | |||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||
{
"checkedFromOutside": true,
"skippedReason": "example",
"address": "example",
"host": "files.example.com",
"hostMatches": true,
"hostAddresses": [
"example"
],
"results": [
{
"port": 443,
"protocol": "example",
"open": true,
"state": "active",
"detail": "example",
"bytes": 1048576,
"ms": 1
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a check ran a moment ago |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "a check ran a moment ago"
}
}
POST /api/v1/admin/network/udp-test
Make a one-time UDP test to run from any computer: a ticket for a 256 KiB file of random bytes that works once, for one minute, over UDP only.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Returns the ticket and, when the server has a hostname, the farwing cp command that fetches it.
Request body. None.
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
id | string | required | The id. |
ticket | string | required | For farwing cp --ticket. Names no TCP port, and works once. |
command | string | optional, left out when empty | The whole command, when the server knows the name it is reached by. Without one the client needs --ticket-host as well. |
fileName | string | required | The file's name. |
bytes | integer | required | Size in bytes. |
port | integer | required | |
expiresAt | string | required | A time, as RFC 3339. |
{
"id": "k7Qm2sLp9vX4aB1c",
"ticket": "packed-ticket-string",
"command": "example",
"fileName": "example",
"bytes": 1048576,
"port": 443,
"expiresAt": "2026-10-05T18:00:00Z"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 409 | conflict | four tests are already waiting |
| 503 | unavailable | the transfer port is not open |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "conflict",
"message": "four tests are already waiting"
}
}
GET /api/v1/admin/network/udp-test/{id}
What a UDP test has come to: waiting, receiving, passed (with bytes, seconds and the address it came from), failed or expired.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
id | string | required | The id. |
state | string | required | waiting, receiving, passed, failed or expired. |
bytes | integer | optional, left out when empty | Size in bytes. |
seconds | number | optional, left out when empty | |
from | string | optional, left out when empty | The address the download came from. |
detail | string | optional, left out when empty | |
expiresAt | string | required | A time, as RFC 3339. |
{
"id": "k7Qm2sLp9vX4aB1c",
"state": "active",
"bytes": 1048576,
"seconds": 1,
"from": "projects/rush",
"detail": "example",
"expiresAt": "2026-10-05T18:00:00Z"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | not_found | no such test, or it is more than ten minutes old |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "not_found",
"message": "not found"
}
}
GET /api/v1/admin/certificate
The portal's certificate: where it came from (self-signed, lets-encrypt, uploaded or config-file), issuer, names, validity and days left, whether it covers the configured address, automatic renewal and its next attempt, any warning, and the progress of a Let's Encrypt request.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Never the private key.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
source | object | required | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
trusted | boolean | required | Issued by somebody browsers already trust. | ||||||||||||||||||||||||||||||||||||
certificate | Details | optional | |||||||||||||||||||||||||||||||||||||
daysLeft | integer | optional | |||||||||||||||||||||||||||||||||||||
lifetimeDays | integer | optional | |||||||||||||||||||||||||||||||||||||
hostname | string | required | The address the next start uses. | ||||||||||||||||||||||||||||||||||||
coversHostname | boolean | required | |||||||||||||||||||||||||||||||||||||
autoRenew | boolean | required | |||||||||||||||||||||||||||||||||||||
renewal | Renewal | optional | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
warning | Warning | optional | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
progress | object | required | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
acme | object | required | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
webPort | integer | required | |||||||||||||||||||||||||||||||||||||
notes | array of string | required | |||||||||||||||||||||||||||||||||||||
bootFingerprint | string | required | SHA-256 of the certificate this process loaded when it started, or of the latest renewal. After a new certificate is installed it differs from certificate.fingerprintSha256 until the process starts again. A renewal does not make it differ. | ||||||||||||||||||||||||||||||||||||
{
"source": {
"root": "k7Qm2sLp9vX4aB1c",
"path": "projects/rush",
"rel": {}
},
"trusted": true,
"hostname": "example",
"coversHostname": true,
"autoRenew": true,
"progress": {
"stage": {},
"renewal": true,
"error": {
"message": "The cut is in the folder.",
"detail": "example"
},
"at": "2026-10-05T18:00:00Z"
},
"acme": {
"email": "[email protected]",
"termsUrl": "example",
"listener": {},
"plan": [
{}
]
},
"webPort": 443,
"notes": [
"The cut is in the folder."
],
"bootFingerprint": "example"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
DELETE /api/v1/admin/certificate
Go back to the certificate this server makes for itself.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Browsers then warn before opening the portal. Uploaded and Let's Encrypt pairs are deleted; the Let's Encrypt account is kept. Takes effect on the next connection.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
source | object | required | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
trusted | boolean | required | Issued by somebody browsers already trust. | ||||||||||||||||||||||||||||||||||||
certificate | Details | optional | |||||||||||||||||||||||||||||||||||||
daysLeft | integer | optional | |||||||||||||||||||||||||||||||||||||
lifetimeDays | integer | optional | |||||||||||||||||||||||||||||||||||||
hostname | string | required | The address the next start uses. | ||||||||||||||||||||||||||||||||||||
coversHostname | boolean | required | |||||||||||||||||||||||||||||||||||||
autoRenew | boolean | required | |||||||||||||||||||||||||||||||||||||
renewal | Renewal | optional | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
warning | Warning | optional | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
progress | object | required | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
acme | object | required | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
webPort | integer | required | |||||||||||||||||||||||||||||||||||||
notes | array of string | required | |||||||||||||||||||||||||||||||||||||
bootFingerprint | string | required | SHA-256 of the certificate this process loaded when it started, or of the latest renewal. After a new certificate is installed it differs from certificate.fingerprintSha256 until the process starts again. A renewal does not make it differ. | ||||||||||||||||||||||||||||||||||||
{
"source": {
"root": "k7Qm2sLp9vX4aB1c",
"path": "projects/rush",
"rel": {}
},
"trusted": true,
"hostname": "example",
"coversHostname": true,
"autoRenew": true,
"progress": {
"stage": {},
"renewal": true,
"error": {
"message": "The cut is in the folder.",
"detail": "example"
},
"at": "2026-10-05T18:00:00Z"
},
"acme": {
"email": "[email protected]",
"termsUrl": "example",
"listener": {},
"plan": [
{}
]
},
"webPort": 443,
"notes": [
"The cut is in the folder."
],
"bootFingerprint": "example"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 409 | conflict | a certificate is being requested; wait for it to finish |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "conflict",
"message": "a certificate is being requested; wait for it to finish"
}
}
POST /api/v1/admin/certificate/acme/eligibility
Whether Let's Encrypt can issue a certificate for this server: the address is a public name, it resolves (looked up from here) to the address farwing.io sees this server at, and port 443 or port 80 answers from the internet.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Opens port 80 if it can. Returns a checklist with a fix for each item that fails, and which check Let's Encrypt would use.
Request body. None.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eligible | boolean | required | Nothing on the list is red. | ||||||||||||||||||||
hostname | string | required | |||||||||||||||||||||
publicAddress | string | optional | The address this server reaches the internet from, as farwing.io saw it. | ||||||||||||||||||||
dnsAddresses | array of string | required | |||||||||||||||||||||
challenge | Challenge | optional | How Let's Encrypt will check, if it can. | ||||||||||||||||||||
items | array of objects | required | The records in this reply. | ||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
checkedFromOutside | boolean | required | |||||||||||||||||||||
{
"eligible": true,
"hostname": "example",
"publicAddress": "example",
"dnsAddresses": [
"example"
],
"challenge": {},
"items": [
{
"id": "k7Qm2sLp9vX4aB1c",
"state": {},
"title": "example",
"detail": "example"
}
],
"checkedFromOutside": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a check ran a moment ago |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "a check ran a moment ago"
}
}
POST /api/v1/admin/certificate/acme/issue
Ask Let's Encrypt for a certificate for the configured address, in the background; follow it with GET /api/v1/admin/certificate.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Uses TLS on port 443 when the portal is on 443, otherwise HTTP on port 80. Saved at once; connections already open keep the previous certificate until the server restarts. Answers 202. Body: {"email": "", "agreeTerms": true}.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
email | string | optional | Where Let's Encrypt sends notices. Empty for none. |
agreeTerms | boolean | required |
{
"email": "[email protected]",
"agreeTerms": true
}
Success. 202.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
source | object | required | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
trusted | boolean | required | Issued by somebody browsers already trust. | ||||||||||||||||||||||||||||||||||||
certificate | Details | optional | |||||||||||||||||||||||||||||||||||||
daysLeft | integer | optional | |||||||||||||||||||||||||||||||||||||
lifetimeDays | integer | optional | |||||||||||||||||||||||||||||||||||||
hostname | string | required | The address the next start uses. | ||||||||||||||||||||||||||||||||||||
coversHostname | boolean | required | |||||||||||||||||||||||||||||||||||||
autoRenew | boolean | required | |||||||||||||||||||||||||||||||||||||
renewal | Renewal | optional | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
warning | Warning | optional | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
progress | object | required | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
acme | object | required | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
webPort | integer | required | |||||||||||||||||||||||||||||||||||||
notes | array of string | required | |||||||||||||||||||||||||||||||||||||
bootFingerprint | string | required | SHA-256 of the certificate this process loaded when it started, or of the latest renewal. After a new certificate is installed it differs from certificate.fingerprintSha256 until the process starts again. A renewal does not make it differ. | ||||||||||||||||||||||||||||||||||||
{
"source": {
"root": "k7Qm2sLp9vX4aB1c",
"path": "projects/rush",
"rel": {}
},
"trusted": true,
"hostname": "example",
"coversHostname": true,
"autoRenew": true,
"progress": {
"stage": {},
"renewal": true,
"error": {
"message": "The cut is in the folder.",
"detail": "example"
},
"at": "2026-10-05T18:00:00Z"
},
"acme": {
"email": "[email protected]",
"termsUrl": "example",
"listener": {},
"plan": [
{}
]
},
"webPort": 443,
"notes": [
"The cut is in the folder."
],
"bootFingerprint": "example"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the terms were not accepted, the email is not an address, or the address is not a public name |
| 409 | conflict | a request is already running |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the terms were not accepted, the email is not an address, or the address is not a public name"
}
}
POST /api/v1/admin/certificate/renew
Renew the Let's Encrypt certificate now, in the background. Answers 202.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. None.
Success. 202.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
source | object | required | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
trusted | boolean | required | Issued by somebody browsers already trust. | ||||||||||||||||||||||||||||||||||||
certificate | Details | optional | |||||||||||||||||||||||||||||||||||||
daysLeft | integer | optional | |||||||||||||||||||||||||||||||||||||
lifetimeDays | integer | optional | |||||||||||||||||||||||||||||||||||||
hostname | string | required | The address the next start uses. | ||||||||||||||||||||||||||||||||||||
coversHostname | boolean | required | |||||||||||||||||||||||||||||||||||||
autoRenew | boolean | required | |||||||||||||||||||||||||||||||||||||
renewal | Renewal | optional | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
warning | Warning | optional | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
progress | object | required | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
acme | object | required | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
webPort | integer | required | |||||||||||||||||||||||||||||||||||||
notes | array of string | required | |||||||||||||||||||||||||||||||||||||
bootFingerprint | string | required | SHA-256 of the certificate this process loaded when it started, or of the latest renewal. After a new certificate is installed it differs from certificate.fingerprintSha256 until the process starts again. A renewal does not make it differ. | ||||||||||||||||||||||||||||||||||||
{
"source": {
"root": "k7Qm2sLp9vX4aB1c",
"path": "projects/rush",
"rel": {}
},
"trusted": true,
"hostname": "example",
"coversHostname": true,
"autoRenew": true,
"progress": {
"stage": {},
"renewal": true,
"error": {
"message": "The cut is in the folder.",
"detail": "example"
},
"at": "2026-10-05T18:00:00Z"
},
"acme": {
"email": "[email protected]",
"termsUrl": "example",
"listener": {},
"plan": [
{}
]
},
"webPort": 443,
"notes": [
"The cut is in the folder."
],
"bootFingerprint": "example"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the certificate in use is not from Let's Encrypt |
| 409 | conflict | a request is already running |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the certificate in use is not from Let's Encrypt"
}
}
PUT /api/v1/admin/certificate/auto-renew
Turn automatic renewal on or off. When on, the certificate is renewed when a third of its lifetime is left (at most 30 days before it expires), retrying with backoff after a failure. Body: {"enabled": true}.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
enabled | boolean | required |
{
"enabled": true
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
source | object | required | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
trusted | boolean | required | Issued by somebody browsers already trust. | ||||||||||||||||||||||||||||||||||||
certificate | Details | optional | |||||||||||||||||||||||||||||||||||||
daysLeft | integer | optional | |||||||||||||||||||||||||||||||||||||
lifetimeDays | integer | optional | |||||||||||||||||||||||||||||||||||||
hostname | string | required | The address the next start uses. | ||||||||||||||||||||||||||||||||||||
coversHostname | boolean | required | |||||||||||||||||||||||||||||||||||||
autoRenew | boolean | required | |||||||||||||||||||||||||||||||||||||
renewal | Renewal | optional | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
warning | Warning | optional | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
progress | object | required | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
acme | object | required | |||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||
webPort | integer | required | |||||||||||||||||||||||||||||||||||||
notes | array of string | required | |||||||||||||||||||||||||||||||||||||
bootFingerprint | string | required | SHA-256 of the certificate this process loaded when it started, or of the latest renewal. After a new certificate is installed it differs from certificate.fingerprintSha256 until the process starts again. A renewal does not make it differ. | ||||||||||||||||||||||||||||||||||||
{
"source": {
"root": "k7Qm2sLp9vX4aB1c",
"path": "projects/rush",
"rel": {}
},
"trusted": true,
"hostname": "example",
"coversHostname": true,
"autoRenew": true,
"progress": {
"stage": {},
"renewal": true,
"error": {
"message": "The cut is in the folder.",
"detail": "example"
},
"at": "2026-10-05T18:00:00Z"
},
"acme": {
"email": "[email protected]",
"termsUrl": "example",
"listener": {},
"plan": [
{}
]
},
"webPort": 443,
"notes": [
"The cut is in the folder."
],
"bootFingerprint": "example"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/certificate/upload
Check, and unless dryRun install, a certificate chain and private key in PEM form (RSA, ECDSA or Ed25519).
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Refused if the key does not match, the chain is out of order, or the certificate has expired or is not yet valid; a name that does not cover the configured address is a warning. The certificate in use is kept when the new one is refused. Answers {installed, inspection: {errors, warnings, details}, status}. Body: {"certificate": "(PEM certificate chain)", "privateKey": "(PEM private key)", "dryRun": false}.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
certificate | string | required | PEM: the server's certificate, then any intermediates. Any order. |
privateKey | string | required | PEM, without a password. |
dryRun | boolean | optional | Check only; install nothing. |
{
"certificate": "example",
"privateKey": "example",
"dryRun": false
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
installed | boolean | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
inspection | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
status | Status | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"installed": true,
"inspection": {
"details": {
"subject": "Files for Monday",
"names": [
"Rush delivery"
],
"issuer": "example",
"notBefore": "example",
"notAfter": "example",
"selfSigned": true,
"chainLength": 1,
"keyType": "example",
"fingerprintSha256": "example"
},
"errors": [
"example"
],
"warnings": [
"example"
]
},
"status": {
"source": {
"root": "k7Qm2sLp9vX4aB1c",
"path": "projects/rush",
"rel": {}
},
"trusted": true,
"hostname": "example",
"coversHostname": true,
"autoRenew": true,
"progress": {
"stage": {},
"renewal": true,
"error": {
"message": "The cut is in the folder.",
"detail": "example"
},
"at": "2026-10-05T18:00:00Z"
},
"acme": {
"email": "[email protected]",
"termsUrl": "example",
"listener": {},
"plan": [
{}
]
},
"webPort": 443,
"notes": [
"The cut is in the folder."
],
"bootFingerprint": "example"
}
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the request is not valid |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the request is not valid"
}
}
GET /api/v1/admin/server
Restart and maintenance status: how the process comes back, what a restart would change, and anything that would stop it coming back.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
| Field | Type | Meaning | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bootId | string | required | The id. | ||||||||||||
restartMode | object | required | How the process comes back: exit for a supervisor to restart it, exec to replace itself in place. | ||||||||||||
restarting | boolean | required | |||||||||||||
maintenance | Maintenance | optional | |||||||||||||
It is an object:
| |||||||||||||||
runningTransfers | integer | required | |||||||||||||
pending | array of string | required | What a restart would change, one line each. | ||||||||||||
problems | array of objects | required | What would go wrong on the way back up, found by trying. | ||||||||||||
Each item is an object:
| |||||||||||||||
notes | array of string | required | What this start had to work around. | ||||||||||||
{
"bootId": "k7Qm2sLp9vX4aB1c",
"restartMode": {},
"restarting": true,
"maintenance": {
"since": "example",
"message": "The cut is in the folder."
},
"runningTransfers": 1,
"pending": [
"example"
],
"problems": [
{
"blocking": true,
"text": "example"
}
],
"notes": [
"The cut is in the folder."
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/server/restart
Restart the server. Running transfers are paused and kept; the answer comes before the process stops. Body: {"force": false}.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
force | boolean | optional | Restart even though a check found something that would stop part of the server coming back. The portal offers this only after showing what the check found. |
{
"force": true
}
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
bootId | string | required | The process being stopped. The portal waits for a different one. |
restartMode | object | required |
{
"bootId": "k7Qm2sLp9vX4aB1c",
"restartMode": {}
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 409 | conflict | a restart is already under way, or the next start would fail; send force to restart anyway |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "conflict",
"message": "a restart is already under way, or the next start would fail; send force to restart anyway"
}
}
PUT /api/v1/admin/maintenance
Turn maintenance on or off.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
While on, new uploads, transfers and packages are paused for everyone, including administrators. Only administrators can sign in. Transfers already running carry on. Hot folders, sync jobs, and event rules that send to another server or send a package wait, and start once maintenance is off. Body: {"on": true, "message": "", "pauseRunning": false}.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
on | boolean | required | |
message | string | optional | A note for the banner. Ignored when turning maintenance off. |
pauseRunning | boolean | optional | Pause transfers already running, rather than letting them finish. |
{
"on": true,
"message": "The cut is in the folder.",
"pauseRunning": true
}
Success. 200.
| Field | Type | Meaning | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
maintenance | Maintenance | optional | |||||||||||||
It is an object:
| |||||||||||||||
paused | integer | required | Transfers paused by this change. | ||||||||||||
{
"maintenance": {
"since": "example",
"message": "The cut is in the folder."
},
"paused": 1
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the note is too long |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the note is too long"
}
}
GET /api/v1/admin/maintenance/settings
When old history is deleted and the database tidied, the last run and the next.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Answers {settings, lastRun, nextRun, timeZone, running, requestedAt, check}. requestedAt is when Run now was pressed, until the run starts. check is what the last look at transfers found while a run is requested or waiting, {at, busy, uploadPercent, downloadPercent, nextAt}: the percents are of this server's speed limits, null with no limit, and nextAt is when it looks again while transfers are busy. settings is {time, days, busyPercent, windowHours, retention, reclaimSpace, trashDays}. trashDays is how many days Trash keeps what people delete, 1 to 3650, or null when Trash is off and deletes are for good; a new server keeps 30. time is HH:MM in the server's time zone, days are 1 (Monday) to 7, and retention has audit, transfers, packages, submissions and runs in days, null for forever. lastRun is {startedAt, finishedAt, outcome, detail}, where outcome is running, ok, stopped, waited or failed.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
settings | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lastRun | Run | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
nextRun | string | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
timeZone | string | required | The zone the time is in, as the server writes it. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
running | boolean | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
requestedAt | string | optional | When Run now was pressed, until the run starts or the window ends. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
check | Check | optional | What the last look at transfers found, while a run is requested or waiting. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"settings": {
"time": "example",
"days": [
1
],
"busyPercent": 1,
"windowHours": 1,
"retention": {
"audit": 1,
"transfers": 1,
"packages": 1,
"submissions": 1,
"runs": 1
},
"reclaimSpace": true,
"trashDays": 1
},
"lastRun": {
"startedAt": "2026-10-05T18:00:00Z",
"finishedAt": "2026-10-05T18:00:00Z",
"outcome": "example",
"detail": {
"removed": {},
"spaceBytes": 1,
"reason": "The scanner was wrong about this file."
}
},
"nextRun": "example",
"timeZone": "example",
"running": true,
"requestedAt": "2026-10-05T18:00:00Z",
"check": {
"at": "2026-10-05T18:00:00Z",
"busy": true,
"uploadPercent": 1,
"downloadPercent": 1,
"nextAt": "2026-10-05T18:00:00Z"
}
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/admin/maintenance/settings
Change the maintenance settings, all of them at once.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. The same shape as settings in GET; leaving out trashDays keeps it as it is. Nothing is deleted until the next run. Lowering trashDays, or turning Trash off, while Trash holds items that would then be deleted answers 409 plan_changed with plan {token, wouldPurge: {items, bytes, users}}; send the same body again with planToken set to that token to save it. Written to the audit log as settings.maintenance.
Request body. The raw bytes of the piece. Not JSON.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a time not written HH:MM, no days, busyPercent outside 10 to 100, windowHours outside 1 to 12, a keep time outside 90 days to 10 years, run history outside 90 days to 2 years, or trashDays outside 1 to 3650 |
| 409 | conflict | plan_changed: the change would delete items in Trash, and planToken did not match |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "a time not written HH:MM, no days, busyPercent outside 10 to 100, windowHours outside 1 to 12, a keep time outside 90 days to 10 years, run history outside 90 days to 2 years, or trashDays outside 1 to 3650"
}
}
POST /api/v1/admin/maintenance/preview
What these settings would delete now.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Takes the same shape as the settings and answers the rows each history would lose, {audit, transfers, packages, submissions, runs, destinationTests}, for the confirmation before saving or running. Deletes nothing.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
time | string | required | HH:MM in the server's time zone. | ||||||||||||||||||||||||
days | array of integer | required | Days of the week, Monday 1 to Sunday 7. | ||||||||||||||||||||||||
busyPercent | integer | required | |||||||||||||||||||||||||
windowHours | integer | required | |||||||||||||||||||||||||
retention | object | required | |||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||
reclaimSpace | boolean | required | |||||||||||||||||||||||||
trashDays | integer | optional | Days a deleted file waits in Trash. None is Off: deleting is immediate. Settings saved before Trash existed read as the default. | ||||||||||||||||||||||||
{
"time": "example",
"days": [
1
],
"busyPercent": 1,
"windowHours": 1,
"retention": {
"audit": 1,
"transfers": 1,
"packages": 1,
"submissions": 1,
"runs": 1
},
"reclaimSpace": true,
"trashDays": 1
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the settings are not valid |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the settings are not valid"
}
}
POST /api/v1/admin/maintenance/run
Run maintenance now.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Looks at transfers at once and starts a run unless they are using more than the busy limit of this server's speed limit. While they are, it looks again about every 30 seconds until the window ends; check in GET settings says what it found. A run stops after 30 minutes. Each run writes maintenance.run to the audit log.
Request body. None.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
DELETE /api/v1/admin/maintenance/notice
Hide the notice that this server keeps all history forever.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/admin/maintenance/health
Maintenance and database lines for the Health page.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Answers {notice, skipped, failed, dbBytes, walBytes, walLarge, busyLastHour, vacuumSkippedBytes}.
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
notice | boolean | required | Show "this server keeps all history forever". |
skipped | integer | required | Runs skipped in a row because transfers were busy. |
failed | string | optional | Why the last run failed, when it did. |
dbBytes | integer | required | |
walBytes | integer | required | |
walLarge | boolean | required | The write log stayed over 256 MB after the last checkpoint. |
busyLastHour | integer | required | Writes that waited past the 5-second timeout in the last hour. |
vacuumSkippedBytes | integer | optional | Bytes to free before the one-time compaction can run, when it was skipped during the upgrade. |
{
"notice": true,
"skipped": 1,
"failed": "example",
"dbBytes": 1,
"walBytes": 1,
"walLarge": true,
"busyLastHour": 1,
"vacuumSkippedBytes": 1
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
API keys
GET /api/v1/admin/api-keys
Every key on the server. Never a secret: a key is shown once, when it is made.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Each key has clients: the last version of the farwing command line and of Farwing Desktop it was used from, newest first. Empty for a key only used by scripts.
Success. 200.
The body is an array.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | required | The id. | ||||||||||||||||||||
name | string | required | The name. | ||||||||||||||||||||
ownerId | string | required | The id. | ||||||||||||||||||||
ownerEmail | string | required | The address, because an id tells whoever has to judge the key nothing. Kept rather than deleted accounts are what make this resolvable. | ||||||||||||||||||||
ownerName | string | required | |||||||||||||||||||||
ownerKind | string | required | person or service. | ||||||||||||||||||||
folders | string | optional, left out when empty | |||||||||||||||||||||
grid | array of objects | optional, left out when empty | |||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
scopes | array of string | required | |||||||||||||||||||||
createdAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||
expiresAt | string | optional, left out when empty | A time, as RFC 3339. | ||||||||||||||||||||
lastUsedAt | string | optional, left out when empty | Absent on a key that has never been used, which is itself the answer to "can we take this one away". | ||||||||||||||||||||
revoked | boolean | required | The plain answer, so the list can be read without working out what a null timestamp means. | ||||||||||||||||||||
revokedAt | string | optional, left out when empty | A time, as RFC 3339. | ||||||||||||||||||||
clients | array of ClientSeen | optional, left out when empty | The Farwing clients the key was last used from. In the list of keys only. | ||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
allowedIps | string | optional, left out when empty | Networks this key may be used from. Empty means any address. | ||||||||||||||||||||
ratePerMinute | integer | optional, left out when empty | Requests per minute. Absent means no limit is stored. | ||||||||||||||||||||
lastUsedIp | string | optional, left out when empty | |||||||||||||||||||||
activity | array of objects | optional, left out when empty | Recent transfers that used this key. Empty when none are recorded. | ||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
[
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"ownerId": "k7Qm2sLp9vX4aB1c",
"ownerEmail": "[email protected]",
"ownerName": "example",
"ownerKind": "example",
"scopes": [
"read"
],
"createdAt": "2026-10-05T18:00:00Z",
"revoked": true
}
]
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/admin/api-keys/policy
How long a new key may live, and whether one may never expire.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
maxDays | integer | required | The longest life anyone may ask for, in days. |
allowNever | boolean | required | Whether a key may be made with no expiry at all. |
{
"maxDays": 1,
"allowNever": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/admin/api-keys/policy
Change that. Keys already issued keep the expiry they were given.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
maxDays | integer | required | Both fields are required. A defaulted field would mean saving one setting silently reset the other, and an administrator who narrowed the maximum life would find they had also allowed keys that never expire. |
allowNever | boolean | required |
{
"maxDays": 1,
"allowNever": true
}
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
maxDays | integer | required | The longest life anyone may ask for, in days. |
allowNever | boolean | required | Whether a key may be made with no expiry at all. |
{
"maxDays": 1,
"allowNever": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a value outside its allowed range |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "a value outside its allowed range"
}
}
DELETE /api/v1/admin/api-keys/{id}
Revoke somebody else's key.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | required | The id. | ||||||||||||||||||||
name | string | required | The name. | ||||||||||||||||||||
ownerId | string | required | The id. | ||||||||||||||||||||
ownerEmail | string | required | The address, because an id tells whoever has to judge the key nothing. Kept rather than deleted accounts are what make this resolvable. | ||||||||||||||||||||
ownerName | string | required | |||||||||||||||||||||
ownerKind | string | required | person or service. | ||||||||||||||||||||
folders | string | optional, left out when empty | |||||||||||||||||||||
grid | array of objects | optional, left out when empty | |||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
scopes | array of string | required | |||||||||||||||||||||
createdAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||
expiresAt | string | optional, left out when empty | A time, as RFC 3339. | ||||||||||||||||||||
lastUsedAt | string | optional, left out when empty | Absent on a key that has never been used, which is itself the answer to "can we take this one away". | ||||||||||||||||||||
revoked | boolean | required | The plain answer, so the list can be read without working out what a null timestamp means. | ||||||||||||||||||||
revokedAt | string | optional, left out when empty | A time, as RFC 3339. | ||||||||||||||||||||
clients | array of ClientSeen | optional, left out when empty | The Farwing clients the key was last used from. In the list of keys only. | ||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
allowedIps | string | optional, left out when empty | Networks this key may be used from. Empty means any address. | ||||||||||||||||||||
ratePerMinute | integer | optional, left out when empty | Requests per minute. Absent means no limit is stored. | ||||||||||||||||||||
lastUsedIp | string | optional, left out when empty | |||||||||||||||||||||
activity | array of objects | optional, left out when empty | Recent transfers that used this key. Empty when none are recorded. | ||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"ownerId": "k7Qm2sLp9vX4aB1c",
"ownerEmail": "[email protected]",
"ownerName": "example",
"ownerKind": "example",
"scopes": [
"read"
],
"createdAt": "2026-10-05T18:00:00Z",
"revoked": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
Speed check
GET /api/v1/speedcheck
Past speed checks, and the weekly schedule.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. A speed check measures what limits transfers on this server: the network, the processor, the staging disk, each storage location and the license's speed. It works on every plan, Free included. The reply is one page of checks (runs), how many match in all (total), the schedule, how many transfers are running now (transfersRunning), and how long a check usually takes in seconds (estimatedSeconds). from and to are inclusive. Without limit the page holds 50.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
from | query | string | optional | RFC 3339. Inclusive. Absent means no lower bound. |
to | query | string | optional | RFC 3339. Inclusive. Absent means no upper bound. |
limit | query | integer | optional | How many checks to return, from 1 to 200. Defaults to 50. A larger number is brought down to 200. |
offset | query | integer | optional | How many matching checks to skip. Defaults to 0. |
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
runs | array of objects | required | |||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||
total | integer | required | How many checks match from and to, including ones not on this page. | ||||||||||||||||||||||||||||||||
schedule | object | required | |||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||
transfersRunning | integer | required | |||||||||||||||||||||||||||||||||
estimatedSeconds | integer | required | |||||||||||||||||||||||||||||||||
places | array of objects | required | Every place a check can time, so the screen can say what this run will cover before it starts. | ||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||
savedBucketIds | array of string | required | Buckets included last time. A new bucket is not in this list. | ||||||||||||||||||||||||||||||||
{
"runs": [
{
"id": "k7Qm2sLp9vX4aB1c",
"state": "active",
"verdict": "example",
"limiter": {},
"receiveBps": 1,
"sendBps": 1,
"startedAt": "2026-10-05T18:00:00Z"
}
],
"total": 1,
"schedule": {
"enabled": true,
"weekday": 1,
"minute": 1,
"addresses": [
"example"
],
"lastRunAt": "2026-10-05T18:00:00Z",
"included": true
},
"transfersRunning": 1,
"estimatedSeconds": 1,
"places": [
{
"id": "k7Qm2sLp9vX4aB1c",
"title": "example",
"path": "projects/rush",
"role": "example",
"region": "example"
}
],
"savedBucketIds": [
"k7Qm2sLp9vX4aB1c"
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a time that is not RFC 3339, a page size below 1, or a page that starts before 0 |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "a time that is not RFC 3339, a page size below 1, or a page that starts before 0"
}
}
POST /api/v1/speedcheck
Start a speed check.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Answers at once with the check in state running. It takes about two minutes, so read it again by its id to follow the progress and get the result. It writes test data to each location it times and slows live transfers while it runs. When transfers are running and confirmBusy is not true, nothing starts and the answer is 409; ask again with it set to go ahead. A check that is already running is returned instead of starting a second one.
Request body. JSON.
The body may be left out.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
confirmBusy | boolean | optional | |
testSizeMb | integer | optional | Megabytes written to each location. Moved into the allowed range; see [store::MIN_TEST_MB]. |
bucketIds | array of string | optional | Buckets to include. Absent means leave every bucket out and do not change the saved choice. An empty list means include none, and is remembered. |
{
"confirmBusy": true,
"testSizeMb": 1,
"bucketIds": [
"k7Qm2sLp9vX4aB1c"
]
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
outcome | object | required | |||||||||||||||||||||||||||||
id | string | required | The id. | ||||||||||||||||||||||||||||
state | string | required | Where this record is in its life. | ||||||||||||||||||||||||||||
trigger | string | required | |||||||||||||||||||||||||||||
progressPercent | integer | required | |||||||||||||||||||||||||||||
progressStep | string | optional | |||||||||||||||||||||||||||||
error | string | optional | |||||||||||||||||||||||||||||
serverVersion | string | required | |||||||||||||||||||||||||||||
licensePlan | string | required | |||||||||||||||||||||||||||||
startedAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||||||||||
finishedAt | string | optional | A time, as RFC 3339. | ||||||||||||||||||||||||||||
currentUdpAdvice | Advice | optional | The host's UDP buffer limit read for this request, labelled as the current setting. Kept apart from network and advice, which are what the check measured when it ran. | ||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||
{
"outcome": {},
"id": "k7Qm2sLp9vX4aB1c",
"state": "active",
"trigger": "example",
"progressPercent": 1,
"serverVersion": "example",
"licensePlan": "example",
"startedAt": "2026-10-05T18:00:00Z"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 409 | conflict | transfers are running and `confirmBusy` was not set |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "conflict",
"message": "transfers are running and `confirmBusy` was not set"
}
}
PUT /api/v1/speedcheck/schedule
Turn the weekly speed check on or off, or change when it runs.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when turning it on, when this server's license does not include automation.
Administrators only. Send only what changes. Turning the schedule on needs the automation feature. Turning it off, or changing the day, time or addresses of one that is already on, does not, so a license that lapses never traps an administrator with a schedule they cannot edit. addresses are who the result is emailed to, up to 10.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
enabled | boolean | optional | |
weekday | integer | optional | Read as a number of any size so that 9 is refused in words rather than by the parser. |
minute | integer | optional | |
addresses | array of string | optional |
{
"enabled": true,
"weekday": 1,
"minute": 1,
"addresses": [
"example"
]
}
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
enabled | boolean | required | |
weekday | integer | required | |
minute | integer | required | |
addresses | array of string | required | |
lastRunAt | string | optional | A time, as RFC 3339. |
included | boolean | required | Whether the license includes automation, which scheduled checks need and the check itself does not. |
{
"enabled": true,
"weekday": 1,
"minute": 1,
"addresses": [
"example"
],
"lastRunAt": "2026-10-05T18:00:00Z",
"included": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a day outside 0 to 6, a time outside 0 to 1439, an address that is not one, or more than 10 addresses |
| 402 | licence_required | turning it on, when this server's license does not include automation |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "bad_request",
"message": "a day outside 0 to 6, a time outside 0 to 1439, an address that is not one, or more than 10 addresses"
}
}
GET /api/v1/speedcheck/{id}
One speed check, with its progress while it runs.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. While the check runs, progressPercent and progressStep say how far it has got. When it finishes, verdict says in one sentence what limits transfers on this server, and advice says what to do about it.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
outcome | object | required | |||||||||||||||||||||||||||||
id | string | required | The id. | ||||||||||||||||||||||||||||
state | string | required | Where this record is in its life. | ||||||||||||||||||||||||||||
trigger | string | required | |||||||||||||||||||||||||||||
progressPercent | integer | required | |||||||||||||||||||||||||||||
progressStep | string | optional | |||||||||||||||||||||||||||||
error | string | optional | |||||||||||||||||||||||||||||
serverVersion | string | required | |||||||||||||||||||||||||||||
licensePlan | string | required | |||||||||||||||||||||||||||||
startedAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||||||||||
finishedAt | string | optional | A time, as RFC 3339. | ||||||||||||||||||||||||||||
currentUdpAdvice | Advice | optional | The host's UDP buffer limit read for this request, labelled as the current setting. Kept apart from network and advice, which are what the check measured when it ran. | ||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||
{
"outcome": {},
"id": "k7Qm2sLp9vX4aB1c",
"state": "active",
"trigger": "example",
"progressPercent": 1,
"serverVersion": "example",
"licensePlan": "example",
"startedAt": "2026-10-05T18:00:00Z"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | not_found | no such check |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "not_found",
"message": "not found"
}
}
DELETE /api/v1/speedcheck/{id}
Delete a finished speed check.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. The row is removed. A check that is still running is refused, because it is still using the disks and it is what stops a second check from starting.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Success. 200.
The reply has no body.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | not_found | no such check |
| 409 | conflict | the check is still running |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "not_found",
"message": "not found"
}
}
GET /api/v1/speedcheck/{id}/report.txt
A finished speed check as a text file.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. The same words the screen shows, to paste into a support email, sent as an attachment named for the day the check started. A check that failed is reported with the reason.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Success. 200.
The body is plain text, not JSON.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | not_found | no such check |
| 409 | conflict | the check is still running; ask again when it has finished |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "not_found",
"message": "not found"
}
}
GET /api/v1/admin/email/templates
Every email this server sends: its group, whether it is a security email, whether it is switched on, and which languages it has been written in.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only, on every plan. Reading works without a license so the editor can show what a license would add; included says whether this server may change anything, and freeMode says whether custom wording is saved but not being sent.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
included | boolean | required | The licence includes branding, so writes are accepted. | ||||||||||||||||||||||||||||||||||||||||||||
freeMode | boolean | required | Something custom is stored and is switched off for want of a licence. | ||||||||||||||||||||||||||||||||||||||||||||
serverLanguage | string | required | |||||||||||||||||||||||||||||||||||||||||||||
languages | array of string | required | |||||||||||||||||||||||||||||||||||||||||||||
layout | object | required | |||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||
kinds | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||
{
"included": true,
"freeMode": true,
"serverLanguage": "example",
"languages": [
"example"
],
"layout": {
"custom": true,
"version": 1,
"hasDraft": true
},
"kinds": [
{
"id": "k7Qm2sLp9vX4aB1c",
"group": "example",
"title": "example",
"about": "example",
"security": true,
"canDisable": true,
"enabled": true,
"custom": true,
"hasDraft": true,
"languages": [
"example"
]
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/admin/email/templates/{kind}
One email in one language: its variables, its locked blocks, the built-in wording, the published version, the draft and the version history.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only, on every plan. lang picks the language and defaults to this server's. fallsBackTo names the language that is sent instead while this one has nothing of its own.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
kind | path | string | required | The email type, such as package.received. |
lang | query | string | optional | The language, such as en or pt-BR. This server's language when it is left out. |
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kind | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lang | string | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fallsBackTo | string | optional | The language that is sent instead while this one has nothing of its own, or None when it is the built-in wording that is sent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
variables | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
requiredLocks | array of string | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lockWording | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
default | object | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
published | Published | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
draft | DraftView | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
versions | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"kind": {
"id": "k7Qm2sLp9vX4aB1c",
"group": "example",
"title": "example",
"about": "example",
"security": true,
"canDisable": true,
"enabled": true,
"custom": true,
"hasDraft": true,
"languages": [
"example"
]
},
"lang": "example",
"variables": [
{
"group": "example",
"vars": [
{
"id": "k7Qm2sLp9vX4aB1c",
"label": "example",
"about": "example",
"sample": "example",
"kind": {}
}
]
}
],
"requiredLocks": [
"example"
],
"lockWording": {},
"versions": [
{
"version": 1,
"at": "2026-10-05T18:00:00Z",
"by": "example",
"note": "The cut is in the folder."
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | not_found | no such email type |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "not_found",
"message": "not found"
}
}
PUT /api/v1/admin/email/templates/{kind}
Save the draft. Accepts wording with problems in it and hands the problems back, because the editor saves as you type.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when this server's license does not include email templates.
Administrators only, and needs a license that includes branding. Publishing checks again and refuses; saving does not, so an administrator is never stopped mid-sentence.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
kind | path | string | required | The email type, such as package.received. |
lang | query | string | optional | The language, such as en or pt-BR. This server's language when it is left out. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
subject | array of Inline | required | |||||||||
previewText | array of Inline | required | |||||||||
plainText | string | optional | The administrator's own plain-text version, or empty to have one made from the document. | ||||||||
doc | object | required | |||||||||
It is an object:
| |||||||||||
{
"subject": [
{}
],
"previewText": [
{}
],
"plainText": "example",
"doc": {
"blocks": [
{}
]
}
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
draft | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
problems | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"draft": {
"draft": {
"body": {
"subject": [],
"previewText": [],
"plainText": "example",
"doc": {}
},
"updatedAt": "2026-10-05T18:00:00Z"
},
"problems": [
{
"where": {},
"blockId": "k7Qm2sLp9vX4aB1c",
"message": "The cut is in the folder.",
"suggestion": "example"
}
]
},
"problems": [
{
"where": {},
"blockId": "k7Qm2sLp9vX4aB1c",
"message": "The cut is in the folder.",
"suggestion": "example"
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the document is not a shape this server understands |
| 402 | licence_required | this server's license does not include email templates |
| 404 | not_found | no such email type |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "bad_request",
"message": "the document is not a shape this server understands"
}
}
DELETE /api/v1/admin/email/templates/{kind}/draft
Throw the draft away and go back to the published wording.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when this server's license does not include email templates.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
kind | path | string | required | The email type, such as package.received. |
lang | query | string | optional | The language, such as en or pt-BR. This server's language when it is left out. |
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kind | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lang | string | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fallsBackTo | string | optional | The language that is sent instead while this one has nothing of its own, or None when it is the built-in wording that is sent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
variables | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
requiredLocks | array of string | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lockWording | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
default | object | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
published | Published | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
draft | DraftView | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
versions | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"kind": {
"id": "k7Qm2sLp9vX4aB1c",
"group": "example",
"title": "example",
"about": "example",
"security": true,
"canDisable": true,
"enabled": true,
"custom": true,
"hasDraft": true,
"languages": [
"example"
]
},
"lang": "example",
"variables": [
{
"group": "example",
"vars": [
{
"id": "k7Qm2sLp9vX4aB1c",
"label": "example",
"about": "example",
"sample": "example",
"kind": {}
}
]
}
],
"requiredLocks": [
"example"
],
"lockWording": {},
"versions": [
{
"version": 1,
"at": "2026-10-05T18:00:00Z",
"by": "example",
"note": "The cut is in the folder."
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 402 | licence_required | this server's license does not include email templates |
| 404 | not_found | no such email type |
| 409 | conflict | there is no draft |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "licence_required",
"message": "This server's license does not include email templates"
}
}
POST /api/v1/admin/email/templates/{kind}/publish
Make the draft live, as a new numbered version with an optional note.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when this server's license does not include email templates.
Administrators only, and needs a license that includes branding. Checked again here: a security email that has lost one of its locked blocks, an unknown variable, or a password link or code in a subject line is refused, however the request was made.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
kind | path | string | required | The email type, such as package.received. |
lang | query | string | optional | The language, such as en or pt-BR. This server's language when it is left out. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
note | string | optional |
{
"note": "The cut is in the folder."
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kind | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lang | string | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fallsBackTo | string | optional | The language that is sent instead while this one has nothing of its own, or None when it is the built-in wording that is sent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
variables | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
requiredLocks | array of string | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lockWording | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
default | object | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
published | Published | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
draft | DraftView | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
versions | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"kind": {
"id": "k7Qm2sLp9vX4aB1c",
"group": "example",
"title": "example",
"about": "example",
"security": true,
"canDisable": true,
"enabled": true,
"custom": true,
"hasDraft": true,
"languages": [
"example"
]
},
"lang": "example",
"variables": [
{
"group": "example",
"vars": [
{
"id": "k7Qm2sLp9vX4aB1c",
"label": "example",
"about": "example",
"sample": "example",
"kind": {}
}
]
}
],
"requiredLocks": [
"example"
],
"lockWording": {},
"versions": [
{
"version": 1,
"at": "2026-10-05T18:00:00Z",
"by": "example",
"note": "The cut is in the folder."
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the wording has a problem that must be fixed first |
| 402 | licence_required | this server's license does not include email templates |
| 404 | not_found | no such email type |
| 409 | conflict | there is no draft |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "bad_request",
"message": "the wording has a problem that must be fixed first"
}
}
POST /api/v1/admin/email/templates/{kind}/reset
Make a draft from the built-in wording. Nothing is lost until it is published.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when this server's license does not include email templates.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
kind | path | string | required | The email type, such as package.received. |
lang | query | string | optional | The language, such as en or pt-BR. This server's language when it is left out. |
Request body. None.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kind | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lang | string | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fallsBackTo | string | optional | The language that is sent instead while this one has nothing of its own, or None when it is the built-in wording that is sent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
variables | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
requiredLocks | array of string | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lockWording | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
default | object | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
published | Published | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
draft | DraftView | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
versions | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"kind": {
"id": "k7Qm2sLp9vX4aB1c",
"group": "example",
"title": "example",
"about": "example",
"security": true,
"canDisable": true,
"enabled": true,
"custom": true,
"hasDraft": true,
"languages": [
"example"
]
},
"lang": "example",
"variables": [
{
"group": "example",
"vars": [
{
"id": "k7Qm2sLp9vX4aB1c",
"label": "example",
"about": "example",
"sample": "example",
"kind": {}
}
]
}
],
"requiredLocks": [
"example"
],
"lockWording": {},
"versions": [
{
"version": 1,
"at": "2026-10-05T18:00:00Z",
"by": "example",
"note": "The cut is in the folder."
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 402 | licence_required | this server's license does not include email templates |
| 404 | not_found | no such email type |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "licence_required",
"message": "This server's license does not include email templates"
}
}
POST /api/v1/admin/email/templates/{kind}/restore
Make a draft from an earlier version. Body: {"version": 3}.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when this server's license does not include email templates.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
kind | path | string | required | The email type, such as package.received. |
lang | query | string | optional | The language, such as en or pt-BR. This server's language when it is left out. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
version | integer | required |
{
"version": 1
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kind | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lang | string | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fallsBackTo | string | optional | The language that is sent instead while this one has nothing of its own, or None when it is the built-in wording that is sent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
variables | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
requiredLocks | array of string | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lockWording | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
default | object | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
published | Published | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
draft | DraftView | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
versions | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"kind": {
"id": "k7Qm2sLp9vX4aB1c",
"group": "example",
"title": "example",
"about": "example",
"security": true,
"canDisable": true,
"enabled": true,
"custom": true,
"hasDraft": true,
"languages": [
"example"
]
},
"lang": "example",
"variables": [
{
"group": "example",
"vars": [
{
"id": "k7Qm2sLp9vX4aB1c",
"label": "example",
"about": "example",
"sample": "example",
"kind": {}
}
]
}
],
"requiredLocks": [
"example"
],
"lockWording": {},
"versions": [
{
"version": 1,
"at": "2026-10-05T18:00:00Z",
"by": "example",
"note": "The cut is in the folder."
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 402 | licence_required | this server's license does not include email templates |
| 404 | not_found | no such email type, or no such version |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "licence_required",
"message": "This server's license does not include email templates"
}
}
POST /api/v1/admin/email/templates/{kind}/languages
Add a language to this email, copying the wording of another to translate. Body: {"lang": "pt-BR", "copyFrom": "en"}.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when this server's license does not include email templates.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
kind | path | string | required | The email type, such as package.received. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
lang | string | required | |
copyFrom | string | optional | The language to copy from. Empty copies the built-in wording. |
{
"lang": "example",
"copyFrom": "example"
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kind | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lang | string | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fallsBackTo | string | optional | The language that is sent instead while this one has nothing of its own, or None when it is the built-in wording that is sent. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
variables | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
requiredLocks | array of string | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lockWording | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
default | object | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
published | Published | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
draft | DraftView | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
versions | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"kind": {
"id": "k7Qm2sLp9vX4aB1c",
"group": "example",
"title": "example",
"about": "example",
"security": true,
"canDisable": true,
"enabled": true,
"custom": true,
"hasDraft": true,
"languages": [
"example"
]
},
"lang": "example",
"variables": [
{
"group": "example",
"vars": [
{
"id": "k7Qm2sLp9vX4aB1c",
"label": "example",
"about": "example",
"sample": "example",
"kind": {}
}
]
}
],
"requiredLocks": [
"example"
],
"lockWording": {},
"versions": [
{
"version": 1,
"at": "2026-10-05T18:00:00Z",
"by": "example",
"note": "The cut is in the folder."
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | not a language code such as en or pt-BR |
| 402 | licence_required | this server's license does not include email templates |
| 404 | not_found | no such email type |
| 409 | conflict | that language is already there |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "bad_request",
"message": "not a language code such as en or pt-BR"
}
}
DELETE /api/v1/admin/email/templates/{kind}/languages/{lang}
Remove a language. The email then falls back to this server's language.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when this server's license does not include email templates.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
kind | path | string | required | The email type, such as package.received. |
lang | path | string | required | The language, such as pt-BR. |
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
id | string | required | The id. |
group | string | required | |
title | string | required | |
about | string | required | |
security | boolean | required | |
canDisable | boolean | required | |
enabled | boolean | required | |
custom | boolean | required | |
hasDraft | boolean | required | |
languages | array of string | required |
{
"id": "k7Qm2sLp9vX4aB1c",
"group": "example",
"title": "example",
"about": "example",
"security": true,
"canDisable": true,
"enabled": true,
"custom": true,
"hasDraft": true,
"languages": [
"example"
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 402 | licence_required | this server's license does not include email templates |
| 404 | not_found | no such email type, or no such language |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "licence_required",
"message": "This server's license does not include email templates"
}
}
POST /api/v1/admin/email/templates/{kind}/enabled
Turn one email on or off. Body: {"enabled": false}.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when this server's license does not include email templates.
Administrators only, and needs a license that includes branding. Security emails cannot be switched off; the notice about a new sign-in is the one exception, and it starts off.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
kind | path | string | required | The email type, such as package.received. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
enabled | boolean | required |
{
"enabled": true
}
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
id | string | required | The id. |
group | string | required | |
title | string | required | |
about | string | required | |
security | boolean | required | |
canDisable | boolean | required | |
enabled | boolean | required | |
custom | boolean | required | |
hasDraft | boolean | required | |
languages | array of string | required |
{
"id": "k7Qm2sLp9vX4aB1c",
"group": "example",
"title": "example",
"about": "example",
"security": true,
"canDisable": true,
"enabled": true,
"custom": true,
"hasDraft": true,
"languages": [
"example"
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | this email cannot be switched off |
| 402 | licence_required | this server's license does not include email templates |
| 404 | not_found | no such email type |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "bad_request",
"message": "this email cannot be switched off"
}
}
POST /api/v1/admin/email/templates/{kind}/preview
Draw wording that has not been saved, with sample data, and get back the HTML, the plain text, the subject line and the preview line.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only, on every plan. data chooses the sample set: sample, long (long names and messages), empty (every optional field blank) or real (a recent package or user, named by realId). A preview never fails on a bad variable: it is drawn as the text that was typed and listed under problems.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
kind | path | string | required | The email type, such as package.received. |
lang | query | string | optional | The language, such as en or pt-BR. This server's language when it is left out. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
body | object | required | |||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||
data | string | optional | sample, long, empty or real. | ||||||||||||||||||||||||||||||||
realId | string | optional | The package or user to fill real from. | ||||||||||||||||||||||||||||||||
{
"body": {
"subject": [
{}
],
"previewText": [
{}
],
"plainText": "example",
"doc": {
"blocks": [
{}
]
}
},
"data": "example",
"realId": "k7Qm2sLp9vX4aB1c"
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
subject | string | required | |||||||||||||||||||||
previewText | string | required | |||||||||||||||||||||
html | string | required | |||||||||||||||||||||
text | string | required | |||||||||||||||||||||
problems | array of objects | required | |||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
{
"subject": "Files for Monday",
"previewText": "example",
"html": "example",
"text": "example",
"problems": [
{
"where": {},
"blockId": "k7Qm2sLp9vX4aB1c",
"message": "The cut is in the folder.",
"suggestion": "example"
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the document is not a shape this server understands |
| 404 | not_found | no such email type |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the document is not a shape this server understands"
}
}
POST /api/v1/admin/email/templates/{kind}/test
Send this email to the signed-in administrator's own address, with both HTML and plain text.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when this server's license does not include email templates.
Administrators only, and needs a license that includes branding. The address comes from the account, never from the request, so the button cannot be aimed at somebody else. A relay that refuses it is reported in its own words.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
kind | path | string | required | The email type, such as package.received. |
lang | query | string | optional | The language, such as en or pt-BR. This server's language when it is left out. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
body | object | required | |||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||
data | string | optional | sample, long, empty or real. | ||||||||||||||||||||||||||||||||
realId | string | optional | The package or user to fill real from. | ||||||||||||||||||||||||||||||||
{
"body": {
"subject": [
{}
],
"previewText": [
{}
],
"plainText": "example",
"doc": {
"blocks": [
{}
]
}
},
"data": "example",
"realId": "k7Qm2sLp9vX4aB1c"
}
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
sent | boolean | required | |
to | string | required |
{
"sent": true,
"to": "projects/rush"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the wording has a problem, or the mail relay refused it |
| 402 | licence_required | this server's license does not include email templates |
| 404 | not_found | no such email type |
| 503 | unavailable | this server is not set up to send email |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "bad_request",
"message": "the wording has a problem, or the mail relay refused it"
}
}
GET /api/v1/admin/email/samples
A short list of recent packages and users, to preview an email against something that really happened.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
packages | array of objects | required | |||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||
users | array of objects | required | |||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||
{
"packages": [
{
"id": "k7Qm2sLp9vX4aB1c",
"label": "example",
"subject": "Files for Monday",
"sender": "example",
"fileCount": 1,
"totalSize": 1,
"createdAt": "2026-10-05T18:00:00Z"
}
],
"users": [
{
"id": "k7Qm2sLp9vX4aB1c",
"label": "example",
"name": "Rush delivery",
"email": "[email protected]"
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/admin/email/layout
The frame every email is drawn in: logo, brand and button colours, header and footer, and whether the server's web address is shown.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
included | boolean | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
default | object | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
published | PublishedLayout | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
draft | DraftLayoutView | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
versions | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
contrast | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"included": true,
"default": {
"logo": "example",
"logoAlt": "example",
"brandColour": "example",
"buttonColour": "example",
"headerText": [
{}
],
"footerText": [
{}
],
"showServerUrl": true
},
"published": {
"layout": {
"logo": "example",
"logoAlt": "example",
"brandColour": "example",
"buttonColour": "example",
"headerText": [
{}
],
"footerText": [
{}
],
"showServerUrl": true
},
"version": 1,
"at": "2026-10-05T18:00:00Z",
"by": "example",
"note": "The cut is in the folder."
},
"draft": {
"draft": {
"layout": {
"logo": "example",
"logoAlt": "example",
"brandColour": "example",
"buttonColour": "example",
"headerText": [],
"footerText": [],
"showServerUrl": true
},
"updatedAt": "2026-10-05T18:00:00Z"
},
"problems": [
{
"where": {},
"blockId": "k7Qm2sLp9vX4aB1c",
"message": "The cut is in the folder.",
"suggestion": "example"
}
]
},
"versions": [
{
"version": 1,
"at": "2026-10-05T18:00:00Z",
"by": "example",
"note": "The cut is in the folder."
}
],
"contrast": {
"button": 1
}
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/admin/email/layout
Save the layout draft.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when this server's license does not include email templates.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
logo | string | required | Empty, or a data: URL of a PNG or SVG. Checked by whoever saves it; see [super::validate::layout]. Empty means the product wordmark: an email never goes out with a blank header. |
logoAlt | string | required | |
brandColour | string | required | #rrggbb. Used for links and for the server's name when there is no logo. |
buttonColour | string | required | #rrggbb. The button's background. |
headerText | array of Inline | required | |
footerText | array of Inline | required | |
showServerUrl | boolean | required |
{
"logo": "example",
"logoAlt": "example",
"brandColour": "example",
"buttonColour": "example",
"headerText": [
{}
],
"footerText": [
{}
],
"showServerUrl": true
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
draft | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
problems | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"draft": {
"draft": {
"layout": {
"logo": "example",
"logoAlt": "example",
"brandColour": "example",
"buttonColour": "example",
"headerText": [],
"footerText": [],
"showServerUrl": true
},
"updatedAt": "2026-10-05T18:00:00Z"
},
"problems": [
{
"where": {},
"blockId": "k7Qm2sLp9vX4aB1c",
"message": "The cut is in the folder.",
"suggestion": "example"
}
]
},
"problems": [
{
"where": {},
"blockId": "k7Qm2sLp9vX4aB1c",
"message": "The cut is in the folder.",
"suggestion": "example"
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a colour that is not #rrggbb, a logo that is not a PNG or an SVG, or one over 256 KiB |
| 402 | licence_required | this server's license does not include email templates |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "bad_request",
"message": "a colour that is not #rrggbb, a logo that is not a PNG or an SVG, or one over 256 KiB"
}
}
DELETE /api/v1/admin/email/layout/draft
Throw the layout draft away.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when this server's license does not include email templates.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
included | boolean | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
default | object | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
published | PublishedLayout | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
draft | DraftLayoutView | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
versions | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
contrast | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"included": true,
"default": {
"logo": "example",
"logoAlt": "example",
"brandColour": "example",
"buttonColour": "example",
"headerText": [
{}
],
"footerText": [
{}
],
"showServerUrl": true
},
"published": {
"layout": {
"logo": "example",
"logoAlt": "example",
"brandColour": "example",
"buttonColour": "example",
"headerText": [
{}
],
"footerText": [
{}
],
"showServerUrl": true
},
"version": 1,
"at": "2026-10-05T18:00:00Z",
"by": "example",
"note": "The cut is in the folder."
},
"draft": {
"draft": {
"layout": {
"logo": "example",
"logoAlt": "example",
"brandColour": "example",
"buttonColour": "example",
"headerText": [],
"footerText": [],
"showServerUrl": true
},
"updatedAt": "2026-10-05T18:00:00Z"
},
"problems": [
{
"where": {},
"blockId": "k7Qm2sLp9vX4aB1c",
"message": "The cut is in the folder.",
"suggestion": "example"
}
]
},
"versions": [
{
"version": 1,
"at": "2026-10-05T18:00:00Z",
"by": "example",
"note": "The cut is in the folder."
}
],
"contrast": {
"button": 1
}
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 402 | licence_required | this server's license does not include email templates |
| 409 | conflict | there is no draft |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "licence_required",
"message": "This server's license does not include email templates"
}
}
POST /api/v1/admin/email/layout/publish
Make the layout draft live, as a new numbered version.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when this server's license does not include email templates.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
note | string | optional |
{
"note": "The cut is in the folder."
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
included | boolean | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
default | object | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
published | PublishedLayout | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
draft | DraftLayoutView | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
versions | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
contrast | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"included": true,
"default": {
"logo": "example",
"logoAlt": "example",
"brandColour": "example",
"buttonColour": "example",
"headerText": [
{}
],
"footerText": [
{}
],
"showServerUrl": true
},
"published": {
"layout": {
"logo": "example",
"logoAlt": "example",
"brandColour": "example",
"buttonColour": "example",
"headerText": [
{}
],
"footerText": [
{}
],
"showServerUrl": true
},
"version": 1,
"at": "2026-10-05T18:00:00Z",
"by": "example",
"note": "The cut is in the folder."
},
"draft": {
"draft": {
"layout": {
"logo": "example",
"logoAlt": "example",
"brandColour": "example",
"buttonColour": "example",
"headerText": [],
"footerText": [],
"showServerUrl": true
},
"updatedAt": "2026-10-05T18:00:00Z"
},
"problems": [
{
"where": {},
"blockId": "k7Qm2sLp9vX4aB1c",
"message": "The cut is in the folder.",
"suggestion": "example"
}
]
},
"versions": [
{
"version": 1,
"at": "2026-10-05T18:00:00Z",
"by": "example",
"note": "The cut is in the folder."
}
],
"contrast": {
"button": 1
}
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the layout has a problem that must be fixed first |
| 402 | licence_required | this server's license does not include email templates |
| 409 | conflict | there is no draft |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "bad_request",
"message": "the layout has a problem that must be fixed first"
}
}
POST /api/v1/admin/email/layout/reset
Make a layout draft from the built-in frame.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when this server's license does not include email templates.
Request body. None.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
included | boolean | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
default | object | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
published | PublishedLayout | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
draft | DraftLayoutView | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
versions | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
contrast | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"included": true,
"default": {
"logo": "example",
"logoAlt": "example",
"brandColour": "example",
"buttonColour": "example",
"headerText": [
{}
],
"footerText": [
{}
],
"showServerUrl": true
},
"published": {
"layout": {
"logo": "example",
"logoAlt": "example",
"brandColour": "example",
"buttonColour": "example",
"headerText": [
{}
],
"footerText": [
{}
],
"showServerUrl": true
},
"version": 1,
"at": "2026-10-05T18:00:00Z",
"by": "example",
"note": "The cut is in the folder."
},
"draft": {
"draft": {
"layout": {
"logo": "example",
"logoAlt": "example",
"brandColour": "example",
"buttonColour": "example",
"headerText": [],
"footerText": [],
"showServerUrl": true
},
"updatedAt": "2026-10-05T18:00:00Z"
},
"problems": [
{
"where": {},
"blockId": "k7Qm2sLp9vX4aB1c",
"message": "The cut is in the folder.",
"suggestion": "example"
}
]
},
"versions": [
{
"version": 1,
"at": "2026-10-05T18:00:00Z",
"by": "example",
"note": "The cut is in the folder."
}
],
"contrast": {
"button": 1
}
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 402 | licence_required | this server's license does not include email templates |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "licence_required",
"message": "This server's license does not include email templates"
}
}
POST /api/v1/admin/email/layout/restore
Make a layout draft from an earlier version. Body: {"version": 2}.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when this server's license does not include email templates.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
version | integer | required |
{
"version": 1
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
included | boolean | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
default | object | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
published | PublishedLayout | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
draft | DraftLayoutView | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
versions | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
contrast | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"included": true,
"default": {
"logo": "example",
"logoAlt": "example",
"brandColour": "example",
"buttonColour": "example",
"headerText": [
{}
],
"footerText": [
{}
],
"showServerUrl": true
},
"published": {
"layout": {
"logo": "example",
"logoAlt": "example",
"brandColour": "example",
"buttonColour": "example",
"headerText": [
{}
],
"footerText": [
{}
],
"showServerUrl": true
},
"version": 1,
"at": "2026-10-05T18:00:00Z",
"by": "example",
"note": "The cut is in the folder."
},
"draft": {
"draft": {
"layout": {
"logo": "example",
"logoAlt": "example",
"brandColour": "example",
"buttonColour": "example",
"headerText": [],
"footerText": [],
"showServerUrl": true
},
"updatedAt": "2026-10-05T18:00:00Z"
},
"problems": [
{
"where": {},
"blockId": "k7Qm2sLp9vX4aB1c",
"message": "The cut is in the folder.",
"suggestion": "example"
}
]
},
"versions": [
{
"version": 1,
"at": "2026-10-05T18:00:00Z",
"by": "example",
"note": "The cut is in the folder."
}
],
"contrast": {
"button": 1
}
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 402 | licence_required | this server's license does not include email templates |
| 404 | not_found | no such version |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "licence_required",
"message": "This server's license does not include email templates"
}
}
POST /api/v1/admin/email/layout/preview
Draw a layout that has not been saved around a sample email. Body: the layout, and kind for which email to show inside it.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
layout | object | required | |||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||
kind | string | optional | The email to draw it around. package.received when left out. | ||||||||||||||||||||||||||||||||
data | string | optional | |||||||||||||||||||||||||||||||||
{
"layout": {
"logo": "example",
"logoAlt": "example",
"brandColour": "example",
"buttonColour": "example",
"headerText": [
{}
],
"footerText": [
{}
],
"showServerUrl": true
},
"kind": "shared",
"data": "example"
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
subject | string | required | |||||||||||||||||||||
previewText | string | required | |||||||||||||||||||||
html | string | required | |||||||||||||||||||||
text | string | required | |||||||||||||||||||||
problems | array of objects | required | |||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
{
"subject": "Files for Monday",
"previewText": "example",
"html": "example",
"text": "example",
"problems": [
{
"where": {},
"blockId": "k7Qm2sLp9vX4aB1c",
"message": "The cut is in the folder.",
"suggestion": "example"
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the layout is not a shape this server understands |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the layout is not a shape this server understands"
}
}
GET /api/v1/admin/email/export
Every custom email and the layout as one JSON file, to copy to another server or to a standby.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
version | integer | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||
templates | array of objects | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
layout | Layout | optional | None when the layout is the built-in one. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
enabled | object | optional | The switches an administrator has set, by email id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"version": 1,
"templates": [
{
"kind": {},
"lang": "example",
"body": {
"subject": [
{}
],
"previewText": [
{}
],
"plainText": "example",
"doc": {
"blocks": []
}
}
}
],
"layout": {
"logo": "example",
"logoAlt": "example",
"brandColour": "example",
"buttonColour": "example",
"headerText": [
{}
],
"footerText": [
{}
],
"showServerUrl": true
},
"enabled": {}
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/email/import
Take a file made by the export above. Wording that does not pass the checks is refused and nothing is changed.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when this server's license does not include email templates.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
version | integer | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||
templates | array of objects | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
layout | Layout | optional | None when the layout is the built-in one. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
enabled | object | optional | The switches an administrator has set, by email id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"version": 1,
"templates": [
{
"kind": {},
"lang": "example",
"body": {
"subject": [
{}
],
"previewText": [
{}
],
"plainText": "example",
"doc": {
"blocks": []
}
}
}
],
"layout": {
"logo": "example",
"logoAlt": "example",
"brandColour": "example",
"buttonColour": "example",
"headerText": [
{}
],
"footerText": [
{}
],
"showServerUrl": true
},
"enabled": {}
}
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
templates | array of string | required | kind/lang of every template that is now a new version. |
removed | array of string | required | kind/lang of every template that was here and is not in the file, and so was removed. |
unchanged | integer | required | Templates in the file that were already live, word for word. |
layout | string | required | replaced, removed or unchanged. |
switchesChanged | integer | required | How many on/off switches are different now. |
{
"templates": [
"example"
],
"removed": [
"example"
],
"unchanged": 1,
"layout": "example",
"switchesChanged": 1
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the file is not one of ours, or something in it would not publish |
| 402 | licence_required | this server's license does not include email templates |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "bad_request",
"message": "the file is not one of ours, or something in it would not publish"
}
}
Storage
GET /api/v1/admin/roots
Every storage location, and whether it can be reached.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Each has quota in bytes (null is no limit), usage (a Usage), capacity {free, total} (null for a bucket or where the disk cannot be measured), effective {bytes, cappedBy} when the disk holds less than the quota, and warnings, such as space quotas that add up to more than the location's.
Success. 200.
The body is an array.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | required | The id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name | string | required | The name. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
kind | string | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
path | string | required | A path relative to the space or the storage location, with / between folders and no leading slash. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
createdAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
grants | integer | required | How many grants point at it, so the delete dialog can say what it is about to take away instead of asking for a blind confirmation. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
reachable | boolean | required | Absent when the back end cannot be reached, which is the state an admin most needs to see: an unmounted volume looks exactly like an empty folder until something says otherwise. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bucket | View | optional, left out when empty | A bucket's settings, for the edit form. Never its secret: only whether one is stored. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
quota | integer | optional | Bytes this location may hold. None is no limit. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
usage | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
capacity | Capacity | optional | The disk's free and total bytes. None for a bucket, or where the server cannot measure it. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
effective | Effective | optional, left out when empty | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warnings | array of string | required | Limits that cannot all be met. Saving is never refused for these. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"kind": "shared",
"path": "projects/rush",
"createdAt": "2026-10-05T18:00:00Z",
"grants": 1,
"reachable": true,
"usage": {
"used": 1,
"files": 1,
"countedAt": "2026-10-05T18:00:00Z",
"counting": true
},
"warnings": [
"example"
]
}
]
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/roots
Add one: a folder that already exists, or a bucket on Amazon S3 or an S3-compatible service.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
A bucket is checked before it is saved. Body for a bucket: {"name", "bucket": {"provider", "bucket", "region", "endpoint", "prefix", "addressing", "readOnly", "credentials": "keys" | "ambient", "accessKeyId", "secretAccessKey"}}. The secret is stored encrypted and never returned. An optional quota in bytes limits what it may hold.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
name | string | required | The name. |
path | string | optional | For a local root. Ignored for a bucket. |
bucket | BucketBody | optional | Absent means a folder on this server. |
quota | integer | optional | Bytes. Absent or null is no limit. |
{
"name": "Rush delivery",
"path": "projects/rush",
"bucket": {},
"quota": 1
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | required | The id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name | string | required | The name. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
kind | string | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
path | string | required | A path relative to the space or the storage location, with / between folders and no leading slash. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
createdAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
grants | integer | required | How many grants point at it, so the delete dialog can say what it is about to take away instead of asking for a blind confirmation. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
reachable | boolean | required | Absent when the back end cannot be reached, which is the state an admin most needs to see: an unmounted volume looks exactly like an empty folder until something says otherwise. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bucket | View | optional, left out when empty | A bucket's settings, for the edit form. Never its secret: only whether one is stored. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
quota | integer | optional | Bytes this location may hold. None is no limit. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
usage | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
capacity | Capacity | optional | The disk's free and total bytes. None for a bucket, or where the server cannot measure it. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
effective | Effective | optional, left out when empty | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warnings | array of string | required | Limits that cannot all be met. Saving is never refused for these. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"kind": "shared",
"path": "projects/rush",
"createdAt": "2026-10-05T18:00:00Z",
"grants": 1,
"reachable": true,
"usage": {
"used": 1,
"files": 1,
"countedAt": "2026-10-05T18:00:00Z",
"counting": true
},
"warnings": [
"example"
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | missing, unreadable, or somewhere that would expose the server's keys; or the object store's own refusal |
| 409 | conflict | the name is taken, or another storage location already covers it |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "missing, unreadable, or somewhere that would expose the server's keys; or the object store's own refusal"
}
}
POST /api/v1/admin/roots/test
Try a bucket exactly as given, and report what the object store said. Changes nothing. With ?root={id}, an empty secret means the one stored for that storage location.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
root | query | string | optional | The storage location being edited, whose stored secret is used when the form leaves the secret box empty. |
Request body. None.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the object store's own refusal, passed through |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the object store's own refusal, passed through"
}
}
PATCH /api/v1/admin/roots/{id}
Rename it, and for a bucket change how it is reached (key, region, endpoint, read only).
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
The folder, the bucket and the folder in it cannot be changed; an empty secret keeps the stored one. quota sets its limit in bytes; null removes it.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
name | string | required | The name. |
bucket | BucketBody | optional | A bucket's connection settings. The bucket and the folder in it cannot change, for the same reason a local root's path cannot. |
quota | integer | optional | Bytes. Absent leaves it as it is; null removes the limit. |
{
"name": "Rush delivery",
"bucket": {},
"quota": 1
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | required | The id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name | string | required | The name. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
kind | string | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
path | string | required | A path relative to the space or the storage location, with / between folders and no leading slash. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
createdAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
grants | integer | required | How many grants point at it, so the delete dialog can say what it is about to take away instead of asking for a blind confirmation. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
reachable | boolean | required | Absent when the back end cannot be reached, which is the state an admin most needs to see: an unmounted volume looks exactly like an empty folder until something says otherwise. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bucket | View | optional, left out when empty | A bucket's settings, for the edit form. Never its secret: only whether one is stored. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
quota | integer | optional | Bytes this location may hold. None is no limit. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
usage | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
capacity | Capacity | optional | The disk's free and total bytes. None for a bucket, or where the server cannot measure it. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
effective | Effective | optional, left out when empty | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warnings | array of string | required | Limits that cannot all be met. Saving is never refused for these. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"kind": "shared",
"path": "projects/rush",
"createdAt": "2026-10-05T18:00:00Z",
"grants": 1,
"reachable": true,
"usage": {
"used": 1,
"files": 1,
"countedAt": "2026-10-05T18:00:00Z",
"counting": true
},
"warnings": [
"example"
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a root needs a name of 1 to 64 characters |
| 404 | not_found | not there, or not visible to this caller |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "a root needs a name of 1 to 64 characters"
}
}
DELETE /api/v1/admin/roots/{id}
Remove it. The files are left where they are.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 409 | conflict | an automation still uses it |
| 404 | not_found | not there, or not visible to this caller |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "conflict",
"message": "an automation still uses it"
}
}
POST /api/v1/admin/roots/{id}/preview-check
A link to the first file in this bucket, valid for one minute, for the administrator's browser to fetch with Range: bytes=0-0 to find out whether previews can come straight from the bucket.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Answers {"url": null} when the bucket holds nothing to try.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Request body. None.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | this storage location is not a bucket, or the bucket refused |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "this storage location is not a bucket, or the bucket refused"
}
}
PUT /api/v1/admin/roots/{id}/preview-check
Save what the browser found. Body: {"state": "ok" | "notSetUp" | "unreachable", "origin": the portal address it ran from}. Previews come straight from the bucket only after an ok.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
state | object | required | Where this record is in its life. |
origin | string | required | The portal address the browser ran the check from. |
{
"state": {},
"origin": "example"
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | required | The id. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name | string | required | The name. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
kind | string | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
path | string | required | A path relative to the space or the storage location, with / between folders and no leading slash. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
createdAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
grants | integer | required | How many grants point at it, so the delete dialog can say what it is about to take away instead of asking for a blind confirmation. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
reachable | boolean | required | Absent when the back end cannot be reached, which is the state an admin most needs to see: an unmounted volume looks exactly like an empty folder until something says otherwise. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
bucket | View | optional, left out when empty | A bucket's settings, for the edit form. Never its secret: only whether one is stored. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
quota | integer | optional | Bytes this location may hold. None is no limit. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
usage | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
capacity | Capacity | optional | The disk's free and total bytes. None for a bucket, or where the server cannot measure it. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
effective | Effective | optional, left out when empty | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
warnings | array of string | required | Limits that cannot all be met. Saving is never refused for these. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"kind": "shared",
"path": "projects/rush",
"createdAt": "2026-10-05T18:00:00Z",
"grants": 1,
"reachable": true,
"usage": {
"used": 1,
"files": 1,
"countedAt": "2026-10-05T18:00:00Z",
"counting": true
},
"warnings": [
"example"
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | this storage location is not a bucket, or the origin is not an http or https address |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "this storage location is not a bucket, or the origin is not an http or https address"
}
}
Traffic and usage
GET /api/v1/traffic/rules
Speed and concurrency rules, from the server down to jobs.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/traffic/rules
Create or replace a rule. Empty fields mean no limit at that level.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | optional | The id. | ||||||||||||||||
scope | string | required | |||||||||||||||||
scopeId | string | optional | The id. | ||||||||||||||||
groupKind | string | optional | |||||||||||||||||
direction | string | required | |||||||||||||||||
totalBps | integer | optional | |||||||||||||||||
perTransferBps | integer | optional | |||||||||||||||||
concurrency | integer | optional | |||||||||||||||||
schedule | Schedule | optional | Left out keeps the stored schedule; null clears it. | ||||||||||||||||
It is an object:
| |||||||||||||||||||
priority | string | optional | Left out keeps the stored priority. | ||||||||||||||||
enabled | boolean | optional | |||||||||||||||||
{
"scope": "read",
"direction": "download"
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | required | The id. | ||||||||||||||||
scope | string | required | |||||||||||||||||
scopeId | string | required | The id. | ||||||||||||||||
groupKind | string | required | |||||||||||||||||
direction | string | required | |||||||||||||||||
totalBps | integer | optional | |||||||||||||||||
perTransferBps | integer | optional | |||||||||||||||||
concurrency | integer | optional | |||||||||||||||||
schedule | Schedule | optional | |||||||||||||||||
It is an object:
| |||||||||||||||||||
priority | string | required | |||||||||||||||||
enabled | boolean | required | |||||||||||||||||
licensed | boolean | required | |||||||||||||||||
createdAt | integer | required | |||||||||||||||||
updatedAt | integer | required | |||||||||||||||||
{
"id": "k7Qm2sLp9vX4aB1c",
"scope": "read",
"scopeId": "k7Qm2sLp9vX4aB1c",
"groupKind": "example",
"direction": "download",
"priority": "example",
"enabled": true,
"licensed": true,
"createdAt": 1,
"updatedAt": 1
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the request is not valid |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the request is not valid"
}
}
DELETE /api/v1/traffic/rules/{id}
Remove a rule.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | not_found | not there, or not visible to this caller |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "not_found",
"message": "not found"
}
}
GET /api/v1/traffic/preview
Effective limits for a user: which rule would bind if they sent now.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
user | query | string | required | |
direction | query | string | optional |
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
perTransferBps | integer | optional | |||||||||||||||||||||||||||||||||
poolBps | integer | optional | |||||||||||||||||||||||||||||||||
concurrency | integer | optional | |||||||||||||||||||||||||||||||||
limitedBy | string | required | |||||||||||||||||||||||||||||||||
sentence | string | required | |||||||||||||||||||||||||||||||||
layers | array of objects | required | Every rule that took part, license first, the person's own last. | ||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||
winners | object | required | The layer that set each number. | ||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||
{
"perTransferBps": 1,
"poolBps": 1,
"concurrency": 1,
"limitedBy": "example",
"sentence": "example",
"layers": [
{
"kind": "file",
"id": "k7Qm2sLp9vX4aB1c",
"groupKind": "example",
"totalBps": 1,
"perTransferBps": 1,
"concurrency": 1,
"overridden": [
"example"
]
}
],
"winners": {
"total": "example",
"perTransfer": "example",
"concurrency": "example"
}
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/traffic/policies
Server timezone for traffic schedules.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when this server's license does not include traffic policies.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
timezone | string | required |
{
"timezone": "example"
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the request is not valid |
| 402 | licence_required | this server's license does not include traffic policies |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "bad_request",
"message": "the request is not valid"
}
}
GET /api/v1/usage/live
Active and waiting transfers, and previews through this server, updated by the client every second.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
uploadBps | integer | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
downloadBps | integer | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
previewBps | integer | required | Previews through this server. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
previewOpen | integer | required | Previews open through this server, and straight from cloud storage. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
previewDirectOpen | integer | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
previewWaiting | integer | required | People turned away for a preview limit in the last few seconds. Filled in by the caller, which holds the preview sessions. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
previewLimit | integer | required | Previews allowed through this server at once. Filled in by the caller. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
previews | array of objects | required | Views through this server, not thumbnails. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
uploadLimitBps | integer | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
downloadLimitBps | integer | optional | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
active | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
waiting | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
recent | array of objects | required | The last [WINDOW] of readings, oldest first. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"uploadBps": 1,
"downloadBps": 1,
"previewBps": 1,
"previewOpen": 1,
"previewDirectOpen": 1,
"previewWaiting": 1,
"previewLimit": 1,
"previews": [
{
"id": "k7Qm2sLp9vX4aB1c",
"who": "example",
"name": "Rush delivery",
"kind": "file",
"bps": 1,
"bytes": 1048576
}
],
"active": [
{
"id": "k7Qm2sLp9vX4aB1c",
"who": "example",
"direction": "download",
"name": "Rush delivery",
"bps": 1,
"bytes": 1048576,
"limitedBy": "example",
"waiting": true,
"ahead": 1
}
],
"waiting": [
{
"id": "k7Qm2sLp9vX4aB1c",
"who": "example",
"direction": "download",
"name": "Rush delivery",
"bps": 1,
"bytes": 1048576,
"limitedBy": "example",
"waiting": true,
"ahead": 1
}
],
"recent": [
{
"ts": 1,
"uploadBps": 1,
"downloadBps": 1,
"previewBps": 1
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
DELETE /api/v1/usage/live/{id}
Cancel a running or waiting transfer, or end a preview through this server.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | not_found | not there, or not visible to this caller |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "not_found",
"message": "not found"
}
}
GET /api/v1/usage/previews
Previews since ?from= (seconds since the epoch): {opened, waited, turnedOff, kinds}. waited counts previews refused for a limit; turnedOff those refused by a setting.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/usage/history
Usage by hour or minute. Free mode shows the last 30 days.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
from | query | integer | optional | |
to | query | integer | optional | |
grain | query | string | optional | |
series | query | string | optional | |
series_id | query | string | optional | |
direction | query | string | optional |
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/usage/history.csv
Same view as a CSV file.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when usage reports are not included.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
from | query | integer | optional | |
to | query | integer | optional | |
grain | query | string | optional | |
series | query | string | optional | |
series_id | query | string | optional | |
direction | query | string | optional |
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 402 | licence_required | usage reports are not included |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "licence_required",
"message": "Usage reports are not included"
}
}
GET /api/v1/usage/reports
Scheduled email reports.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/usage/reports
Add a weekly or monthly report.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when usage reports are not included.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
cadence | string | required | |
addresses | array of string | required |
{
"cadence": "example",
"addresses": [
"example"
]
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the cadence is not weekly or monthly, or an address is not an email address |
| 402 | licence_required | usage reports are not included |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "bad_request",
"message": "the cadence is not weekly or monthly, or an address is not an email address"
}
}
DELETE /api/v1/usage/reports/{id}
Stop a scheduled email report.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | not_found | not there, or not visible to this caller |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "not_found",
"message": "not found"
}
}
POST /api/v1/usage/metrics-token
Mint a read-only token for the usage metrics feed.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when usage reports are not included.
Request body. None.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 402 | licence_required | usage reports are not included |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "licence_required",
"message": "Usage reports are not included"
}
}
GET /api/v1/usage/metrics
Prometheus text for traffic. Send a scrape token from the Usage page as a Bearer token, or call as an administrator. HTTP 402 in Free mode. Existing /metrics is unchanged.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when usage reports are not included.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 402 | licence_required | usage reports are not included |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "licence_required",
"message": "Usage reports are not included"
}
}
Single sign-on
GET /api/v1/admin/sso
Single sign-on settings. Never the client secret.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
enabled | boolean | required | What the administrator asked for. | ||||||||||||||||||||
active | boolean | required | Whether it is actually working right now. These differ when the provider could not be reached at start-up, and the screen has to show the difference rather than a tick that means nothing. | ||||||||||||||||||||
problem | string | optional, left out when empty | |||||||||||||||||||||
issuer | string | required | |||||||||||||||||||||
clientId | string | required | The id. | ||||||||||||||||||||
clientSecretSet | boolean | required | |||||||||||||||||||||
createAccounts | boolean | required | |||||||||||||||||||||
groupsClaim | string | optional, left out when empty | |||||||||||||||||||||
label | string | required | |||||||||||||||||||||
signOutAtProvider | boolean | required | Off unless the administrator asks to sign out at the provider too. | ||||||||||||||||||||
whoCanSignIn | object | required | |||||||||||||||||||||
groupMap | array of objects | required | |||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
groupMapPeople | array of integer | required | How many people each row let in at a sign-in in the last 90 days. | ||||||||||||||||||||
notifyFirstSignIn | boolean | required | |||||||||||||||||||||
endSessionEndpoint | string | optional, left out when empty | The provider's end-session address, when discovery published one. | ||||||||||||||||||||
postLogoutRedirectUri | string | required | What to register at the provider as the address people return to after signing out there. | ||||||||||||||||||||
redirectUri | string | required | What to register at the provider. Read-only, and worked out from web.hostname, so the administrator copies it rather than typing it into both places and getting them subtly different. | ||||||||||||||||||||
included | boolean | required | Whether the license includes single sign-on. When it does not, settings may be saved switched off, switching it on is refused, and nobody can sign in this way. | ||||||||||||||||||||
lastRefused | LastRefused | optional, left out when empty | The latest sign-in this way that was refused, and why. | ||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||
{
"enabled": true,
"active": true,
"issuer": "example",
"clientId": "k7Qm2sLp9vX4aB1c",
"clientSecretSet": true,
"createAccounts": true,
"label": "example",
"signOutAtProvider": true,
"whoCanSignIn": {},
"groupMap": [
{
"from": "projects/rush",
"to": "projects/rush",
"signInOnly": true,
"note": "The cut is in the folder."
}
],
"groupMapPeople": [
1
],
"notifyFirstSignIn": true,
"postLogoutRedirectUri": "example",
"redirectUri": "example",
"included": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/admin/sso
Set them up, or change them.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when switching it on, when this server's license does not include single sign-on.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
enabled | boolean | required | |||||||||||||||||||||
issuer | string | required | |||||||||||||||||||||
clientId | string | required | The id. | ||||||||||||||||||||
clientSecret | string | optional | |||||||||||||||||||||
createAccounts | boolean | optional | |||||||||||||||||||||
groupsClaim | string | optional | |||||||||||||||||||||
label | string | optional | |||||||||||||||||||||
signOutAtProvider | boolean | optional | |||||||||||||||||||||
whoCanSignIn | WhoCanSignIn | optional | Absent keeps the stored choice. | ||||||||||||||||||||
groupMap | array of GroupRow | optional | Absent keeps the stored rows. | ||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
notifyFirstSignIn | boolean | optional | |||||||||||||||||||||
confirmLoseAccess | integer | optional | How many people the administrator was shown would lose access, when switching to "Only people in a mapped group". | ||||||||||||||||||||
{
"enabled": true,
"issuer": "example",
"clientId": "k7Qm2sLp9vX4aB1c"
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
enabled | boolean | required | What the administrator asked for. | ||||||||||||||||||||
active | boolean | required | Whether it is actually working right now. These differ when the provider could not be reached at start-up, and the screen has to show the difference rather than a tick that means nothing. | ||||||||||||||||||||
problem | string | optional, left out when empty | |||||||||||||||||||||
issuer | string | required | |||||||||||||||||||||
clientId | string | required | The id. | ||||||||||||||||||||
clientSecretSet | boolean | required | |||||||||||||||||||||
createAccounts | boolean | required | |||||||||||||||||||||
groupsClaim | string | optional, left out when empty | |||||||||||||||||||||
label | string | required | |||||||||||||||||||||
signOutAtProvider | boolean | required | Off unless the administrator asks to sign out at the provider too. | ||||||||||||||||||||
whoCanSignIn | object | required | |||||||||||||||||||||
groupMap | array of objects | required | |||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
groupMapPeople | array of integer | required | How many people each row let in at a sign-in in the last 90 days. | ||||||||||||||||||||
notifyFirstSignIn | boolean | required | |||||||||||||||||||||
endSessionEndpoint | string | optional, left out when empty | The provider's end-session address, when discovery published one. | ||||||||||||||||||||
postLogoutRedirectUri | string | required | What to register at the provider as the address people return to after signing out there. | ||||||||||||||||||||
redirectUri | string | required | What to register at the provider. Read-only, and worked out from web.hostname, so the administrator copies it rather than typing it into both places and getting them subtly different. | ||||||||||||||||||||
included | boolean | required | Whether the license includes single sign-on. When it does not, settings may be saved switched off, switching it on is refused, and nobody can sign in this way. | ||||||||||||||||||||
lastRefused | LastRefused | optional, left out when empty | The latest sign-in this way that was refused, and why. | ||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||
{
"enabled": true,
"active": true,
"issuer": "example",
"clientId": "k7Qm2sLp9vX4aB1c",
"clientSecretSet": true,
"createAccounts": true,
"label": "example",
"signOutAtProvider": true,
"whoCanSignIn": {},
"groupMap": [
{
"from": "projects/rush",
"to": "projects/rush",
"signInOnly": true,
"note": "The cut is in the folder."
}
],
"groupMapPeople": [
1
],
"notifyFirstSignIn": true,
"postLogoutRedirectUri": "example",
"redirectUri": "example",
"included": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the provider could not be reached, or did not describe itself |
| 402 | licence_required | switching it on, when this server's license does not include single sign-on |
| 409 | conflict | the request clashes with what is already there |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "bad_request",
"message": "the provider could not be reached, or did not describe itself"
}
}
DELETE /api/v1/admin/sso
Turn it off. Passwords keep working.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
enabled | boolean | required | What the administrator asked for. | ||||||||||||||||||||
active | boolean | required | Whether it is actually working right now. These differ when the provider could not be reached at start-up, and the screen has to show the difference rather than a tick that means nothing. | ||||||||||||||||||||
problem | string | optional, left out when empty | |||||||||||||||||||||
issuer | string | required | |||||||||||||||||||||
clientId | string | required | The id. | ||||||||||||||||||||
clientSecretSet | boolean | required | |||||||||||||||||||||
createAccounts | boolean | required | |||||||||||||||||||||
groupsClaim | string | optional, left out when empty | |||||||||||||||||||||
label | string | required | |||||||||||||||||||||
signOutAtProvider | boolean | required | Off unless the administrator asks to sign out at the provider too. | ||||||||||||||||||||
whoCanSignIn | object | required | |||||||||||||||||||||
groupMap | array of objects | required | |||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
groupMapPeople | array of integer | required | How many people each row let in at a sign-in in the last 90 days. | ||||||||||||||||||||
notifyFirstSignIn | boolean | required | |||||||||||||||||||||
endSessionEndpoint | string | optional, left out when empty | The provider's end-session address, when discovery published one. | ||||||||||||||||||||
postLogoutRedirectUri | string | required | What to register at the provider as the address people return to after signing out there. | ||||||||||||||||||||
redirectUri | string | required | What to register at the provider. Read-only, and worked out from web.hostname, so the administrator copies it rather than typing it into both places and getting them subtly different. | ||||||||||||||||||||
included | boolean | required | Whether the license includes single sign-on. When it does not, settings may be saved switched off, switching it on is refused, and nobody can sign in this way. | ||||||||||||||||||||
lastRefused | LastRefused | optional, left out when empty | The latest sign-in this way that was refused, and why. | ||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||
{
"enabled": true,
"active": true,
"issuer": "example",
"clientId": "k7Qm2sLp9vX4aB1c",
"clientSecretSet": true,
"createAccounts": true,
"label": "example",
"signOutAtProvider": true,
"whoCanSignIn": {},
"groupMap": [
{
"from": "projects/rush",
"to": "projects/rush",
"signInOnly": true,
"note": "The cut is in the folder."
}
],
"groupMapPeople": [
1
],
"notifyFirstSignIn": true,
"postLogoutRedirectUri": "example",
"redirectUri": "example",
"included": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/admin/saml
SAML sign-in settings, and this server's service provider details to give the identity provider.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/admin/saml
Set SAML sign-in up, or change it: the provider's metadata (pasted or by address), and whether it is switched on or required.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when switching it on or requiring it, when this server's license does not include single sign-on.
Every field is optional; one that is left out keeps what is stored. Switching it on saves nothing unless the settings could sign somebody in. Requiring single sign-on is refused unless a named break-glass administrator exists with a password and a second factor.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
enabled | boolean | optional | |||||||||||||||||||||
label | string | optional | |||||||||||||||||||||
idpMetadataUrl | string | optional | |||||||||||||||||||||
idpMetadataXml | string | optional | Pasted metadata, read now and not kept: what is kept is what it said. | ||||||||||||||||||||
idpEntityId | string | optional | The id. | ||||||||||||||||||||
idpSsoUrl | string | optional | |||||||||||||||||||||
idpSsoBinding | Binding | optional | |||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||
idpSloUrl | string | optional | |||||||||||||||||||||
idpCertificates | array of string | optional | |||||||||||||||||||||
wantAssertionsSigned | boolean | optional | Accepted so the screen can send what it shows, and refused when false: this build takes nothing unsigned. | ||||||||||||||||||||
wantAssertionsEncrypted | boolean | optional | Accepted to be refused when true; see saml::response. | ||||||||||||||||||||
allowIdpInitiated | boolean | optional | |||||||||||||||||||||
singleLogout | boolean | optional | |||||||||||||||||||||
createAccounts | boolean | optional | |||||||||||||||||||||
whoCanSignIn | WhoCanSignIn | optional | |||||||||||||||||||||
notifyFirstSignIn | boolean | optional | |||||||||||||||||||||
confirmLoseAccess | integer | optional | How many people the administrator was shown would lose access, when switching to "Only people in a mapped group". | ||||||||||||||||||||
emailAttribute | string | optional | |||||||||||||||||||||
nameAttribute | string | optional | |||||||||||||||||||||
groupsAttribute | string | optional | |||||||||||||||||||||
groupMap | array of GroupMapping | optional | |||||||||||||||||||||
requireSso | boolean | optional | |||||||||||||||||||||
breakGlassEmail | string | optional | Named by email, because that is what an administrator knows. | ||||||||||||||||||||
breakGlassUserId | string | optional | The id. | ||||||||||||||||||||
{
"enabled": true,
"label": "example",
"idpMetadataUrl": "example",
"idpMetadataXml": "example",
"idpEntityId": "k7Qm2sLp9vX4aB1c",
"idpSsoUrl": "example",
"idpSsoBinding": {
"field": "example",
"bps": 1,
"concurrency": 1,
"label": "example"
},
"idpSloUrl": "example"
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
enabled | boolean | required | What the administrator asked for. | ||||||||||||||||||||
active | boolean | required | Whether sign-in works right now. These differ when the settings are incomplete or the license does not include it, and the screen has to show the difference rather than a tick that means nothing. | ||||||||||||||||||||
problem | string | optional | |||||||||||||||||||||
label | string | required | |||||||||||||||||||||
idpMetadataUrl | string | required | |||||||||||||||||||||
idpEntityId | string | required | The id. | ||||||||||||||||||||
idpSsoUrl | string | required | |||||||||||||||||||||
idpSsoBinding | object | required | |||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||
idpSloUrl | string | required | |||||||||||||||||||||
idpCertificates | array of string | required | Certificates, as PEM. Public, and never a key. | ||||||||||||||||||||
spEntityId | string | required | What to register at the provider. Read-only, worked out from the configured hostname so it is copied rather than typed twice. | ||||||||||||||||||||
spMetadataUrl | string | required | |||||||||||||||||||||
spAcsUrl | string | required | |||||||||||||||||||||
spLogoutUrl | string | required | |||||||||||||||||||||
spCertificate | string | required | The certificate this server serves its portal with, which our metadata lists. Empty when it cannot be read. | ||||||||||||||||||||
wantAssertionsSigned | boolean | required | Always true: this build accepts nothing unsigned, and says so. | ||||||||||||||||||||
allowIdpInitiated | boolean | required | |||||||||||||||||||||
singleLogout | boolean | required | |||||||||||||||||||||
createAccounts | boolean | required | |||||||||||||||||||||
whoCanSignIn | object | required | |||||||||||||||||||||
notifyFirstSignIn | boolean | required | |||||||||||||||||||||
emailAttribute | string | required | |||||||||||||||||||||
nameAttribute | string | required | |||||||||||||||||||||
groupsAttribute | string | required | |||||||||||||||||||||
groupMap | array of GroupMapping | required | |||||||||||||||||||||
groupMapPeople | array of integer | required | How many people each row let in at a sign-in in the last 90 days. | ||||||||||||||||||||
requireSso | boolean | required | |||||||||||||||||||||
breakGlassEmail | string | required | An email address. | ||||||||||||||||||||
breakGlassUserId | string | optional | The id. | ||||||||||||||||||||
included | boolean | required | Whether the license includes SAML. When it does not, settings may be prepared switched off, switching on is refused, and nobody can sign in this way. | ||||||||||||||||||||
lastRefused | LastRefused | optional, left out when empty | The latest sign-in this way that was refused, and why. | ||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||
{
"enabled": true,
"active": true,
"label": "example",
"idpMetadataUrl": "example",
"idpEntityId": "k7Qm2sLp9vX4aB1c",
"idpSsoUrl": "example",
"idpSsoBinding": {
"field": "example",
"bps": 1,
"concurrency": 1,
"label": "example"
},
"idpSloUrl": "example",
"idpCertificates": [
"example"
],
"spEntityId": "k7Qm2sLp9vX4aB1c",
"spMetadataUrl": "example",
"spAcsUrl": "example",
"spLogoutUrl": "example",
"spCertificate": "example",
"wantAssertionsSigned": true,
"allowIdpInitiated": true,
"singleLogout": true,
"createAccounts": true,
"whoCanSignIn": {},
"notifyFirstSignIn": true,
"emailAttribute": "example",
"nameAttribute": "example",
"groupsAttribute": "example",
"groupMap": [
{}
],
"groupMapPeople": [
1
],
"requireSso": true,
"breakGlassEmail": "[email protected]",
"included": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | nothing was saved; the message says why |
| 402 | licence_required | switching it on or requiring it, when this server's license does not include single sign-on |
| 409 | conflict | the request clashes with what is already there |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "bad_request",
"message": "nothing was saved; the message says why"
}
}
DELETE /api/v1/admin/saml
Remove the SAML settings. Passwords keep working, and accounts keep the identities already linked to them.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
enabled | boolean | required | What the administrator asked for. | ||||||||||||||||||||
active | boolean | required | Whether sign-in works right now. These differ when the settings are incomplete or the license does not include it, and the screen has to show the difference rather than a tick that means nothing. | ||||||||||||||||||||
problem | string | optional | |||||||||||||||||||||
label | string | required | |||||||||||||||||||||
idpMetadataUrl | string | required | |||||||||||||||||||||
idpEntityId | string | required | The id. | ||||||||||||||||||||
idpSsoUrl | string | required | |||||||||||||||||||||
idpSsoBinding | object | required | |||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||
idpSloUrl | string | required | |||||||||||||||||||||
idpCertificates | array of string | required | Certificates, as PEM. Public, and never a key. | ||||||||||||||||||||
spEntityId | string | required | What to register at the provider. Read-only, worked out from the configured hostname so it is copied rather than typed twice. | ||||||||||||||||||||
spMetadataUrl | string | required | |||||||||||||||||||||
spAcsUrl | string | required | |||||||||||||||||||||
spLogoutUrl | string | required | |||||||||||||||||||||
spCertificate | string | required | The certificate this server serves its portal with, which our metadata lists. Empty when it cannot be read. | ||||||||||||||||||||
wantAssertionsSigned | boolean | required | Always true: this build accepts nothing unsigned, and says so. | ||||||||||||||||||||
allowIdpInitiated | boolean | required | |||||||||||||||||||||
singleLogout | boolean | required | |||||||||||||||||||||
createAccounts | boolean | required | |||||||||||||||||||||
whoCanSignIn | object | required | |||||||||||||||||||||
notifyFirstSignIn | boolean | required | |||||||||||||||||||||
emailAttribute | string | required | |||||||||||||||||||||
nameAttribute | string | required | |||||||||||||||||||||
groupsAttribute | string | required | |||||||||||||||||||||
groupMap | array of GroupMapping | required | |||||||||||||||||||||
groupMapPeople | array of integer | required | How many people each row let in at a sign-in in the last 90 days. | ||||||||||||||||||||
requireSso | boolean | required | |||||||||||||||||||||
breakGlassEmail | string | required | An email address. | ||||||||||||||||||||
breakGlassUserId | string | optional | The id. | ||||||||||||||||||||
included | boolean | required | Whether the license includes SAML. When it does not, settings may be prepared switched off, switching on is refused, and nobody can sign in this way. | ||||||||||||||||||||
lastRefused | LastRefused | optional, left out when empty | The latest sign-in this way that was refused, and why. | ||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||
{
"enabled": true,
"active": true,
"label": "example",
"idpMetadataUrl": "example",
"idpEntityId": "k7Qm2sLp9vX4aB1c",
"idpSsoUrl": "example",
"idpSsoBinding": {
"field": "example",
"bps": 1,
"concurrency": 1,
"label": "example"
},
"idpSloUrl": "example",
"idpCertificates": [
"example"
],
"spEntityId": "k7Qm2sLp9vX4aB1c",
"spMetadataUrl": "example",
"spAcsUrl": "example",
"spLogoutUrl": "example",
"spCertificate": "example",
"wantAssertionsSigned": true,
"allowIdpInitiated": true,
"singleLogout": true,
"createAccounts": true,
"whoCanSignIn": {},
"notifyFirstSignIn": true,
"emailAttribute": "example",
"nameAttribute": "example",
"groupsAttribute": "example",
"groupMap": [
{}
],
"groupMapPeople": [
1
],
"requireSso": true,
"breakGlassEmail": "[email protected]",
"included": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/sso/access-preview
Who would lose access if single sign-on were limited to people in a mapped group.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Send groupMap. loseAccess lists the accounts whose groups at their latest sign-in are in no row; they are disabled when the switch is saved with confirmLoseAccess set to their number. unknown counts accounts with no groups recorded yet, checked at their next sign-in. Accounts with a password of their own and the break-glass administrator are never listed.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
groupMap | array of objects | required | |||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||
{
"groupMap": [
{
"from": "projects/rush",
"to": "projects/rush",
"signInOnly": true,
"note": "The cut is in the folder."
}
]
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/saml/access-preview
Who would lose access if SAML sign-in were limited to people in a mapped group.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. The same as the single sign-on preview, for accounts that sign in through SAML.
Request body. None.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/saml/test
Check the saved settings without changing anything. With a metadata address saved, it is fetched again to find a certificate the provider has rotated.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Always answers 200: ok says whether the settings would work, and detail says why in a sentence.
Request body. None.
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
Directory
GET /api/v1/admin/directory
LDAP and Active Directory sign-in settings.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Switching directory sign-in on needs the sso feature; reading, preparing, testing and switching it off do not. Besides the settings the reply has presets to start from for Active Directory and OpenLDAP, and included, whether this license can switch it on. The service account's password is never returned: bindPasswordSet says whether one is stored. problem says why it cannot sign people in now, or something to know while it works, such as a connection that is not encrypted.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
view | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
presets | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"view": {
"enabled": true,
"active": true,
"label": "example",
"servers": [
{
"address": "example",
"ip": "example"
}
],
"host": "files.example.com",
"port": 443,
"security": {},
"allowPlain": true,
"bindDn": "example",
"bindPasswordSet": true,
"userSearchBase": "example",
"userFilter": "example",
"groupSearchBase": "example",
"groupFilter": "example",
"emailAttribute": "example",
"nameAttribute": "example",
"usernameAttribute": "example",
"memberAttribute": "example",
"nestedGroups": true,
"createAccounts": true,
"whoCanSignIn": {},
"groupMap": [
{}
],
"groupMapPeople": [
1
],
"notifyFirstSignIn": true,
"syncEnabled": true,
"included": true,
"trusted": [
{
"subject": "Files for Monday",
"issuer": "example",
"names": [
"Rush delivery"
],
"notBefore": "example",
"notAfter": "example",
"isCa": true,
"selfSigned": true,
"fingerprintSha256": "example",
"pem": "example"
}
],
"expiryWarnings": [
"example"
]
},
"presets": {
"activeDirectory": {
"port": 443,
"security": {},
"userFilter": "example",
"usernameAttribute": "example",
"emailAttribute": "example",
"nameAttribute": "example",
"memberAttribute": "example",
"groupFilter": "example",
"nestedGroups": true
},
"openLdap": {
"port": 443,
"security": {},
"userFilter": "example",
"usernameAttribute": "example",
"emailAttribute": "example",
"nameAttribute": "example",
"memberAttribute": "example",
"groupFilter": "example",
"nestedGroups": true
}
}
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/admin/directory
Set up directory sign-in, or change it.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when switching it on, when this server's license does not include single sign-on.
Administrators only. Send only what changes; fields that are only read, such as active and included, are ignored, and a missing or empty bindPassword keeps the stored one. When the result is switched on, the server connects, signs in as the service account and runs the user search before anything is saved, so settings that have never been shown to work are not left switched on. Preparing it switched off needs no directory at all. Switching it on needs the sso feature, and a connection with no encryption needs allowPlain. The audit log names the fields that changed, never their values.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
enabled | boolean | optional | |||||||||||||
label | string | optional | |||||||||||||
servers | array of Server | optional | |||||||||||||
Each item is an object:
| |||||||||||||||
host | string | optional | One server, for callers written before the list. Ignored when servers is given. | ||||||||||||
port | integer | optional | |||||||||||||
security | Security | optional | |||||||||||||
allowPlain | boolean | optional | |||||||||||||
bindDn | string | optional | |||||||||||||
bindPassword | string | optional | |||||||||||||
userSearchBase | string | optional | |||||||||||||
userFilter | string | optional | |||||||||||||
groupSearchBase | string | optional | |||||||||||||
groupFilter | string | optional | |||||||||||||
emailAttribute | string | optional | |||||||||||||
nameAttribute | string | optional | |||||||||||||
usernameAttribute | string | optional | |||||||||||||
memberAttribute | string | optional | |||||||||||||
nestedGroups | boolean | optional | |||||||||||||
createAccounts | boolean | optional | |||||||||||||
whoCanSignIn | WhoCanSignIn | optional | |||||||||||||
groupMap | array of Mapping | optional | |||||||||||||
notifyFirstSignIn | boolean | optional | |||||||||||||
syncEnabled | boolean | optional | |||||||||||||
confirmLoseAccess | integer | optional | How many people the administrator was shown would lose access, when switching to "Only people in a mapped group". The switch is refused unless it matches. | ||||||||||||
{
"enabled": true,
"label": "example",
"servers": [
{
"address": "example",
"ip": "example"
}
],
"host": "files.example.com",
"port": 443,
"security": {},
"allowPlain": true,
"bindDn": "example"
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
enabled | boolean | required | What the administrator asked for. | ||||||||||||||||||||||||||||||||||||||||
active | boolean | required | Whether it can sign people in right now. | ||||||||||||||||||||||||||||||||||||||||
problem | string | optional | Why not, or something to be aware of while it works. | ||||||||||||||||||||||||||||||||||||||||
label | string | required | |||||||||||||||||||||||||||||||||||||||||
servers | array of objects | required | The domain controllers, in the order to try. | ||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||
host | string | required | The first domain controller's address. Read-only; kept for callers written before the list. | ||||||||||||||||||||||||||||||||||||||||
port | integer | required | |||||||||||||||||||||||||||||||||||||||||
security | object | required | |||||||||||||||||||||||||||||||||||||||||
allowPlain | boolean | required | |||||||||||||||||||||||||||||||||||||||||
bindDn | string | required | |||||||||||||||||||||||||||||||||||||||||
bindPasswordSet | boolean | required | |||||||||||||||||||||||||||||||||||||||||
userSearchBase | string | required | |||||||||||||||||||||||||||||||||||||||||
userFilter | string | required | |||||||||||||||||||||||||||||||||||||||||
groupSearchBase | string | required | |||||||||||||||||||||||||||||||||||||||||
groupFilter | string | required | |||||||||||||||||||||||||||||||||||||||||
emailAttribute | string | required | |||||||||||||||||||||||||||||||||||||||||
nameAttribute | string | required | |||||||||||||||||||||||||||||||||||||||||
usernameAttribute | string | required | |||||||||||||||||||||||||||||||||||||||||
memberAttribute | string | required | |||||||||||||||||||||||||||||||||||||||||
nestedGroups | boolean | required | |||||||||||||||||||||||||||||||||||||||||
createAccounts | boolean | required | |||||||||||||||||||||||||||||||||||||||||
whoCanSignIn | object | required | |||||||||||||||||||||||||||||||||||||||||
groupMap | array of Mapping | required | |||||||||||||||||||||||||||||||||||||||||
groupMapPeople | array of integer | required | How many people each row of the group map lets in, by the groups recorded at the latest sync or sign-in. In the same order. | ||||||||||||||||||||||||||||||||||||||||
notifyFirstSignIn | boolean | required | |||||||||||||||||||||||||||||||||||||||||
syncEnabled | boolean | required | |||||||||||||||||||||||||||||||||||||||||
lastSyncAt | string | optional | A time, as RFC 3339. | ||||||||||||||||||||||||||||||||||||||||
lastSyncDetail | string | optional | |||||||||||||||||||||||||||||||||||||||||
included | boolean | required | Whether the license includes switching this on. | ||||||||||||||||||||||||||||||||||||||||
trusted | array of objects | required | Certificates trusted for directory connections only. | ||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||
alsoTrusted | string | optional | Where else trust comes from, when the administrator set it for the whole server: "SSL_CERT_FILE (/data/ldap/company-ca.pem)". | ||||||||||||||||||||||||||||||||||||||||
expiryWarnings | array of string | required | Certificates that expire within 30 days, as sentences. | ||||||||||||||||||||||||||||||||||||||||
{
"enabled": true,
"active": true,
"label": "example",
"servers": [
{
"address": "example",
"ip": "example"
}
],
"host": "files.example.com",
"port": 443,
"security": {},
"allowPlain": true,
"bindDn": "example",
"bindPasswordSet": true,
"userSearchBase": "example",
"userFilter": "example",
"groupSearchBase": "example",
"groupFilter": "example",
"emailAttribute": "example",
"nameAttribute": "example",
"usernameAttribute": "example",
"memberAttribute": "example",
"nestedGroups": true,
"createAccounts": true,
"whoCanSignIn": {},
"groupMap": [
{}
],
"groupMapPeople": [
1
],
"notifyFirstSignIn": true,
"syncEnabled": true,
"included": true,
"trusted": [
{
"subject": "Files for Monday",
"issuer": "example",
"names": [
"Rush delivery"
],
"notBefore": "example",
"notAfter": "example",
"isCa": true,
"selfSigned": true,
"fingerprintSha256": "example",
"pem": "example"
}
],
"expiryWarnings": [
"example"
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a value that is out of range or not usable, or the directory could not be used (the message says why); nothing is saved |
| 402 | licence_required | switching it on, when this server's license does not include single sign-on |
| 409 | conflict | the request clashes with what is already there |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "bad_request",
"message": "a value that is out of range or not usable, or the directory could not be used (the message says why); nothing is saved"
}
}
DELETE /api/v1/admin/directory
Remove directory sign-in.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Deletes the settings and the service account's password. The links between directory names and accounts stay, so people who signed in this way keep their accounts if the same directory is added again.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
enabled | boolean | required | What the administrator asked for. | ||||||||||||||||||||||||||||||||||||||||
active | boolean | required | Whether it can sign people in right now. | ||||||||||||||||||||||||||||||||||||||||
problem | string | optional | Why not, or something to be aware of while it works. | ||||||||||||||||||||||||||||||||||||||||
label | string | required | |||||||||||||||||||||||||||||||||||||||||
servers | array of objects | required | The domain controllers, in the order to try. | ||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||
host | string | required | The first domain controller's address. Read-only; kept for callers written before the list. | ||||||||||||||||||||||||||||||||||||||||
port | integer | required | |||||||||||||||||||||||||||||||||||||||||
security | object | required | |||||||||||||||||||||||||||||||||||||||||
allowPlain | boolean | required | |||||||||||||||||||||||||||||||||||||||||
bindDn | string | required | |||||||||||||||||||||||||||||||||||||||||
bindPasswordSet | boolean | required | |||||||||||||||||||||||||||||||||||||||||
userSearchBase | string | required | |||||||||||||||||||||||||||||||||||||||||
userFilter | string | required | |||||||||||||||||||||||||||||||||||||||||
groupSearchBase | string | required | |||||||||||||||||||||||||||||||||||||||||
groupFilter | string | required | |||||||||||||||||||||||||||||||||||||||||
emailAttribute | string | required | |||||||||||||||||||||||||||||||||||||||||
nameAttribute | string | required | |||||||||||||||||||||||||||||||||||||||||
usernameAttribute | string | required | |||||||||||||||||||||||||||||||||||||||||
memberAttribute | string | required | |||||||||||||||||||||||||||||||||||||||||
nestedGroups | boolean | required | |||||||||||||||||||||||||||||||||||||||||
createAccounts | boolean | required | |||||||||||||||||||||||||||||||||||||||||
whoCanSignIn | object | required | |||||||||||||||||||||||||||||||||||||||||
groupMap | array of Mapping | required | |||||||||||||||||||||||||||||||||||||||||
groupMapPeople | array of integer | required | How many people each row of the group map lets in, by the groups recorded at the latest sync or sign-in. In the same order. | ||||||||||||||||||||||||||||||||||||||||
notifyFirstSignIn | boolean | required | |||||||||||||||||||||||||||||||||||||||||
syncEnabled | boolean | required | |||||||||||||||||||||||||||||||||||||||||
lastSyncAt | string | optional | A time, as RFC 3339. | ||||||||||||||||||||||||||||||||||||||||
lastSyncDetail | string | optional | |||||||||||||||||||||||||||||||||||||||||
included | boolean | required | Whether the license includes switching this on. | ||||||||||||||||||||||||||||||||||||||||
trusted | array of objects | required | Certificates trusted for directory connections only. | ||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||
alsoTrusted | string | optional | Where else trust comes from, when the administrator set it for the whole server: "SSL_CERT_FILE (/data/ldap/company-ca.pem)". | ||||||||||||||||||||||||||||||||||||||||
expiryWarnings | array of string | required | Certificates that expire within 30 days, as sentences. | ||||||||||||||||||||||||||||||||||||||||
{
"enabled": true,
"active": true,
"label": "example",
"servers": [
{
"address": "example",
"ip": "example"
}
],
"host": "files.example.com",
"port": 443,
"security": {},
"allowPlain": true,
"bindDn": "example",
"bindPasswordSet": true,
"userSearchBase": "example",
"userFilter": "example",
"groupSearchBase": "example",
"groupFilter": "example",
"emailAttribute": "example",
"nameAttribute": "example",
"usernameAttribute": "example",
"memberAttribute": "example",
"nestedGroups": true,
"createAccounts": true,
"whoCanSignIn": {},
"groupMap": [
{}
],
"groupMapPeople": [
1
],
"notifyFirstSignIn": true,
"syncEnabled": true,
"included": true,
"trusted": [
{
"subject": "Files for Monday",
"issuer": "example",
"names": [
"Rush delivery"
],
"notBefore": "example",
"notAfter": "example",
"isCa": true,
"selfSigned": true,
"fingerprintSha256": "example",
"pem": "example"
}
],
"expiryWarnings": [
"example"
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/directory/test
Try the saved directory settings.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Connects, signs in as the service account, and counts the people and groups the searches find, to 1,000 of each before it says "at least". Works whether directory sign-in is switched on or not. A directory that cannot be reached is 200 with ok: false and the directory's own words, because finding that out is what the call is for.
Request body. None.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ok | boolean | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
detail | string | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
users | integer | optional, left out when empty | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
groups | integer | optional, left out when empty | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
servers | array of objects | required | Each domain controller's steps, in the order tried. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"ok": true,
"detail": "example",
"users": 1,
"groups": 1,
"servers": [
{
"server": "example",
"ok": true,
"steps": [
{
"step": "example",
"ok": true,
"detail": "example",
"advice": "example",
"action": {
"kind": "file",
"chain": [],
"rootSent": true
}
}
]
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/directory/test-login
Try one person's sign-in and show which groups come back.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Signs one person in against the saved settings and reports their email address and name, the groups the directory lists for them, and which Farwing groups those map to. Nothing is created and no session is issued, so it is safe to run for anybody, including someone who has never signed in. The password is used once and appears nowhere, neither in the reply nor in the audit log, which records only the username. A refusal is 200 with ok: false.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
username | string | required | |
password | string | required |
{
"username": "example",
"password": "a-secret-shown-once"
}
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
ok | boolean | required | |
detail | string | required | |
email | string | optional, left out when empty | An email address. |
name | string | optional, left out when empty | The name. |
groups | array of string | optional, left out when empty | |
mapped | array of string | optional, left out when empty | |
verdict | string | optional, left out when empty | "Would be allowed" or "Would be refused: not in a mapped group", under the saved choice of who can sign in. |
allowed | boolean | optional, left out when empty |
{
"ok": true,
"detail": "example",
"email": "[email protected]",
"name": "Rush delivery",
"groups": [
"example"
],
"mapped": [
"example"
],
"verdict": "example",
"allowed": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/admin/directory/groups
Find directory groups by name, for the group mapping.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Searches the group search base with the service account for groups whose name contains q, and returns at most 20, each with its distinguished name and friendly name. A directory that cannot be reached is an error with the directory's own words.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
q | query | string | optional | Part of a group's name. An empty one finds nothing. |
Success. 200.
The body is an array.
| Field | Type | Meaning | |
|---|---|---|---|
dn | string | required | |
name | string | required | The name. |
[
{
"dn": "example",
"name": "Rush delivery"
}
]
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | directory sign-in has no usable settings, or the directory could not be searched |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "directory sign-in has no usable settings, or the directory could not be searched"
}
}
POST /api/v1/admin/directory/groups/check
Say which plain group names more than one directory group has.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Send names, the plain names in the group mapping. duplicates lists those that match more than one group, so the row can warn that a distinguished name is needed.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
names | array of string | required |
{
"names": [
"Rush delivery"
]
}
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
duplicates | array of string | required | The plain names that more than one group in the directory has. |
{
"duplicates": [
"example"
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the request is not valid |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the request is not valid"
}
}
POST /api/v1/admin/directory/access-preview
Who would lose access if directory sign-in were limited to people in a mapped group.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Send groupMap. loseAccess lists the accounts whose groups at the latest sync or sign-in are in no row; they are disabled when the switch is saved with confirmLoseAccess set to their number. unknown counts accounts with no groups recorded yet. Accounts with a password of their own and the break-glass administrator are never listed.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
groupMap | array of Mapping | required |
{
"groupMap": [
{}
]
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
POST /api/v1/admin/directory/sync
Check now which people the directory no longer has.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. The hourly check, run on demand. It disables the Farwing accounts of people the directory no longer has, and never deletes anyone.
Request body. None.
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
checked | integer | required | |
disabled | integer | required | |
detail | string | required |
{
"checked": 1,
"disabled": 1,
"detail": "example"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | directory sign-in is switched off, its settings have a problem, or the directory could not be read |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "directory sign-in is switched off, its settings have a problem, or the directory could not be read"
}
}
POST /api/v1/admin/directory/trust
Trust a certificate for directory connections.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when this server's license does not include single sign-on.
Administrators only. Needs the sso feature. Takes a CA certificate, or a domain controller's own self-signed certificate, as PEM text or as a DER or PEM file. One file may hold several certificates. A private key, an expired certificate or a file that is not a certificate is refused. Trust applies to directory connections only, at once, with no restart: the next test, sign-in and sync use it. The audit log records the subject and SHA-256 fingerprint.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
text | string | optional | PEM text, pasted or read from a text file. |
base64 | string | optional | A file's bytes in base64, for a DER (binary) certificate. |
{
"text": "example",
"base64": "example"
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
trusted | array of objects | required | |||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||
added | array of objects | required | |||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||
{
"trusted": [
{
"subject": "Files for Monday",
"issuer": "example",
"names": [
"Rush delivery"
],
"notBefore": "example",
"notAfter": "example",
"isCa": true,
"selfSigned": true,
"fingerprintSha256": "example",
"pem": "example"
}
],
"added": [
{
"subject": "Files for Monday",
"issuer": "example",
"names": [
"Rush delivery"
],
"notBefore": "example",
"notAfter": "example",
"isCa": true,
"selfSigned": true,
"fingerprintSha256": "example",
"pem": "example"
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the file is not a usable certificate (the message says why) |
| 402 | licence_required | this server's license does not include single sign-on |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "bad_request",
"message": "the file is not a usable certificate (the message says why)"
}
}
DELETE /api/v1/admin/directory/trust/{fingerprint}
Stop trusting a certificate for directory connections.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API. This call can also answer 402 when this server's license does not include single sign-on.
Administrators only. Needs the sso feature. fingerprint is the certificate's SHA-256 fingerprint as shown in trusted. The audit log records the subject and fingerprint.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
fingerprint | path | string | required | The fingerprint. |
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
trusted | array of objects | required | |||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||
added | array of objects | required | |||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||
{
"trusted": [
{
"subject": "Files for Monday",
"issuer": "example",
"names": [
"Rush delivery"
],
"notBefore": "example",
"notAfter": "example",
"isCa": true,
"selfSigned": true,
"fingerprintSha256": "example",
"pem": "example"
}
],
"added": [
{
"subject": "Files for Monday",
"issuer": "example",
"names": [
"Rush delivery"
],
"notBefore": "example",
"notAfter": "example",
"isCa": true,
"selfSigned": true,
"fingerprintSha256": "example",
"pem": "example"
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | not_found | no trusted certificate has that fingerprint |
| 402 | licence_required | this server's license does not include single sign-on |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
{
"error": {
"code": "not_found",
"message": "not found"
}
}
POST /api/v1/admin/directory/chain
Read the certificates a domain controller sends.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Connects to one saved server over its saved security and reads its certificate chain, without trusting it, signing in, or sending a password. suggested is the certificate to trust. A server that cannot be reached is 200 with ok: false.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
server | integer | optional | Which saved domain controller, counting from 0. |
{
"server": 1
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ok | boolean | required | |||||||||||||||||||||||||||||||||||||||||
detail | string | required | |||||||||||||||||||||||||||||||||||||||||
server | string | required | |||||||||||||||||||||||||||||||||||||||||
chain | array of objects | required | From the server's own certificate up to the last one it sent. | ||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||
rootSent | boolean | required | Whether the last certificate sent is a self-signed root. | ||||||||||||||||||||||||||||||||||||||||
suggested | integer | optional | The one to pre-select: the top-most CA in the chain. | ||||||||||||||||||||||||||||||||||||||||
{
"ok": true,
"detail": "example",
"server": "example",
"chain": [
{
"subject": "Files for Monday",
"issuer": "example",
"names": [
"Rush delivery"
],
"notBefore": "example",
"notAfter": "example",
"isCa": true,
"selfSigned": true,
"fingerprintSha256": "example",
"pem": "example"
}
],
"rootSent": true,
"suggested": 1
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the settings have no server with that number |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the settings have no server with that number"
}
}
Virus scanning
GET /api/v1/admin/scanning
The virus scanner's settings.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Virus scanning works on every plan, Free included. scanner is off, clamav, icap or command, and only the chosen scanner's fields are checked. The command comes back in plain text, since an administrator who cannot read what they typed cannot fix it. If the stored settings cannot be read, the defaults are shown and files are held rather than released, so a damaged setting never switches scanning off.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
settings | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
discovery | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"settings": {
"scanner": {},
"clamavAddress": "example",
"icapUrl": "example",
"icapMode": {},
"command": "example",
"maxFileMb": 1,
"timeoutSecs": 1,
"scanReceiveLinks": true,
"scanOutsidePackages": true,
"scanUserUploads": true,
"scanServerToServer": true,
"onError": {}
},
"discovery": {
"state": "active",
"version": "example",
"definitionsDate": "example",
"definitionsAgeDays": 1,
"memoryGb": 1,
"memoryLow": true,
"policy": "example",
"policyText": "example"
}
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
PUT /api/v1/admin/scanning
Change the virus scanner's settings.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Send only the fields that change. Saving does not contact the scanner, so one that is down for an hour does not stop the right address being recorded; use the test call for that. A change to how the scanner is reached clears the result of the last test. The audit log records which scanner and which switches, never the command line, which can hold a token.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
scanner | ScannerKind | optional | |
clamavAddress | string | optional | |
icapUrl | string | optional | |
icapMode | IcapMode | optional | |
command | string | optional | |
maxFileMb | integer | optional | |
timeoutSecs | integer | optional | |
scanReceiveLinks | boolean | optional | |
scanOutsidePackages | boolean | optional | |
scanUserUploads | boolean | optional | |
scanServerToServer | boolean | optional | |
onError | Policy | optional | |
lastTestAt | value | optional | |
lastTestDetail | value | optional |
{
"scanner": {},
"clamavAddress": "example",
"icapUrl": "example",
"icapMode": {},
"command": "example",
"maxFileMb": 1,
"timeoutSecs": 1,
"scanReceiveLinks": true
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
settings | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
discovery | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"settings": {
"scanner": {},
"clamavAddress": "example",
"icapUrl": "example",
"icapMode": {},
"command": "example",
"maxFileMb": 1,
"timeoutSecs": 1,
"scanReceiveLinks": true,
"scanOutsidePackages": true,
"scanUserUploads": true,
"scanServerToServer": true,
"onError": {}
},
"discovery": {
"state": "active",
"version": "example",
"definitionsDate": "example",
"definitionsAgeDays": 1,
"memoryGb": 1,
"memoryLow": true,
"policy": "example",
"policyText": "example"
}
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a file size outside 1 to 10,485,760 MB, a timeout outside 1 to 3,600 seconds, or an address, URL or command the chosen scanner cannot use |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "a file size outside 1 to 10,485,760 MB, a timeout outside 1 to 3,600 seconds, or an address, URL or command the chosen scanner cannot use"
}
}
POST /api/v1/admin/scanning/test
Check that the saved scanner can be reached.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only. Reports the scanner's own words rather than a summary of them, because "Access denied" from ClamAV and "Method not allowed" from an ICAP server point at different fixes. A scanner that fails is still 200 with ok: false: the request worked, the scanner did not. The result is kept in the settings as lastTestAt and lastTestDetail. It tests what is saved, not what is typed.
Request body. None.
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
ok | boolean | required | |
detail | string | required | |
version | string | optional, left out when empty |
{
"ok": true,
"detail": "example",
"version": "example"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 403 | forbidden | the key is valid but does not have the scope, or an administrator route was called by someone who is not an administrator |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "unauthenticated",
"message": "sign in to continue"
}
}
GET /api/v1/admin/quarantine
Files the scanner held or blocked.
Someone who may not call this is answered 404, the same as a missing record, so the refusal does not confirm the route exists.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only, and answered 404 to anyone else, as for a route that does not exist: a 403 would tell an account that this server has a quarantine, and so a virus scanner. Newest first (released and deleted files by when they were decided), 500 to a page; more says whether another page follows.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
state | query | string | optional | held (the default), released, deleted or all. |
offset | query | string | optional | How many files to skip, for the next page. 0 by default. |
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
items | array of objects | required | The quarantined files, newest first, up to 500. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"items": [
{
"id": "k7Qm2sLp9vX4aB1c",
"fileName": "example",
"intendedPath": "projects/rush",
"bytes": 1048576,
"threat": "2026-10-05T18:00:00Z",
"reason": "The scanner was wrong about this file.",
"origin": "example",
"state": "active",
"createdAt": "2026-10-05T18:00:00Z"
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | `state` is not held, released, deleted or all, or `offset` is not a whole number |
| 404 | not_found | the caller is not an administrator |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "`state` is not held, released, deleted or all, or `offset` is not a whole number"
}
}
POST /api/v1/admin/quarantine/{id}
Release or delete a held file.
Someone who may not call this is answered 404, the same as a missing record, so the refusal does not confirm the route exists.
Who. An administrator, with a key that has the admin scope. An administrator's key that does not have that scope is refused. The key needs a license that includes the REST API.
Administrators only, and answered 404 to anyone else. release puts the file where it was meant to go and announces it to event rules as arrived, marked as an administrator's override; delete removes it for good. A reason is required, and goes into the audit log with the file's name.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The quarantined file. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
action | string | required | release puts the file back where it was meant to go. delete removes it. |
reason | string | required | Why this decision was made. Required, and written to the audit log. |
{
"action": "release",
"reason": "The scanner was wrong about this file."
}
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
id | string | required | The id. |
fileName | string | required | The file's name. |
intendedPath | string | required | Where the file was meant to be stored. |
rootName | string | optional | The storage location's name. |
bytes | integer | required | Size in bytes. |
threat | string | required | The threat's name for an infected file; for a held one, what the scanner said, which is the administrator's to read. |
reason | string | required | infected, too_large or error. |
origin | string | required | How the file arrived: browser, receive_link, package, server, or desktop. |
actorEmail | string | optional | An email address. |
state | string | required | held, released or deleted. |
decidedBy | string | optional | The administrator who decided, when someone has. |
decidedAt | string | optional | A time, as RFC 3339. |
decisionReason | string | optional | The reason recorded with that decision. |
createdAt | string | required | A time, as RFC 3339. |
{
"id": "k7Qm2sLp9vX4aB1c",
"fileName": "example",
"intendedPath": "projects/rush",
"bytes": 1048576,
"threat": "2026-10-05T18:00:00Z",
"reason": "The scanner was wrong about this file.",
"origin": "example",
"state": "active",
"createdAt": "2026-10-05T18:00:00Z"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the body is not an action and a reason, the action is not `release` or `delete`, or there is no reason |
| 404 | not_found | no such file, or the caller is not an administrator |
| 409 | conflict | the file has already been released or deleted |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
| 402 | licence_required | the license does not include the REST API |
{
"error": {
"code": "bad_request",
"message": "the body is not an action and a reason, the action is not `release` or `delete`, or there is no reason"
}
}