Automation.
Hot folders and sync jobs are administrator calls and need the automation feature once you pass the free allowance. Event rules are for the rule's owner, and an administrator sees every rule. In Free mode one automation job runs.
See the API reference for the key and for errors. The guide to what a rule can do is Event rules.
Hot folders
GET /api/v1/hot-folders
Watched folders.
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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
live | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
items | array of objects | required | The records in this reply. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"live": {
"sending": 1,
"queued": 1,
"problems": 1,
"bps": 1
},
"items": [
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"rootId": "k7Qm2sLp9vX4aB1c",
"rootName": "example",
"path": "projects/rush",
"settleSecs": 1,
"destination": "example",
"destKind": "example",
"afterSend": "example",
"enabled": true,
"createdAt": "2026-10-05T18:00:00Z",
"sendOrder": "fastest",
"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"
}
}
POST /api/v1/hot-folders
Watch 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.
existingFiles says what happens to the files already in the folder: skip (the default) sends only files that arrive or change from now on; send sends them too. The answer is kept on the hot folder as existingFiles, existingCount and existingBytes; it is absent when the folder was empty.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
name | string | required | The name. |
rootId | string | optional | The location, for a caller that still names storage directly. |
spaceId | string | optional | The space, when the folder was chosen from Home. |
path | string | optional | A path relative to the space or the storage location, with / between folders and no leading slash. |
settleSecs | integer | optional | |
destination | string | optional | A path on this server. Omit this when destinationId is set. |
destKind | string | optional | What the destination means. Omit this when destinationId is set. |
destinationId | string | optional | A saved destination. Not sent together with destination. |
destFolder | string | optional | |
sameName | string | optional | |
subfolders | boolean | optional | |
acknowledgeDelete | boolean | optional | |
startNow | boolean | optional | |
afterSend | string | optional | |
existingFiles | string | optional | The files already in the folder: skip (the default) sends only files that arrive from now on; send sends them too. |
{
"name": "Rush delivery"
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | required | The id. | ||||||||||||||||||||||||
name | string | required | The name. | ||||||||||||||||||||||||
rootId | string | required | The id. | ||||||||||||||||||||||||
rootName | string | required | The storage location's name. | ||||||||||||||||||||||||
path | string | required | A path relative to the space or the storage location, with / between folders and no leading slash. | ||||||||||||||||||||||||
settleSecs | integer | required | |||||||||||||||||||||||||
destination | string | required | |||||||||||||||||||||||||
destKind | string | required | What the destination means. unset is a row from before kinds existed; the runner refuses those rather than guessing. | ||||||||||||||||||||||||
afterSend | string | required | What happens to the original once it has gone: leave, move or delete. | ||||||||||||||||||||||||
enabled | boolean | required | |||||||||||||||||||||||||
pausedReason | string | optional, left out when empty | |||||||||||||||||||||||||
lastRunAt | string | optional, left out when empty | When the runner last looked at this folder. Absent until it has. | ||||||||||||||||||||||||
lastError | string | optional, left out when empty | Why it is not working, in the runner's words. This is what turns "nothing is happening" into something an administrator can fix. | ||||||||||||||||||||||||
createdAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||||||
destinationRef | DestinationRef | optional, left out when empty | A saved destination, when this folder uses one. Absent for a folder that still names a path on this server. | ||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||
destRootName | string | optional, left out when empty | For a folder on this server: the storage location's name, and the path within it, which destination holds as <root id>:<path>. | ||||||||||||||||||||||||
destPath | string | optional, left out when empty | |||||||||||||||||||||||||
destFolder | string | optional, left out when empty | |||||||||||||||||||||||||
sameName | string | optional, left out when empty | |||||||||||||||||||||||||
subfolders | boolean | optional | |||||||||||||||||||||||||
status | string | optional, left out when empty | |||||||||||||||||||||||||
problem | string | optional, left out when empty | |||||||||||||||||||||||||
problemCode | string | optional, left out when empty | |||||||||||||||||||||||||
counts | FileCounts | optional, left out when empty | |||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||
speedLimitBps | integer | optional, left out when empty | Bits per second. Absent for no limit of its own. | ||||||||||||||||||||||||
sendOrder | string | required | fastest or in_order. | ||||||||||||||||||||||||
limitedBy | array of string | required | What slows this folder now, in words. | ||||||||||||||||||||||||
existingFiles | string | optional, left out when empty | What was done with the files already in the folder when it was made: skip or send. Absent when the folder was empty. | ||||||||||||||||||||||||
existingCount | integer | optional, left out when empty | |||||||||||||||||||||||||
existingBytes | integer | optional, left out when empty | |||||||||||||||||||||||||
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"rootId": "k7Qm2sLp9vX4aB1c",
"rootName": "example",
"path": "projects/rush",
"settleSecs": 1,
"destination": "example",
"destKind": "example",
"afterSend": "example",
"enabled": true,
"createdAt": "2026-10-05T18:00:00Z",
"sendOrder": "fastest",
"limitedBy": [
"example"
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a field is not valid, or existingFiles is not skip or send |
| 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 field is not valid, or existingFiles is not skip or send"
}
}
POST /api/v1/hot-folders/bulk
Pause, resume, or test several watched folders 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.
The body names the folders and one action: pause, resume, or test. Test checks that each watched folder can be read and its destination written to, without sending anything, and answers results: one {id, name, ok, problem} per folder.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
ids | array of string | required | |
action | string | required |
{
"ids": [
"k7Qm2sLp9vX4aB1c"
],
"action": "release"
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the action was not pause, resume, or test |
| 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 action was not pause, resume, or test"
}
}
POST /api/v1/hot-folders/existing
How many files are already in a folder, and their total size, so the person making a hot folder can choose what happens 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.
Send rootId or spaceId, and path. atLeast is true when the folder holds 100,000 files or more.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
rootId | string | optional | The id. |
spaceId | string | optional | The id. |
path | string | optional | A path relative to the space or the storage location, with / between folders and no leading slash. |
{
"rootId": "k7Qm2sLp9vX4aB1c",
"spaceId": "k7Qm2sLp9vX4aB1c",
"path": "projects/rush"
}
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
files | integer | required | |
bytes | integer | required | Size in bytes. |
atLeast | boolean | required | True when the folder holds at least this many files. |
{
"files": 1,
"bytes": 1048576,
"atLeast": true
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | {e:#} |
| 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": "{e:#}"
}
}
GET /api/v1/hot-folders/{id}
One watched 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.
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. | ||||||||||||||||||||||||
rootId | string | required | The id. | ||||||||||||||||||||||||
rootName | string | required | The storage location's name. | ||||||||||||||||||||||||
path | string | required | A path relative to the space or the storage location, with / between folders and no leading slash. | ||||||||||||||||||||||||
settleSecs | integer | required | |||||||||||||||||||||||||
destination | string | required | |||||||||||||||||||||||||
destKind | string | required | What the destination means. unset is a row from before kinds existed; the runner refuses those rather than guessing. | ||||||||||||||||||||||||
afterSend | string | required | What happens to the original once it has gone: leave, move or delete. | ||||||||||||||||||||||||
enabled | boolean | required | |||||||||||||||||||||||||
pausedReason | string | optional, left out when empty | |||||||||||||||||||||||||
lastRunAt | string | optional, left out when empty | When the runner last looked at this folder. Absent until it has. | ||||||||||||||||||||||||
lastError | string | optional, left out when empty | Why it is not working, in the runner's words. This is what turns "nothing is happening" into something an administrator can fix. | ||||||||||||||||||||||||
createdAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||||||
destinationRef | DestinationRef | optional, left out when empty | A saved destination, when this folder uses one. Absent for a folder that still names a path on this server. | ||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||
destRootName | string | optional, left out when empty | For a folder on this server: the storage location's name, and the path within it, which destination holds as <root id>:<path>. | ||||||||||||||||||||||||
destPath | string | optional, left out when empty | |||||||||||||||||||||||||
destFolder | string | optional, left out when empty | |||||||||||||||||||||||||
sameName | string | optional, left out when empty | |||||||||||||||||||||||||
subfolders | boolean | optional | |||||||||||||||||||||||||
status | string | optional, left out when empty | |||||||||||||||||||||||||
problem | string | optional, left out when empty | |||||||||||||||||||||||||
problemCode | string | optional, left out when empty | |||||||||||||||||||||||||
counts | FileCounts | optional, left out when empty | |||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||
speedLimitBps | integer | optional, left out when empty | Bits per second. Absent for no limit of its own. | ||||||||||||||||||||||||
sendOrder | string | required | fastest or in_order. | ||||||||||||||||||||||||
limitedBy | array of string | required | What slows this folder now, in words. | ||||||||||||||||||||||||
existingFiles | string | optional, left out when empty | What was done with the files already in the folder when it was made: skip or send. Absent when the folder was empty. | ||||||||||||||||||||||||
existingCount | integer | optional, left out when empty | |||||||||||||||||||||||||
existingBytes | integer | optional, left out when empty | |||||||||||||||||||||||||
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"rootId": "k7Qm2sLp9vX4aB1c",
"rootName": "example",
"path": "projects/rush",
"settleSecs": 1,
"destination": "example",
"destKind": "example",
"afterSend": "example",
"enabled": true,
"createdAt": "2026-10-05T18:00:00Z",
"sendOrder": "fastest",
"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"
}
}
PATCH /api/v1/hot-folders/{id}
Change one. destinationId chooses another place, which clears a problem left by the old place being deleted.
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.
speedLimitBps is this folder's own limit in bits per second; 0 removes it. sendOrder is fastest (what is ready, several at once) or in_order (one at a time, oldest first; a file that fails holds back the ones after it). A hot folder returns limitedBy, what is slowing it now, in words.
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 | optional | The name. |
path | string | optional | A path relative to the space or the storage location, with / between folders and no leading slash. |
settleSecs | integer | optional | |
destination | string | optional | |
destKind | string | optional | |
afterSend | string | optional | |
enabled | boolean | optional | |
destinationId | string | optional | A place, chosen again after the old one went away. |
destFolder | string | optional | |
speedLimitBps | integer | optional | Bits per second; 0 removes the limit. |
sendOrder | string | optional | fastest or in_order. |
{
"name": "Rush delivery",
"path": "projects/rush",
"settleSecs": 1,
"destination": "example",
"destKind": "example",
"afterSend": "example",
"enabled": true,
"destinationId": "k7Qm2sLp9vX4aB1c"
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | required | The id. | ||||||||||||||||||||||||
name | string | required | The name. | ||||||||||||||||||||||||
rootId | string | required | The id. | ||||||||||||||||||||||||
rootName | string | required | The storage location's name. | ||||||||||||||||||||||||
path | string | required | A path relative to the space or the storage location, with / between folders and no leading slash. | ||||||||||||||||||||||||
settleSecs | integer | required | |||||||||||||||||||||||||
destination | string | required | |||||||||||||||||||||||||
destKind | string | required | What the destination means. unset is a row from before kinds existed; the runner refuses those rather than guessing. | ||||||||||||||||||||||||
afterSend | string | required | What happens to the original once it has gone: leave, move or delete. | ||||||||||||||||||||||||
enabled | boolean | required | |||||||||||||||||||||||||
pausedReason | string | optional, left out when empty | |||||||||||||||||||||||||
lastRunAt | string | optional, left out when empty | When the runner last looked at this folder. Absent until it has. | ||||||||||||||||||||||||
lastError | string | optional, left out when empty | Why it is not working, in the runner's words. This is what turns "nothing is happening" into something an administrator can fix. | ||||||||||||||||||||||||
createdAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||||||
destinationRef | DestinationRef | optional, left out when empty | A saved destination, when this folder uses one. Absent for a folder that still names a path on this server. | ||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||
destRootName | string | optional, left out when empty | For a folder on this server: the storage location's name, and the path within it, which destination holds as <root id>:<path>. | ||||||||||||||||||||||||
destPath | string | optional, left out when empty | |||||||||||||||||||||||||
destFolder | string | optional, left out when empty | |||||||||||||||||||||||||
sameName | string | optional, left out when empty | |||||||||||||||||||||||||
subfolders | boolean | optional | |||||||||||||||||||||||||
status | string | optional, left out when empty | |||||||||||||||||||||||||
problem | string | optional, left out when empty | |||||||||||||||||||||||||
problemCode | string | optional, left out when empty | |||||||||||||||||||||||||
counts | FileCounts | optional, left out when empty | |||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||
speedLimitBps | integer | optional, left out when empty | Bits per second. Absent for no limit of its own. | ||||||||||||||||||||||||
sendOrder | string | required | fastest or in_order. | ||||||||||||||||||||||||
limitedBy | array of string | required | What slows this folder now, in words. | ||||||||||||||||||||||||
existingFiles | string | optional, left out when empty | What was done with the files already in the folder when it was made: skip or send. Absent when the folder was empty. | ||||||||||||||||||||||||
existingCount | integer | optional, left out when empty | |||||||||||||||||||||||||
existingBytes | integer | optional, left out when empty | |||||||||||||||||||||||||
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"rootId": "k7Qm2sLp9vX4aB1c",
"rootName": "example",
"path": "projects/rush",
"settleSecs": 1,
"destination": "example",
"destKind": "example",
"afterSend": "example",
"enabled": true,
"createdAt": "2026-10-05T18:00:00Z",
"sendOrder": "fastest",
"limitedBy": [
"example"
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a speed limit cannot be below nothing |
| 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 speed limit cannot be below nothing"
}
}
DELETE /api/v1/hot-folders/{id}
Stop watching and delete the hot folder. token is the one from its delete plan; without it, or with a stale one, the answer is 409 plan_changed with the current plan.
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.
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/hot-folders/{id}/delete-plan
What deleting this hot folder affects: the rules that name it. The plan carries the token the delete needs.
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 | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
|---|---|---|
| 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/hot-folders/{id}/duplicate
Copy a watched folder. The copy starts switched 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.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Request body. None.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | required | The id. | ||||||||||||||||||||||||
name | string | required | The name. | ||||||||||||||||||||||||
rootId | string | required | The id. | ||||||||||||||||||||||||
rootName | string | required | The storage location's name. | ||||||||||||||||||||||||
path | string | required | A path relative to the space or the storage location, with / between folders and no leading slash. | ||||||||||||||||||||||||
settleSecs | integer | required | |||||||||||||||||||||||||
destination | string | required | |||||||||||||||||||||||||
destKind | string | required | What the destination means. unset is a row from before kinds existed; the runner refuses those rather than guessing. | ||||||||||||||||||||||||
afterSend | string | required | What happens to the original once it has gone: leave, move or delete. | ||||||||||||||||||||||||
enabled | boolean | required | |||||||||||||||||||||||||
pausedReason | string | optional, left out when empty | |||||||||||||||||||||||||
lastRunAt | string | optional, left out when empty | When the runner last looked at this folder. Absent until it has. | ||||||||||||||||||||||||
lastError | string | optional, left out when empty | Why it is not working, in the runner's words. This is what turns "nothing is happening" into something an administrator can fix. | ||||||||||||||||||||||||
createdAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||||||
destinationRef | DestinationRef | optional, left out when empty | A saved destination, when this folder uses one. Absent for a folder that still names a path on this server. | ||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||
destRootName | string | optional, left out when empty | For a folder on this server: the storage location's name, and the path within it, which destination holds as <root id>:<path>. | ||||||||||||||||||||||||
destPath | string | optional, left out when empty | |||||||||||||||||||||||||
destFolder | string | optional, left out when empty | |||||||||||||||||||||||||
sameName | string | optional, left out when empty | |||||||||||||||||||||||||
subfolders | boolean | optional | |||||||||||||||||||||||||
status | string | optional, left out when empty | |||||||||||||||||||||||||
problem | string | optional, left out when empty | |||||||||||||||||||||||||
problemCode | string | optional, left out when empty | |||||||||||||||||||||||||
counts | FileCounts | optional, left out when empty | |||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||
speedLimitBps | integer | optional, left out when empty | Bits per second. Absent for no limit of its own. | ||||||||||||||||||||||||
sendOrder | string | required | fastest or in_order. | ||||||||||||||||||||||||
limitedBy | array of string | required | What slows this folder now, in words. | ||||||||||||||||||||||||
existingFiles | string | optional, left out when empty | What was done with the files already in the folder when it was made: skip or send. Absent when the folder was empty. | ||||||||||||||||||||||||
existingCount | integer | optional, left out when empty | |||||||||||||||||||||||||
existingBytes | integer | optional, left out when empty | |||||||||||||||||||||||||
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"rootId": "k7Qm2sLp9vX4aB1c",
"rootName": "example",
"path": "projects/rush",
"settleSecs": 1,
"destination": "example",
"destKind": "example",
"afterSend": "example",
"enabled": true,
"createdAt": "2026-10-05T18:00:00Z",
"sendOrder": "fastest",
"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/hot-folders/{id}/files
Files this watched folder has sent or is sending, 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.
state is sending, stored, skipped, settling (it changed and is sent again once it stops changing), retrying (nextTryAt says when, attempt how many tries so far) or failed (it kept failing for the folder's retry hours; reason says why). afterResult says whether the original was moved or deleted; it is empty while the tidy-up waits for another hot folder watching the same file.
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"
}
}
POST /api/v1/hot-folders/{id}/files/{file_id}/retry
Try a file that is retrying or failed again on the next pass, with a fresh set of retries. 404 when the file is not 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 | |
|---|---|---|---|---|
id | path | string | required | The hot folder. |
file_id | path | string | required | The file, from the files list. |
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 | 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/hot-folders/{id}/days
How many files this watched folder sent on each of 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 | |
|---|---|---|---|---|
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"
}
}
Folder sync
GET /api/v1/sync-jobs
Folder syncs.
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 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
live | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
items | array of objects | required | The records in this reply. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"live": {
"running": 1,
"inSync": 1,
"attention": 1
},
"items": [
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"sourceRoot": "example",
"sourceRootName": "example",
"sourcePath": "projects/rush",
"destination": "example",
"schedule": "example",
"enabled": true,
"destKind": "example",
"createdAt": "2026-10-05T18:00:00Z",
"status": "example",
"removals": true,
"preset": "example",
"compare": "example",
"destFolder": "example",
"pillText": "example",
"parallel": 1,
"notifyFailure": true,
"notifyRun": true,
"notifyRunChangedOnly": true,
"changedThere": "example",
"sendOrder": "fastest",
"limitedBy": [
"example"
],
"direction": "push",
"conflict": "keep_both"
}
]
}
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/sync-jobs
Add 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.
direction is push (here to there, the default), pull (there to here) or both. All three work with a folder on this server and with SSH, SFTP, FTP, FTPS and bucket places. For a connected server's folder, pull needs View or higher and both needs Full. conflict decides a file both sides changed in a sync both ways: keep_both (the default; the other side's copy is kept as name (conflict, <server>, <date>).ext), here, there or newest. A sync both ways moves a removed file into .farwing-removed/<date>/ on the other side and keeps it for 30 days.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
name | string | required | The name. |
sourceRoot | string | optional | The location, for a caller that still names storage directly. |
spaceId | string | optional | The space, when the folder was chosen from Home. |
sourcePath | string | optional | |
destination | string | optional | A folder on this server, root:path. Omit this when destinationId is set. |
schedule | string | optional | |
destKind | string | optional | folder or server. Omit this when destinationId is set. |
destinationId | string | optional | A saved destination (FTP, SFTP, SSH, a bucket, or a server link). Not sent together with destination. |
destFolder | string | optional | |
compare | string | optional | |
changedThere | string | optional | |
safetyPercent | integer | optional | |
safetyFiles | integer | optional | |
windowFrom | string | optional | |
windowTo | string | optional | |
parallel | integer | optional | |
notifyFailure | boolean | optional | |
notifyRun | boolean | optional | |
notifyRunChangedOnly | boolean | optional | |
speedLimitBps | integer | optional | |
sendOrder | string | optional | fastest or in_order. |
enabled | boolean | optional | A copy of an existing job is saved switched off. |
direction | string | optional | push (the default), pull or both. |
conflict | string | optional | keep_both (the default), here, there or newest. |
{
"name": "Rush delivery"
}
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
id | string | required | The id. |
name | string | required | The name. |
sourceRoot | string | required | |
sourceRootName | string | required | |
sourcePath | string | required | |
destination | string | required | |
schedule | string | required | |
enabled | boolean | required | |
pausedReason | string | optional, left out when empty | |
lastRunAt | string | optional, left out when empty | A time, as RFC 3339. |
destKind | string | required | What the destination means. unset is a row from before kinds existed; the runner refuses those rather than guessing. |
nextRunAt | string | optional, left out when empty | When the schedule says it should next go. Absent for a job that is not on a timer. |
lastError | string | optional, left out when empty | Why it is not working, in the runner's words. |
createdAt | string | required | A time, as RFC 3339. |
status | string | required | |
problem | string | optional, left out when empty | |
problemCode | string | optional, left out when empty | |
removals | boolean | required | |
preset | string | required | |
compare | string | required | |
destFolder | string | required | |
pillText | string | required | |
windowFrom | string | optional, left out when empty | |
windowTo | string | optional, left out when empty | |
parallel | integer | required | |
notifyFailure | boolean | required | |
notifyRun | boolean | required | |
notifyRunChangedOnly | boolean | required | |
speedLimitBps | integer | optional, left out when empty | |
copyDone | integer | optional, left out when empty | Files copied so far in the run that is in progress. |
copyTotal | integer | optional, left out when empty | Files this run expects to look at. |
changedThere | string | required | |
destinationId | string | optional, left out when empty | A saved destination. Absent when the job copies to a folder here. |
destinationSpeed | string | optional, left out when empty | fast or standard, from that destination's last Test. |
sendOrder | string | required | fastest or in_order. |
limitedBy | array of string | required | What slows this job now, in words: the server's automation limit, its place's connections at once, its own speed limit. |
direction | string | required | push (here to there), pull (there to here) or both. |
conflict | string | required | When both sides changed a file in a sync both ways: keep_both, here, there or newest. |
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"sourceRoot": "example",
"sourceRootName": "example",
"sourcePath": "projects/rush",
"destination": "example",
"schedule": "example",
"enabled": true,
"destKind": "example",
"createdAt": "2026-10-05T18:00:00Z",
"status": "example",
"removals": true,
"preset": "example",
"compare": "example",
"destFolder": "example",
"pillText": "example",
"parallel": 1,
"notifyFailure": true,
"notifyRun": true,
"notifyRunChangedOnly": true,
"changedThere": "example",
"sendOrder": "fastest",
"limitedBy": [
"example"
],
"direction": "push",
"conflict": "keep_both"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a field is not valid |
| 400 | direction_not_allowed | this place cannot be synced in that direction |
| 409 | sync_pair_owned | another sync both ways already owns this pair of folders; the message names 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": "bad_request",
"message": "a field is not valid"
}
}
PATCH /api/v1/sync-jobs/{id}
Change 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.
speedLimitBps is this sync's own limit in bits per second; 0 removes it. sendOrder is fastest or in_order, as for a hot folder. direction and conflict are as when adding one; a change of direction needs a new preview before removals. A sync returns limitedBy, what is slowing it now, in words.
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 | optional | The name. |
sourcePath | string | optional | |
destination | string | optional | |
schedule | string | optional | |
destKind | string | optional | |
enabled | boolean | optional | |
removals | boolean | optional | |
removalsAck | boolean | optional | Required together with removals: true. Absent leaves removals alone. |
compare | string | optional | |
changedThere | string | optional | |
safetyPercent | integer | optional | |
safetyFiles | integer | optional | |
preset | string | optional | |
atTime | string | optional | |
destFolder | string | optional | |
destinationId | string | optional | The id. |
windowFrom | string | optional | |
windowTo | string | optional | |
parallel | integer | optional | |
notifyFailure | boolean | optional | |
notifyRun | boolean | optional | |
notifyRunChangedOnly | boolean | optional | |
speedLimitBps | integer | optional | |
sendOrder | string | optional | fastest or in_order. |
direction | string | optional | push, pull or both. |
conflict | string | optional | keep_both, here, there or newest. |
{
"name": "Rush delivery",
"sourcePath": "projects/rush",
"destination": "example",
"schedule": "example",
"destKind": "example",
"enabled": true,
"removals": true,
"removalsAck": true
}
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
id | string | required | The id. |
name | string | required | The name. |
sourceRoot | string | required | |
sourceRootName | string | required | |
sourcePath | string | required | |
destination | string | required | |
schedule | string | required | |
enabled | boolean | required | |
pausedReason | string | optional, left out when empty | |
lastRunAt | string | optional, left out when empty | A time, as RFC 3339. |
destKind | string | required | What the destination means. unset is a row from before kinds existed; the runner refuses those rather than guessing. |
nextRunAt | string | optional, left out when empty | When the schedule says it should next go. Absent for a job that is not on a timer. |
lastError | string | optional, left out when empty | Why it is not working, in the runner's words. |
createdAt | string | required | A time, as RFC 3339. |
status | string | required | |
problem | string | optional, left out when empty | |
problemCode | string | optional, left out when empty | |
removals | boolean | required | |
preset | string | required | |
compare | string | required | |
destFolder | string | required | |
pillText | string | required | |
windowFrom | string | optional, left out when empty | |
windowTo | string | optional, left out when empty | |
parallel | integer | required | |
notifyFailure | boolean | required | |
notifyRun | boolean | required | |
notifyRunChangedOnly | boolean | required | |
speedLimitBps | integer | optional, left out when empty | |
copyDone | integer | optional, left out when empty | Files copied so far in the run that is in progress. |
copyTotal | integer | optional, left out when empty | Files this run expects to look at. |
changedThere | string | required | |
destinationId | string | optional, left out when empty | A saved destination. Absent when the job copies to a folder here. |
destinationSpeed | string | optional, left out when empty | fast or standard, from that destination's last Test. |
sendOrder | string | required | fastest or in_order. |
limitedBy | array of string | required | What slows this job now, in words: the server's automation limit, its place's connections at once, its own speed limit. |
direction | string | required | push (here to there), pull (there to here) or both. |
conflict | string | required | When both sides changed a file in a sync both ways: keep_both, here, there or newest. |
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"sourceRoot": "example",
"sourceRootName": "example",
"sourcePath": "projects/rush",
"destination": "example",
"schedule": "example",
"enabled": true,
"destKind": "example",
"createdAt": "2026-10-05T18:00:00Z",
"status": "example",
"removals": true,
"preset": "example",
"compare": "example",
"destFolder": "example",
"pillText": "example",
"parallel": 1,
"notifyFailure": true,
"notifyRun": true,
"notifyRunChangedOnly": true,
"changedThere": "example",
"sendOrder": "fastest",
"limitedBy": [
"example"
],
"direction": "push",
"conflict": "keep_both"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a field is not valid |
| 400 | direction_not_allowed | this place cannot be synced in that direction |
| 409 | sync_pair_owned | another sync both ways already owns this pair of folders; nothing in the request was saved |
| 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 field is not valid"
}
}
DELETE /api/v1/sync-jobs/{id}
Delete one. token is the one from its delete plan.
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.
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/sync-jobs/{id}/delete-plan
What deleting this sync affects: the rules that name it. The plan carries the token the delete needs.
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 | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
|---|---|---|
| 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/sync-jobs/{id}/dry-run
What a run would change. Reads both sides and writes nothing, so it needs no license.
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.
| Field | Type | Meaning | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
add | integer | required | |||||||||||||||||
change | integer | required | |||||||||||||||||
current | integer | required | |||||||||||||||||
bytes | integer | required | Size in bytes. | ||||||||||||||||
sample | array of objects | required | Up to [PLAN_SAMPLE] entries, each add or change. | ||||||||||||||||
Each item is an object:
| |||||||||||||||||||
truncated | boolean | required | True when the walk hit its ceiling, so the counts are a floor and the screen must not present them as the whole picture. | ||||||||||||||||
delete | integer | required | Always zero, and present so the screen can say so. Deletes are not mirrored at all; see the module note. | ||||||||||||||||
{
"add": 1,
"change": 1,
"current": 1,
"bytes": 1048576,
"sample": [
{
"path": "projects/rush",
"what": "2026-10-05T18:00:00Z",
"bytes": 1048576
}
],
"truncated": true,
"delete": 1
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the source or the destination 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": "the source or the destination could not be read"
}
}
POST /api/v1/sync-jobs/{id}/preview
Compare the two sides and write a report. Nothing is copied or 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.
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 | {e:#} |
| 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": "{e:#}"
}
}
POST /api/v1/sync-jobs/{id}/run
Run it now rather than at its next scheduled 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. This call can also answer 402 when this installation's license does not cover automation.
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 | {e:#} |
| 402 | licence_required | this installation's license does not cover 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": "{e:#}"
}
}
GET /api/v1/sync-jobs/{id}/runs
Recent runs of this sync job, 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.
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"
}
}
GET /api/v1/sync-jobs/{id}/runs/{run_id}/files
The files one run copied, skipped, or would remove.
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 sync job's id. |
run_id | path | string | required | The run'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"
}
}
POST /api/v1/sync-jobs/{id}/runs/{run_id}/allow-once
Let one run past the safety stop, after the job's name is typed. Later runs stop at the same limits again.
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 sync job's id. |
run_id | path | string | required | The run that stopped. |
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
confirmName | string | required |
{
"confirmName": "example"
}
Success. 200.
JSON object.
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the name did not match the job |
| 409 | conflict | this run did not stop before removing files |
| 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 did not match the job"
}
}
Event rules
GET /api/v1/rules
Your event rules, and the ready-made ones to start from.
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 event rule waits for something to happen on the server, such as a file arriving or a transfer failing, and runs steps in response. Event rules need the automation feature; in Free mode one rule runs at no charge. An administrator sees every rule; everyone else sees their own. Besides the rules the reply says whether this license includes automation (included), how many more rules Free mode can run (freeJobsLeft), whether the caller may save a step that runs a command (mayUseCommands, administrators only), and whether webhooks to private addresses are allowed.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rules | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
templates | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
included | boolean | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
freeJobsLeft | integer | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
mayUseCommands | boolean | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
allowPrivateWebhooks | boolean | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"rules": [
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"trigger": "example",
"triggerConfig": {
"stableSecs": 1,
"cron": "example",
"everyMinutes": 1,
"dailyAt": "2026-10-05T18:00:00Z",
"weekdays": [
1
]
},
"conditions": [
{
"kind": {},
"field": "example",
"value": "example"
}
],
"steps": [
{
"name": "Rush delivery",
"kind": {},
"config": {
"file": {
"name": "rush.mov"
}
},
"retries": 1,
"onFailure": {},
"timeoutSecs": 1,
"confirmed": true
}
],
"enabled": true,
"hasCommand": true,
"notifyOwnerOnFailure": true,
"maxConcurrent": 1,
"secretNames": [
"a-secret-shown-once"
],
"createdAt": "2026-10-05T18:00:00Z"
}
],
"templates": [
{
"id": "k7Qm2sLp9vX4aB1c",
"title": "example",
"what": "2026-10-05T18:00:00Z",
"needs": "example",
"rule": {
"name": "Rush delivery",
"trigger": "example",
"steps": [
{
"name": "Rush delivery",
"kind": {},
"config": {
"file": {
"name": "rush.mov"
}
},
"retries": 1,
"onFailure": {},
"timeoutSecs": 1,
"confirmed": true
}
]
}
}
],
"included": true,
"freeJobsLeft": 1,
"mayUseCommands": true,
"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"
}
}
POST /api/v1/rules
Make an event rule.
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. This call can also answer 402 when this server's license has no room for another automation job.
The reply is the rule and its webhookSecret, the key a receiver checks webhook calls with; it can be shown again later with the signing key call. Values a step needs, such as a token, go in secrets once and are never returned; steps read them as {{secret.name}}. Only an administrator can save a rule with a step that runs a command. The rule starts at once unless enabled is false, and takes one of the jobs the license allows.
Request body. JSON.
A field the server does not know is ignored.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name | string | required | The name. | ||||||||||||||||||||||||||||||||
trigger | string | required | |||||||||||||||||||||||||||||||||
triggerConfig | TriggerConfig | optional, left out when empty | |||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||
conditions | array of RuleCondition | optional, left out when empty | |||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||
steps | array of objects | required | |||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||
enabled | boolean | optional, left out when empty | |||||||||||||||||||||||||||||||||
notifyOwnerOnFailure | boolean | optional, left out when empty | |||||||||||||||||||||||||||||||||
maxConcurrent | integer | optional, left out when empty | |||||||||||||||||||||||||||||||||
secrets | BTreeMap<String, String> | optional, left out when empty | Written once; never read back. | ||||||||||||||||||||||||||||||||
{
"name": "Rush delivery",
"trigger": "example",
"steps": [
{
"name": "Rush delivery",
"kind": {},
"config": {
"file": {
"name": "rush.mov"
}
},
"retries": 1,
"onFailure": {},
"timeoutSecs": 1,
"confirmed": true
}
]
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rule | object | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
webhookSecret | string | required | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"rule": {
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"trigger": "example",
"triggerConfig": {
"stableSecs": 1,
"cron": "example",
"everyMinutes": 1,
"dailyAt": "2026-10-05T18:00:00Z",
"weekdays": [
1
]
},
"conditions": [
{
"kind": {},
"field": "example",
"value": "example"
}
],
"steps": [
{
"name": "Rush delivery",
"kind": {},
"config": {
"file": {
"name": "rush.mov"
}
},
"retries": 1,
"onFailure": {},
"timeoutSecs": 1,
"confirmed": true
}
],
"enabled": true,
"hasCommand": true,
"notifyOwnerOnFailure": true,
"maxConcurrent": 1,
"secretNames": [
"a-secret-shown-once"
],
"createdAt": "2026-10-05T18:00:00Z"
},
"webhookSecret": "a-secret-shown-once"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | no name or one over 100 characters, an unknown trigger, a schedule that cannot work, a condition or step that is not valid (no steps, more than 20, a name used twice, a required setting missing, or a delete step without `confirmed`), a secret name or value that is not allowed, or `maxConcurrent` outside 1 to 8 |
| 402 | licence_required | this server's license has no room for another automation job |
| 403 | forbidden | a step runs a command and the caller is not an administrator |
| 409 | conflict | a rule with that name already exists |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
{
"error": {
"code": "bad_request",
"message": "no name or one over 100 characters, an unknown trigger, a schedule that cannot work, a condition or step that is not valid (no steps, more than 20, a name used twice, a required setting missing, or a delete step without `confirmed`), a secret name or value that is not allowed, or `maxConcurrent` outside 1 to 8"
}
}
GET /api/v1/rules/runs
Past runs of event rules, 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.
Up to 200 runs, each step's output shortened; fetch one run for the rest. Secrets are replaced by ***. An administrator sees every run; everyone else sees the runs of their own rules.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
rule | query | string | optional | Only this rule's runs. |
state | query | string | optional | queued, running, done, failed, skipped or interrupted. |
from | query | string | optional | RFC 3339, inclusive. |
to | query | string | optional | RFC 3339, exclusive. |
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
runs | array of objects | required | The runs, newest first, up to 200. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{
"runs": [
{
"id": "k7Qm2sLp9vX4aB1c",
"ruleId": "k7Qm2sLp9vX4aB1c",
"ruleName": "example",
"state": "active",
"startedBy": "example",
"conditionsPassed": true,
"dryRun": false,
"startedAt": "2026-10-05T18:00:00Z",
"steps": [
{
"name": "Rush delivery",
"kind": {},
"state": "active",
"attempts": 1,
"output": "example"
}
]
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | a date that is not written like 2031-03-04T10:00:00Z |
| 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 date that is not written like 2031-03-04T10:00:00Z"
}
}
GET /api/v1/rules/runs/{id}
One run of an event rule, with the output of every step.
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.
The last 64 KB of each step's output is kept, with every secret replaced by ***. For a dry run each step also has a plan: what it would have done.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | required | The id. | ||||||||||||||||||||||||||||||||||||||||||||
ruleId | string | required | The id. | ||||||||||||||||||||||||||||||||||||||||||||
ruleName | string | required | |||||||||||||||||||||||||||||||||||||||||||||
eventId | string | optional | The id. | ||||||||||||||||||||||||||||||||||||||||||||
state | string | required | Where this record is in its life. | ||||||||||||||||||||||||||||||||||||||||||||
startedBy | string | required | |||||||||||||||||||||||||||||||||||||||||||||
conditionsPassed | boolean | required | |||||||||||||||||||||||||||||||||||||||||||||
dryRun | boolean | required | |||||||||||||||||||||||||||||||||||||||||||||
error | string | optional | |||||||||||||||||||||||||||||||||||||||||||||
startedAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||||||||||||||||||||||||||
finishedAt | string | optional | A time, as RFC 3339. | ||||||||||||||||||||||||||||||||||||||||||||
steps | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||
{
"id": "k7Qm2sLp9vX4aB1c",
"ruleId": "k7Qm2sLp9vX4aB1c",
"ruleName": "example",
"state": "active",
"startedBy": "example",
"conditionsPassed": true,
"dryRun": false,
"startedAt": "2026-10-05T18:00:00Z",
"steps": [
{
"name": "Rush delivery",
"kind": {},
"state": "active",
"attempts": 1,
"output": "example"
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | not_found | no such run, or it belongs to someone else's rule |
| 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/rules/runs/{id}/rerun
Run a past run again.
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.
Queues a new run of the same rule with the event the old run kept, even if the event itself has since been cleared away. The conditions are not checked again. The old run stays as it was.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Request body. None.
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | required | The id. | ||||||||||||||||||||||||||||||||||||||||||||
ruleId | string | required | The id. | ||||||||||||||||||||||||||||||||||||||||||||
ruleName | string | required | |||||||||||||||||||||||||||||||||||||||||||||
eventId | string | optional | The id. | ||||||||||||||||||||||||||||||||||||||||||||
state | string | required | Where this record is in its life. | ||||||||||||||||||||||||||||||||||||||||||||
startedBy | string | required | |||||||||||||||||||||||||||||||||||||||||||||
conditionsPassed | boolean | required | |||||||||||||||||||||||||||||||||||||||||||||
dryRun | boolean | required | |||||||||||||||||||||||||||||||||||||||||||||
error | string | optional | |||||||||||||||||||||||||||||||||||||||||||||
startedAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||||||||||||||||||||||||||
finishedAt | string | optional | A time, as RFC 3339. | ||||||||||||||||||||||||||||||||||||||||||||
steps | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||
{
"id": "k7Qm2sLp9vX4aB1c",
"ruleId": "k7Qm2sLp9vX4aB1c",
"ruleName": "example",
"state": "active",
"startedBy": "example",
"conditionsPassed": true,
"dryRun": false,
"startedAt": "2026-10-05T18:00:00Z",
"steps": [
{
"name": "Rush delivery",
"kind": {},
"state": "active",
"attempts": 1,
"output": "example"
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 403 | forbidden | the rule runs a command and the caller is not an administrator |
| 404 | not_found | no such run, or it belongs to someone else's rule |
| 409 | conflict | the rule is paused; the message says why |
| 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": "forbidden",
"message": "you do not have access to this"
}
}
PATCH /api/v1/rules/{id}
Change an event rule.
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. This call can also answer 402 when switching it on, when this server's license has no room for another automation job.
Send only what changes. A secret sent with an empty value is removed, and one left out is kept. Switching a rule on takes one of the license's jobs; editing it or switching it off does not. Only an administrator can add a command step, or edit a rule that already has one other than switching it off.
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 | optional | The name. | ||||||||||||||||||||||||||||||||
trigger | string | optional | |||||||||||||||||||||||||||||||||
triggerConfig | TriggerConfig | optional | |||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||
conditions | array of RuleCondition | optional | |||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||
steps | array of StepInput | optional | |||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||
enabled | boolean | optional | |||||||||||||||||||||||||||||||||
notifyOwnerOnFailure | boolean | optional | |||||||||||||||||||||||||||||||||
maxConcurrent | integer | optional | |||||||||||||||||||||||||||||||||
secrets | BTreeMap<String, String> | optional | |||||||||||||||||||||||||||||||||
{
"name": "Rush delivery",
"trigger": "example",
"triggerConfig": {
"stableSecs": 1,
"cron": "example",
"everyMinutes": 1,
"dailyAt": "2026-10-05T18:00:00Z",
"weekdays": [
1
]
},
"conditions": [
{
"kind": {},
"field": "example",
"value": "example"
}
],
"steps": [
{
"name": "Rush delivery",
"kind": {},
"config": {
"file": {
"name": "rush.mov"
}
},
"retries": 1,
"onFailure": {},
"timeoutSecs": 1,
"confirmed": true
}
],
"enabled": true,
"notifyOwnerOnFailure": true,
"maxConcurrent": 1
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | required | The id. | ||||||||||||||||||||||||||||||||
name | string | required | The name. | ||||||||||||||||||||||||||||||||
ownerId | string | optional | The id. | ||||||||||||||||||||||||||||||||
ownerEmail | string | optional | An email address. | ||||||||||||||||||||||||||||||||
trigger | string | required | |||||||||||||||||||||||||||||||||
triggerConfig | object | required | |||||||||||||||||||||||||||||||||
It is an object:
| |||||||||||||||||||||||||||||||||||
conditions | array of objects | required | |||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||
steps | array of objects | required | |||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||
enabled | boolean | required | |||||||||||||||||||||||||||||||||
pausedReason | string | optional | |||||||||||||||||||||||||||||||||
hasCommand | boolean | required | |||||||||||||||||||||||||||||||||
notifyOwnerOnFailure | boolean | required | |||||||||||||||||||||||||||||||||
maxConcurrent | integer | required | |||||||||||||||||||||||||||||||||
secretNames | array of string | required | Names only. The values are never sent back. | ||||||||||||||||||||||||||||||||
lastRunAt | string | optional | A time, as RFC 3339. | ||||||||||||||||||||||||||||||||
nextRunAt | string | optional | A time, as RFC 3339. | ||||||||||||||||||||||||||||||||
createdAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||||||||||||||
{
"id": "k7Qm2sLp9vX4aB1c",
"name": "Rush delivery",
"trigger": "example",
"triggerConfig": {
"stableSecs": 1,
"cron": "example",
"everyMinutes": 1,
"dailyAt": "2026-10-05T18:00:00Z",
"weekdays": [
1
]
},
"conditions": [
{
"kind": {},
"field": "example",
"value": "example"
}
],
"steps": [
{
"name": "Rush delivery",
"kind": {},
"config": {
"file": {
"name": "rush.mov"
}
},
"retries": 1,
"onFailure": {},
"timeoutSecs": 1,
"confirmed": true
}
],
"enabled": true,
"hasCommand": true,
"notifyOwnerOnFailure": true,
"maxConcurrent": 1,
"secretNames": [
"a-secret-shown-once"
],
"createdAt": "2026-10-05T18:00:00Z"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | any of the refusals for making a rule |
| 402 | licence_required | switching it on, when this server's license has no room for another automation job |
| 403 | forbidden | the change adds or edits a command step and the caller is not an administrator |
| 404 | not_found | no such rule, or it is someone else's |
| 409 | conflict | a rule with that name already exists |
| 401 | unauthenticated | no key, or a key that is unknown, expired, revoked, or owned by a disabled account |
{
"error": {
"code": "bad_request",
"message": "any of the refusals for making a rule"
}
}
DELETE /api/v1/rules/{id}
Delete an event rule.
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.
The rule stops at once and gives its job back. Needs the write scope rather than delete, like every other change to a rule.
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 rule, or it is someone else's |
| 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/rules/{id}/signing-key
Show the key a rule's webhook receivers check.
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.
Only to the rule's owner or an administrator, and each time it is read is written to the audit log. It is a call of its own so that the rule itself, which is listed and cached, never carries it.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Success. 200.
| Field | Type | Meaning | |
|---|---|---|---|
signingKey | string | required |
{
"signingKey": "example"
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 404 | not_found | no such rule, or it is someone else's |
| 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/rules/{id}/run
Run an event rule now, for real or as a dry run.
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.
With eventId the rule runs against that past event from the events list; without one, against a made-up event of the rule's kind. A dry run shows what each step would do and does none of it, and the reply comes when it has finished. A real run is queued, so the reply may still say queued or running; read the run again to follow it. If the event does not meet the rule's conditions the run is recorded as skipped. A paused rule can be dry-run but not run, and only an administrator can run a rule that has a command step for real.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
id | path | string | required | The resource's id. |
Request body. JSON.
The body may be left out.
A field the server does not know is ignored.
| Field | Type | Meaning | |
|---|---|---|---|
eventId | string | optional | The id. |
dryRun | boolean | optional |
{
"eventId": "k7Qm2sLp9vX4aB1c",
"dryRun": false
}
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | string | required | The id. | ||||||||||||||||||||||||||||||||||||||||||||
ruleId | string | required | The id. | ||||||||||||||||||||||||||||||||||||||||||||
ruleName | string | required | |||||||||||||||||||||||||||||||||||||||||||||
eventId | string | optional | The id. | ||||||||||||||||||||||||||||||||||||||||||||
state | string | required | Where this record is in its life. | ||||||||||||||||||||||||||||||||||||||||||||
startedBy | string | required | |||||||||||||||||||||||||||||||||||||||||||||
conditionsPassed | boolean | required | |||||||||||||||||||||||||||||||||||||||||||||
dryRun | boolean | required | |||||||||||||||||||||||||||||||||||||||||||||
error | string | optional | |||||||||||||||||||||||||||||||||||||||||||||
startedAt | string | required | A time, as RFC 3339. | ||||||||||||||||||||||||||||||||||||||||||||
finishedAt | string | optional | A time, as RFC 3339. | ||||||||||||||||||||||||||||||||||||||||||||
steps | array of objects | required | |||||||||||||||||||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||||||||||||||||||
{
"id": "k7Qm2sLp9vX4aB1c",
"ruleId": "k7Qm2sLp9vX4aB1c",
"ruleName": "example",
"state": "active",
"startedBy": "example",
"conditionsPassed": true,
"dryRun": false,
"startedAt": "2026-10-05T18:00:00Z",
"steps": [
{
"name": "Rush delivery",
"kind": {},
"state": "active",
"attempts": 1,
"output": "example"
}
]
}
Errors. The body always has the shape in Errors. Match on code.
| Status | code | When |
|---|---|---|
| 400 | bad_request | the event is no longer kept |
| 403 | forbidden | the rule runs a command and the caller is not an administrator |
| 404 | not_found | no such rule, or it is someone else's |
| 409 | conflict | the rule is paused; the message says why |
| 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 event is no longer kept"
}
}
Events
GET /api/v1/events
Past events, to test a rule against.
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.
Newest first, of the kind asked for or of every kind, up to 200. Events name files and the addresses of the people who sent them, across every folder, so only an administrator is shown any; everyone else gets an empty list instead of an error, which keeps the test screen working with a made-up event.
Parameters.
| Name | In | Type | Meaning | |
|---|---|---|---|---|
kind | query | string | optional | Only events of this trigger kind, such as file.arrived. |
limit | query | integer | optional | 1 to 200. Default 50. Clamped, not refused. |
Success. 200.
| Field | Type | Meaning | |||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
events | array of objects | required | Newest first. Empty for anyone who is not an administrator. | ||||||||||||||||||||||||||||
Each item is an object:
| |||||||||||||||||||||||||||||||
{
"events": [
{
"id": "k7Qm2sLp9vX4aB1c",
"kind": "file.arrived",
"at": "2026-10-05T18:00:00Z",
"path": "projects/rush",
"actorEmail": "[email protected]",
"body": {
"file": {
"name": "rush.mov"
}
}
}
]
}
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"
}
}