Browse documentationWorkspace selection

Identity

Select the workspace for the operation

A Bento client resolves its target workspace before starting work. A human key identifies the person, and current membership and role determine access to the workspace named by the operation. Changing that target does not change the login. App credentials retain their explicit workspace boundaries; see API keys and access.

Keep human choice visible

When a user belongs to several workspaces, display the selected workspace and persist its stable identity with the integration configuration. Do not guess from the most recently visited browser page or fall back to the first membership.

Slugs are addresses

Slugs make workspace routes and scopes readable, but they are still protocol identifiers. Validate them with the shared contract grammar, encode dynamic path segments, and plan for a rename to break old public URLs rather than hiding the break behind an ambiguous redirect.

Choose local or remote CLI work explicitly

bento local config update --workspace <slug> saves a default for remote commands and Bento model billing. An explicit workspace address or --workspace <slug> selects an operation target. If a file address and a workspace flag name different workspaces, the command fails before sending a request.

Prompts run locally. local memory and local train always use local stores; memory and train address the workspace. A saved default never turns local work into a remote command. Save the training JSON below as handbook-job.json for the CLI example:

bento memory search --q "notes" --workspace acme
bento train job create --workspace acme --body-file handbook-job.json

Human model requests send x-duet-workspace to select the workspace that pays. The gateway checks live access and payer policy; an omitted target never silently chooses the first membership.

Invite workspace members

Use a workspace owner's key with the members capability to create, list, or revoke invitations. Creating an invitation sends the recipient a Bento email; your integration does not need to send another message. Invitations are bound to one canonical email, expire after seven days, and grant either editor or viewer access.

The recipient follows the email link and signs in with the invited email address. Bento accepts the invitation and opens that workspace, without requiring personal workspace setup. A new account created through this link joins the invited workspace without creating a personal one. An existing account keeps its other workspaces.

If the recipient signs up normally instead, they get the normal personal workspace setup and can accept the pending invitation from the bar in the Bento app. Acceptance belongs to the recipient's account: the recipient's human login can list and accept their invitations; an app key cannot act as that person's account. Your integration manages outgoing invitations through the workspace endpoints below; the recipient completes the handoff in Bento.

Workspace owners may change member roles, but the durable workspace domain preserves two invariants: every workspace retains an owner, and the designated payer remains an owner until billing is reassigned. Consumers should surface the conflict rather than trying to sequence a client-side workaround.

Audit events are returned newest-first with opaque cursors. Treat a cursor as a continuation token, not as a timestamp or stable event identifier.

Leave a workspace

Use bento workspace leave --workspace <slug> or the hosted MCP workspace_leave tool with workspaceSlug to remove your own membership. REST callers send a bodyless POST /v1/workspaces/{workspaceSlug}/leave. Editors and viewers can leave too; the endpoint accepts the same scope alternatives as member listing.

A successful response is { "removed": true }. Check whoami afterward: the workspace disappears from your memberships, and your existing key immediately loses access to it. Your devices are detached from that workspace's sync mirror. Other workspace memberships remain available.

A payer receives 409 billing_user: reassign billing to another owner before leaving. The final owner cannot leave (409 last_owner); invite or promote another owner first. A caller without membership receives 404 not_found. Leaving writes the same member-removal audit event as an owner removing a member, attributed to the person who left.

Delete a workspace

An owner can permanently delete a workspace with its admin capability, including before setup is complete. Deletion immediately removes access and schedules cleanup of the workspace's resources. There is no undo; the owner's subscription and other workspaces remain available.

bento workspace delete --workspace acme --confirmation acme
bento whoami

REST callers send DELETE /v1/workspaces/{workspaceSlug} with a JSON body containing { "confirmation": "acme" }. The hosted MCP workspace_delete tool accepts workspaceSlug and body: { confirmation: "acme" }. Confirmation must exactly match the current workspace slug; 400 confirmation_mismatch leaves the workspace unchanged. Read its current address before retrying a mismatch. Owner authorization is required (403); use the intended owner's login.

Success returns { "deleted": true }. Verify that whoami no longer lists the workspace. A repeated delete returns 404 not_found, as does an unknown or inaccessible workspace.

Set the agent tier fallback

Owners can set a workspace's default tier through the single-purpose default-model endpoint using a tier selection. For example, { "tier": "openai-frontier" } chooses a stable provider alias. The accepted session selections apply here too. This is a fallback for sessions without a sticky choice, not a rewrite of queued prompts or existing session preferences. Every selection is available to every workspace. Explicit provider aliases survive subscription-plan changes.

Lifecycle and path repair

Workspace creation returns while provisioning continues. Reprovisioning is an owner-only recovery operation, not a retry strategy for ordinary request failures. Renaming requires an explicit acknowledgement because workspace-scoped URLs change.

Apps, publishes, and share roots retain path anchors. List anchors to diagnose a moved path; repair only an anchor in the broken state, using the capability that owns its kind.

Read VM telemetry history

Workspace members can read the VM's recent CPU, memory, and disk history. The optional sinceAt query value is a Unix timestamp in milliseconds; without it, the service returns the retained 30-day window. Long windows are downsampled to a bounded chart response, so treat points as trend buckets rather than exact latest readings. Memory and disk expose used and total values separately, and an absent metric means that sample could not observe it.

Back up to Google Drive

Google Drive backup continuously copies the whole workspace Drive, or one folder in it, to a Google Drive folder. It is a one-way file backup; use ZIP export when you also need portable workspace configuration and session history. It skips what file sync skips: .git directories, rebuildable folders such as node_modules and .venv, and recordings/ at the drive root.

Use the intended workspace slug and a credential with ws:{workspaceSlug}:admin authority. For a human login, this requires the workspace owner role. The workspace agent's normal VM credential already includes admin authority; reuse it inside the VM. The endpoint reference owns the exact schemas and errors for API, CLI, and hosted MCP. The examples below assume BENTO_API_URL and BENTO_API_KEY are configured and WORKSPACE is set to the selected workspace slug.

Check the connection first

Read GET /v1/workspaces/{workspaceSlug}/cloud-backups/google-drive before changing anything. Its target is the saved configuration, including its pinned lifecycle connectionId; accounts lists ACTIVE Drive choices with their provider-supplied accountLabel when available. Labels help people recognize accounts; select by id. connection describes the saved pin, and status is the live backup engine's observation. If the requested backup is already enabled with the intended folders and an active connection, verify progress instead of starting another authorization.

activeConnectionId is the active saved pin, or the sole active account before setup. It is null for ambiguous initial setup and for a lost saved pin, even when another account is active. Use accounts and the saved pin to decide what to do. When no suitable account is active, check GET /v1/workspaces/{workspaceSlug}/integrations/connections for integration: "googledrive", following its continuation cursor. A pending connection may still be awaiting the person's consent. Keep that attempt while approval is in progress. Start the ordinary integration connection flow only when no attempt is in progress, or the person wants to restart a canceled or abandoned attempt. Save this body as google-drive-connection.json, replacing acme in redirectTo with the intended workspace slug:

Request body
{
  "integration": "googledrive",
  "redirectTo": "/w/acme/settings/backups"
}
bento integration connect --workspace "$WORKSPACE" --body-file google-drive-connection.json

Give the returned authorizeUrl to the person for Google sign-in and consent. A URL or browser redirect is not proof of connection: read the backup endpoint again after approval and confirm the intended account is in accounts. Authorization adds a choice; it does not repin a saved backup. The backup read alone cannot distinguish pending from canceled consent; inspect the integration connection state and the person's response. Keep the current link while approval is pending. See integration lifecycle failures before retrying a refused authorization.

The integration slug is googledrive; the backup provider path is google-drive. If a saved target reports connection: "lost", keep its connectionId as the lost identity. Ask the person which account should replace it, or connect another account. Browse that account's folders and explicitly save its connectionId with the intended destination. The old folder ID is reusable only if the newly chosen account can access it; the API validates it before saving. A rejected selection or destination leaves the saved target intact.

Choose folders and enable backup

For a new backup, save this body as google-drive-backup.json to back up the whole workspace to the default Google Drive destination. Replace the example connectionId with the chosen accounts[].id. For an existing backup, omit connectionId to retain its pin and preserve the saved folders unless the person requested a change:

Request body
{
  "connectionId": "ca_drive_selected",
  "enabled": true,
  "sourcePath": "",
  "remote": { "kind": "default" }
}

For initial setup, omitting connectionId works only with exactly one ACTIVE account. Multiple accounts return 409 account_selection_required; zero active accounts, an invalid explicit choice, or a lost saved pin return 409 not_connected. A saved pin never falls back to another account. An incomplete account inventory cannot establish a sole account and returns 502 upstream_failed; retry after the provider recovers or supply a known active ID.

sourcePath is workspace Drive-relative: an empty string selects the whole Drive; a folder path such as reports/2026 selects just that subtree. Use no leading slash or workspace prefix. Confirm the selected source exists with the files API. The default destination creates a folder named Bento – <workspace name>. To choose an existing destination, browse GET /v1/workspaces/{workspaceSlug}/cloud-backups/google-drive/folders with the selected connectionId query parameter. The CLI exposes this as --connection-id on bento cloud-backup folder list. Follow nextCursor via cursor, retaining the same account and parent for every page. To change account or enter another folder, omit the previous cursor and discard the previous folder selection. Save with that same connectionId. Replace remote with { "kind": "existing", "folderId": "<chosen-folder-id>" }.

bento cloud-backup update --workspace "$WORKSPACE" --cloud-backup-id google-drive \
  --body-file google-drive-backup.json

Saving pins the selected Google connection; the workspace VM receives the target through an immediate push or its next sync if that push fails. Changing the source or destination starts a fresh backup target and keeps the previous backup. To turn backup off, send its saved sourcePath and remote: { "kind": "existing", "folderId": "<target.remoteRootId>" } with enabled: false; existing Google Drive files remain in place. Disabling an existing target preserves its saved source, destination and account even if a different draft is sent. It makes no provider folder calls and succeeds with a lost connection. Confirm the successful response before reporting that backup is off; re-enabling or changing settings uses the ordinary validated save path.

Verify the backup is running

Read the backup endpoint again. A successful PUT proves only that settings were saved. Confirm target.enabled, the intended source and destination, and connection: "active". Then inspect live status.state, backedUp, failed, and lastSyncedAt:

  • backedUp reports confirmed file and byte totals. When local is present, it reports eligible totals from the latest completed local scan. Missing local totals mean the source has not been measured yet; do not infer an empty source or a completion percentage.
  • syncing means a run is active. Optional run.folders reports done out of toCheck, and run.uploaded reports files and bytes uploaded in this run. lastProgressAt advances on completed work, never on waits or retries. More than ten minutes without progress is a stall; the panel shows “No progress since …”. etaSeconds, when present, estimates time left.
  • idle with failed: 0 and a recorded sync time shows a completed sync. Without lastSyncedAt, no completed run has been observed. An empty source may have nothing to upload; do not claim copied files without evidence.
  • paused carries a pauseReason: rate_limited means backup requests are being throttled; temporarily_unavailable means the backup relay or provider is temporarily failing. Both retry automatically. Other reasons require fixing a missing source or destination, reconnecting a lost Google account, or waiting for an in-flight restore.
  • { "status": "unavailable" } means the live VM could not be observed. Report saved settings separately from unverified backup progress.

After first enabling backup or changing either folder, allow for target delivery before interpreting status. Status carries no target identifier and may briefly describe the previous target. Require a fresh lastSyncedAt from after the save and check that an expected source file reached the selected Google Drive destination before claiming the new backup completed; an immediate idle or syncing alone cannot establish that. If that evidence is unavailable, report the settings as saved and completion as unverified.

Read GET /v1/workspaces/{workspaceSlug}/cloud-backups/google-drive/failures when files fail, following its continuation cursor. A later scan clears a failure only after confirming that its local file is gone; the existing Google Drive copy remains. Report the actual source, destination, and observed state; do not call a saved target or an OAuth approval a completed backup.

Export a workspace backup

Use the workspace admin capability to capture a private ZIP in the background. The workspace agent's normal credential includes this capability. A files-only key cannot export the workspace.

Send a unique request ID when starting an export; reuse that ID if the response is lost. The response is 202 with a durable backup record. Only one capture runs per workspace. A distinct request while capture is active returns 409 backup_in_progress and the active backup ID.

Request body
{
  "requestId": "backup-2026-09-29-release"
}
bento backup create --workspace "$WORKSPACE" --request-id backup-2026-09-29-release

Poll the returned backup ID until it is ready or failed. Progress shows observed files, records, and bytes rather than a percentage. A failed capture has no download; retry with a new request ID to create a fresh attempt. Closing the client does not cancel capture.

The ZIP contains the complete Drive, including hidden files, .env secrets, dependencies, and symlinks, plus portable workspace configuration and session history with image bytes. It excludes workspace membership and Bento platform credentials. Capture runs alongside live writers; it is not a transaction snapshot and cannot detect every change. A ready backup marked partial is still downloadable: read its warnings before relying on it. The archive's root README.md explains recovery through current APIs. Historical chats remain files; there is no chat-history import or running-process continuation promise.

Mint a download URL only when needed. It expires, but the stored backup remains until explicitly deleted, including when its source VM is unavailable. Request a new URL after expiry; do not persist the URL alongside the backup record. The response includes archive bytes and SHA-256 so an agent can verify the downloaded ZIP.

Deletion immediately removes download access and cancels active capture. A 202 means storage cleanup is still pending; an absent backup is an idempotent success. A backup needed by an accepted workspace operation cannot be deleted yet. If emptyDriveOnNextStart is true, deletion removed an archived workspace's recovery backup: its next start uses an empty Drive while keeping its workspace records. This does not remove a running workspace's files or another retained backup.

Backups

9 operations
GET/v1/workspaces/{workspaceSlug}/cloud-backups/{cloudBackupId}

Read the saved account pin, active Drive choices and live backup status.

CLI
bento cloud-backup get --cloud-backup-id example
Scope
ws:{workspaceSlug}:admin
Request
No JSON request body
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "target": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "provider": {
              "type": "string",
              "enum": [
                "google-drive"
              ]
            },
            "targetId": {
              "type": "string",
              "minLength": 1
            },
            "sourcePath": {
              "type": "string"
            },
            "remoteRootId": {
              "type": "string",
              "minLength": 1
            },
            "connectionId": {
              "type": "string",
              "minLength": 1
            },
            "enabled": {
              "type": "boolean"
            },
            "remoteRootName": {
              "type": "string",
              "minLength": 1
            }
          },
          "required": [
            "provider",
            "targetId",
            "sourcePath",
            "remoteRootId",
            "connectionId",
            "enabled",
            "remoteRootName"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "connection": {
      "type": "string",
      "enum": [
        "active",
        "lost",
        "not_connected"
      ]
    },
    "accounts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "accountLabel": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "activeConnectionId": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ]
    },
    "status": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "state": {
              "type": "string",
              "enum": [
                "idle",
                "syncing",
                "paused"
              ]
            },
            "pauseReason": {
              "type": "string",
              "enum": [
                "folder_not_found",
                "remote_folder_not_found",
                "connection_lost",
                "restore_in_flight",
                "rate_limited",
                "temporarily_unavailable",
                "storage_full"
              ]
            },
            "backedUp": {
              "type": "object",
              "properties": {
                "files": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "bytes": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "files",
                "bytes"
              ],
              "additionalProperties": false
            },
            "local": {
              "type": "object",
              "properties": {
                "files": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "bytes": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "files",
                "bytes"
              ],
              "additionalProperties": false
            },
            "run": {
              "type": "object",
              "properties": {
                "folders": {
                  "type": "object",
                  "properties": {
                    "done": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "toCheck": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "done",
                    "toCheck"
                  ],
                  "additionalProperties": false
                },
                "uploaded": {
                  "type": "object",
                  "properties": {
                    "files": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "bytes": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "files",
                    "bytes"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "folders",
                "uploaded"
              ],
              "additionalProperties": false
            },
            "failed": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "lastProgressAt": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "lastSyncedAt": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "etaSeconds": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "state",
            "backedUp",
            "failed"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "status": {
              "type": "string",
              "const": "unavailable"
            }
          },
          "required": [
            "status"
          ],
          "additionalProperties": false
        }
      ]
    }
  },
  "required": [
    "target",
    "connection",
    "accounts",
    "activeConnectionId",
    "status"
  ],
  "additionalProperties": false
}
Errors
The provider could not be reached or its account inventory is incomplete (502)
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "const": "upstream_failed"
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false,
  "description": "The provider could not be reached or its account inventory is incomplete (502)"
}
Delivery
Standard response
Retry
Not declared idempotent
PUT/v1/workspaces/{workspaceSlug}/cloud-backups/{cloudBackupId}

Set the cloud backup target using an explicit, saved or sole active Drive account.

CLI
bento cloud-backup update --cloud-backup-id example --body-file request.json
Scope
ws:{workspaceSlug}:admin
Request
Request JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "connectionId": {
      "type": "string",
      "minLength": 1
    },
    "enabled": {
      "type": "boolean"
    },
    "sourcePath": {
      "type": "string"
    },
    "remote": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "default"
            }
          },
          "required": [
            "kind"
          ]
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "existing"
            },
            "folderId": {
              "type": "string",
              "minLength": 1
            }
          },
          "required": [
            "kind",
            "folderId"
          ]
        }
      ]
    }
  },
  "required": [
    "enabled",
    "sourcePath",
    "remote"
  ]
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "target": {
      "type": "object",
      "properties": {
        "provider": {
          "type": "string",
          "enum": [
            "google-drive"
          ]
        },
        "targetId": {
          "type": "string",
          "minLength": 1
        },
        "sourcePath": {
          "type": "string"
        },
        "remoteRootId": {
          "type": "string",
          "minLength": 1
        },
        "connectionId": {
          "type": "string",
          "minLength": 1
        },
        "enabled": {
          "type": "boolean"
        },
        "remoteRootName": {
          "type": "string",
          "minLength": 1
        }
      },
      "required": [
        "provider",
        "targetId",
        "sourcePath",
        "remoteRootId",
        "connectionId",
        "enabled",
        "remoteRootName"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "target"
  ],
  "additionalProperties": false
}
Errors
Error body JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "anyOf": [
    {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "error": {
              "type": "string",
              "const": "invalid_request"
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false,
          "description": "The request is outside the accepted contract (400)"
        },
        {
          "type": "object",
          "properties": {
            "error": {
              "type": "string",
              "const": "not_connected"
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false,
          "description": "The selected or saved account is not an active workspace Drive connection (409)"
        },
        {
          "type": "object",
          "properties": {
            "error": {
              "type": "string",
              "const": "account_selection_required"
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false,
          "description": "Several active Drive accounts exist; select a connectionId (409)"
        },
        {
          "type": "object",
          "properties": {
            "error": {
              "type": "string",
              "const": "budget_exhausted"
            },
            "retryAfterMs": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "error",
            "retryAfterMs"
          ],
          "additionalProperties": false,
          "description": "The cloud backup request budget is spent; retry later (429)"
        },
        {
          "type": "object",
          "properties": {
            "error": {
              "type": "string",
              "const": "upstream_failed"
            }
          },
          "required": [
            "error"
          ],
          "additionalProperties": false,
          "description": "The provider could not be reached or its account inventory is incomplete (502)"
        }
      ]
    },
    {
      "type": "object",
      "properties": {
        "error": {
          "type": "string",
          "const": "folder_not_found"
        }
      },
      "required": [
        "error"
      ],
      "additionalProperties": false,
      "description": "The chosen folder is missing, trashed, or not a folder (400)"
    }
  ]
}
Delivery
Standard response
Retry
Not declared idempotent
GET/v1/workspaces/{workspaceSlug}/cloud-backups/{cloudBackupId}/folders

List folders in the explicit, saved or sole active Drive account.

CLI
bento cloud-backup folder list --cloud-backup-id google-drive --connection-id ca_drive_selected
Scope
ws:{workspaceSlug}:admin
Request
No JSON request body
Query
Query parameters JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "connectionId": {
      "type": "string",
      "minLength": 1
    },
    "parent": {
      "type": "string",
      "minLength": 1
    },
    "cursor": {
      "type": "string",
      "minLength": 1
    }
  }
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false
      }
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "items",
    "nextCursor"
  ],
  "additionalProperties": false
}
Errors
Error body JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "error": {
          "type": "string",
          "const": "invalid_request"
        }
      },
      "required": [
        "error"
      ],
      "additionalProperties": false,
      "description": "The request is outside the accepted contract (400)"
    },
    {
      "type": "object",
      "properties": {
        "error": {
          "type": "string",
          "const": "not_connected"
        }
      },
      "required": [
        "error"
      ],
      "additionalProperties": false,
      "description": "The selected or saved account is not an active workspace Drive connection (409)"
    },
    {
      "type": "object",
      "properties": {
        "error": {
          "type": "string",
          "const": "account_selection_required"
        }
      },
      "required": [
        "error"
      ],
      "additionalProperties": false,
      "description": "Several active Drive accounts exist; select a connectionId (409)"
    },
    {
      "type": "object",
      "properties": {
        "error": {
          "type": "string",
          "const": "budget_exhausted"
        },
        "retryAfterMs": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "error",
        "retryAfterMs"
      ],
      "additionalProperties": false,
      "description": "The cloud backup request budget is spent; retry later (429)"
    },
    {
      "type": "object",
      "properties": {
        "error": {
          "type": "string",
          "const": "upstream_failed"
        }
      },
      "required": [
        "error"
      ],
      "additionalProperties": false,
      "description": "The provider could not be reached or its account inventory is incomplete (502)"
    }
  ]
}
Delivery
Standard response
Retry
Not declared idempotent
GET/v1/workspaces/{workspaceSlug}/cloud-backups/{cloudBackupId}/failures

Read failed cloud backup files from the live gateway.

CLI
bento cloud-backup failure list --cloud-backup-id example
Scope
ws:{workspaceSlug}:admin
Request
No JSON request body
Query
Query parameters JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "cursor": {
      "type": "string"
    }
  }
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "anyOf": [
    {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "path": {
                "type": "string"
              },
              "error": {
                "type": "string",
                "minLength": 1
              },
              "attempts": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "path",
              "error",
              "attempts"
            ],
            "additionalProperties": false
          }
        },
        "nextCursor": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "items",
        "nextCursor"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "const": "unavailable"
        }
      },
      "required": [
        "status"
      ],
      "additionalProperties": false
    }
  ]
}
Delivery
Standard response
Retry
Not declared idempotent
POST/v1/workspaces/{workspaceSlug}/backups

Start a durable workspace ZIP capture; returns 202 and replays the same request ID.

CLI
bento backup create --request-id example
Scope
ws:{workspaceSlug}:admin
Request
Request JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "requestId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    }
  },
  "required": [
    "requestId"
  ],
  "additionalProperties": false
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "backup": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "workspaceId": {
          "type": "string"
        },
        "purpose": {
          "type": "string",
          "enum": [
            "export",
            "archive",
            "reprovision"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "queued",
            "running",
            "ready",
            "failed",
            "deleting"
          ]
        },
        "phase": {
          "type": "string",
          "enum": [
            "metadata",
            "files",
            "upload",
            "finalizing"
          ]
        },
        "createdAt": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "updatedAt": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "startedAt": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "completedAt": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "expiresAt": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "progress": {
          "type": "object",
          "properties": {
            "processedFiles": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "processedRecords": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "capturedBytes": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "uploadedBytes": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "warningCount": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "warningSummary": {
              "maxItems": 32,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "code",
                  "count"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "processedFiles",
            "processedRecords",
            "capturedBytes",
            "uploadedBytes",
            "warningCount",
            "warningSummary"
          ],
          "additionalProperties": false
        },
        "completeness": {
          "type": "string",
          "enum": [
            "complete",
            "partial"
          ]
        },
        "bytes": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "sha256": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "error": {
          "type": "object",
          "properties": {
            "code": {
              "type": "string",
              "enum": [
                "vm_unavailable",
                "interrupted",
                "stalled",
                "capture_failed",
                "upload_failed",
                "object_mismatch",
                "cleanup_failed"
              ]
            },
            "message": {
              "type": "string",
              "maxLength": 1024
            }
          },
          "required": [
            "code",
            "message"
          ],
          "additionalProperties": false
        },
        "lifecycle": {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "reprovision",
                "archive",
                "servicing"
              ]
            },
            "status": {
              "type": "string",
              "enum": [
                "capturing",
                "restoring",
                "complete",
                "failed",
                "deferred",
                "abandoned"
              ]
            },
            "reason": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "status"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "id",
        "workspaceId",
        "purpose",
        "status",
        "createdAt",
        "updatedAt",
        "progress"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "backup"
  ],
  "additionalProperties": false
}
Errors
Error body JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "const": "backup_in_progress"
    },
    "backupId": {
      "type": "string"
    }
  },
  "required": [
    "error",
    "backupId"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Declared idempotent
GET/v1/workspaces/{workspaceSlug}/backups

Page retained workspace backups, newest first, without download grants.

CLI
bento backup list
Scope
ws:{workspaceSlug}:admin
Request
No JSON request body
Query
Query parameters JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "cursor": {
      "type": "string",
      "minLength": 1
    },
    "limit": {
      "default": 50,
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "additionalProperties": false
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "workspaceId": {
            "type": "string"
          },
          "purpose": {
            "type": "string",
            "enum": [
              "export",
              "archive",
              "reprovision"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "ready",
              "failed",
              "deleting"
            ]
          },
          "phase": {
            "type": "string",
            "enum": [
              "metadata",
              "files",
              "upload",
              "finalizing"
            ]
          },
          "createdAt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "updatedAt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "startedAt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "completedAt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "expiresAt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "progress": {
            "type": "object",
            "properties": {
              "processedFiles": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "processedRecords": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "capturedBytes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "uploadedBytes": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "warningCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "warningSummary": {
                "maxItems": 32,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    },
                    "count": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "code",
                    "count"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "processedFiles",
              "processedRecords",
              "capturedBytes",
              "uploadedBytes",
              "warningCount",
              "warningSummary"
            ],
            "additionalProperties": false
          },
          "completeness": {
            "type": "string",
            "enum": [
              "complete",
              "partial"
            ]
          },
          "bytes": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "vm_unavailable",
                  "interrupted",
                  "stalled",
                  "capture_failed",
                  "upload_failed",
                  "object_mismatch",
                  "cleanup_failed"
                ]
              },
              "message": {
                "type": "string",
                "maxLength": 1024
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false
          },
          "lifecycle": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "reprovision",
                  "archive",
                  "servicing"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "capturing",
                  "restoring",
                  "complete",
                  "failed",
                  "deferred",
                  "abandoned"
                ]
              },
              "reason": {
                "type": "string"
              }
            },
            "required": [
              "kind",
              "status"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "workspaceId",
          "purpose",
          "status",
          "createdAt",
          "updatedAt",
          "progress"
        ],
        "additionalProperties": false
      }
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "items",
    "nextCursor"
  ],
  "additionalProperties": false
}
Errors
Opaque collection cursor is malformed or bound to another walk (400)
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "const": "invalid_cursor"
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false,
  "description": "Opaque collection cursor is malformed or bound to another walk (400)"
}
Delivery
Standard response
Retry
Not declared idempotent
GET/v1/workspaces/{workspaceSlug}/backups/{backupId}

Read durable capture status, counters, and warning summary.

CLI
bento backup get --backup-id example
Scope
ws:{workspaceSlug}:admin
Request
No JSON request body
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "backup": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "workspaceId": {
          "type": "string"
        },
        "purpose": {
          "type": "string",
          "enum": [
            "export",
            "archive",
            "reprovision"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "queued",
            "running",
            "ready",
            "failed",
            "deleting"
          ]
        },
        "phase": {
          "type": "string",
          "enum": [
            "metadata",
            "files",
            "upload",
            "finalizing"
          ]
        },
        "createdAt": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "updatedAt": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "startedAt": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "completedAt": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "expiresAt": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "progress": {
          "type": "object",
          "properties": {
            "processedFiles": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "processedRecords": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "capturedBytes": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "uploadedBytes": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "warningCount": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "warningSummary": {
              "maxItems": 32,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "code",
                  "count"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "processedFiles",
            "processedRecords",
            "capturedBytes",
            "uploadedBytes",
            "warningCount",
            "warningSummary"
          ],
          "additionalProperties": false
        },
        "completeness": {
          "type": "string",
          "enum": [
            "complete",
            "partial"
          ]
        },
        "bytes": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "sha256": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "error": {
          "type": "object",
          "properties": {
            "code": {
              "type": "string",
              "enum": [
                "vm_unavailable",
                "interrupted",
                "stalled",
                "capture_failed",
                "upload_failed",
                "object_mismatch",
                "cleanup_failed"
              ]
            },
            "message": {
              "type": "string",
              "maxLength": 1024
            }
          },
          "required": [
            "code",
            "message"
          ],
          "additionalProperties": false
        },
        "lifecycle": {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "enum": [
                "reprovision",
                "archive",
                "servicing"
              ]
            },
            "status": {
              "type": "string",
              "enum": [
                "capturing",
                "restoring",
                "complete",
                "failed",
                "deferred",
                "abandoned"
              ]
            },
            "reason": {
              "type": "string"
            }
          },
          "required": [
            "kind",
            "status"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "id",
        "workspaceId",
        "purpose",
        "status",
        "createdAt",
        "updatedAt",
        "progress"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "backup"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Not declared idempotent
POST/v1/workspaces/{workspaceSlug}/backups/{backupId}/download

Mint a fresh short-lived private download URL for a ready backup.

CLI
bento backup download --backup-id example
Scope
ws:{workspaceSlug}:admin
Request
No request body
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri"
    },
    "expiresAt": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "filename": {
      "type": "string"
    },
    "bytes": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    },
    "sha256": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    }
  },
  "required": [
    "url",
    "expiresAt",
    "filename",
    "bytes",
    "sha256"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Not declared idempotent
DELETE/v1/workspaces/{workspaceSlug}/backups/{backupId}

Cancel capture and delete its artifact; returns 202 while cleanup is pending.

CLI
bento backup delete --backup-id example
Scope
ws:{workspaceSlug}:admin
Request
No JSON request body
Response
  • 200
    200 response JSON schema
    {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "deleted": {
          "type": "boolean"
        },
        "emptyDriveOnNextStart": {
          "type": "boolean"
        }
      },
      "required": [
        "deleted",
        "emptyDriveOnNextStart"
      ],
      "additionalProperties": false
    }
  • 202
    202 response JSON schema
    {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "object",
      "properties": {
        "deleted": {
          "type": "boolean"
        },
        "emptyDriveOnNextStart": {
          "type": "boolean"
        }
      },
      "required": [
        "deleted",
        "emptyDriveOnNextStart"
      ],
      "additionalProperties": false
    }
Delivery
Standard response
Retry
Declared idempotent

Identity

31 operations
POST/v1/workspaces

Create a workspace and begin asynchronous provisioning.

CLI
bento workspace create --body-file request.json
Scope
api_key
Request
Request JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    }
  },
  "required": [
    "slug",
    "name"
  ]
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "const": "provisioning"
    }
  },
  "required": [
    "workspaceId",
    "slug",
    "status"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Not declared idempotent
POST/v1/workspaces/{workspaceSlug}/reprovision

Replace an owner-managed workspace runtime after an explicit recovery request.

CLI
bento workspace reprovision
Scope
ws:{workspaceSlug}:admin
Request
No request body
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "const": "backup_pending"
        },
        "workspaceId": {
          "type": "string"
        },
        "backupId": {
          "type": "string"
        }
      },
      "required": [
        "status",
        "workspaceId",
        "backupId"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "const": "provisioning"
        },
        "workspaceId": {
          "type": "string"
        },
        "scheduled": {
          "type": "boolean"
        },
        "oldVmName": {
          "type": "string"
        },
        "imageRef": {
          "type": "string"
        }
      },
      "required": [
        "status",
        "workspaceId",
        "scheduled"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "const": "deferred"
        },
        "reason": {
          "type": "string",
          "const": "active_workspace_work"
        },
        "activeAgentSessions": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "activeTrainJobs": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "status",
        "reason",
        "activeAgentSessions",
        "activeTrainJobs"
      ],
      "additionalProperties": false
    }
  ]
}
Delivery
Standard response
Retry
Not declared idempotent
DELETE/v1/workspaces/{workspaceSlug}

Permanently delete a workspace after confirming its current slug.

CLI
bento workspace delete --confirmation example
Scope
ws:{workspaceSlug}:admin
Request
Request JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "confirmation": {
      "type": "string"
    }
  },
  "required": [
    "confirmation"
  ]
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "deleted": {
      "type": "boolean",
      "const": true
    }
  },
  "required": [
    "deleted"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Not declared idempotent
PATCH/v1/workspaces/{workspaceSlug}

Update workspace configuration, suspension, or its acknowledged public address.

CLI
bento workspace update --body-file request.json
Scope
ws:{workspaceSlug}:admin
Request
Request JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "publicUrlBreakAcknowledged": {
      "type": "boolean",
      "const": true
    },
    "defaultModel": {
      "type": "string",
      "enum": [
        "frontier",
        "balanced",
        "economy",
        "openai-frontier",
        "openai-max",
        "anthropic-frontier",
        "anthropic-max",
        "anthropic-balanced",
        "google-recommended",
        "google-balanced"
      ]
    },
    "suspended": {
      "type": "boolean"
    },
    "suspensionReason": {
      "type": "string"
    }
  },
  "additionalProperties": false
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace": {
      "allOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "slug": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "status": {
              "type": "string",
              "enum": [
                "provisioning",
                "active",
                "unhealthy",
                "archived",
                "retired",
                "deleted"
              ]
            },
            "servicingStatus": {
              "type": "string",
              "enum": [
                "active",
                "paused",
                "banned"
              ]
            },
            "servicingPauseReason": {
              "type": "string",
              "enum": [
                "subscription",
                "storage"
              ]
            },
            "servicingStatusChangedAt": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "driveRecovery": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "state": {
                      "type": "string",
                      "const": "pending"
                    }
                  },
                  "required": [
                    "state"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "state": {
                      "type": "string",
                      "const": "available"
                    },
                    "expiresAt": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "state"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "state": {
                      "type": "string",
                      "const": "unavailable"
                    }
                  },
                  "required": [
                    "state"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            "role": {
              "type": "string",
              "enum": [
                "owner",
                "editor",
                "viewer"
              ]
            },
            "billingUserId": {
              "type": "string"
            },
            "usableStorageGb": {
              "type": "number",
              "minimum": 0
            },
            "funding": {
              "type": "object",
              "properties": {
                "plan": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "starter",
                        "pro",
                        "max"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "active": {
                  "type": "boolean"
                },
                "trialEndsAt": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "plan",
                "active"
              ],
              "additionalProperties": false
            },
            "creditRecovery": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "subscribe",
                    "topup"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "credits": {
              "type": "object",
              "properties": {
                "payerName": {
                  "type": "string"
                },
                "monthly": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "remainingPercent": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100
                        },
                        "resetsAt": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "remainingPercent"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "reserve": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "remainingPercent": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100
                        },
                        "share": {
                          "type": "number",
                          "exclusiveMinimum": 0,
                          "maximum": 1
                        }
                      },
                      "required": [
                        "remainingPercent",
                        "share"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "payerName",
                "monthly",
                "reserve"
              ],
              "additionalProperties": false
            },
            "defaultTier": {
              "type": "object",
              "properties": {
                "configured": {
                  "type": "string",
                  "enum": [
                    "frontier",
                    "balanced",
                    "economy",
                    "openai-frontier",
                    "openai-max",
                    "anthropic-frontier",
                    "anthropic-max",
                    "anthropic-balanced",
                    "google-recommended",
                    "google-balanced"
                  ]
                },
                "effective": {
                  "type": "string",
                  "enum": [
                    "frontier",
                    "balanced",
                    "economy",
                    "openai-frontier",
                    "openai-max",
                    "anthropic-frontier",
                    "anthropic-max",
                    "anthropic-balanced",
                    "google-recommended",
                    "google-balanced"
                  ]
                }
              },
              "required": [
                "effective"
              ],
              "additionalProperties": false
            },
            "duetName": {
              "type": "string",
              "minLength": 1,
              "maxLength": 32,
              "pattern": "^[^[\\]<>`\\p{Cc}]*$"
            },
            "onboardedAt": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "onboarding": {
              "type": "object",
              "properties": {
                "starterAgents": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "starterAgents"
              ],
              "additionalProperties": false
            },
            "adminMessage": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "slug",
            "name",
            "status",
            "servicingStatus",
            "role",
            "billingUserId",
            "usableStorageGb",
            "funding",
            "creditRecovery",
            "defaultTier"
          ],
          "additionalProperties": false
        },
        {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "suspended": {
                  "type": "boolean",
                  "const": true
                },
                "suspendedAt": {
                  "type": "number"
                },
                "suspensionReason": {
                  "type": "string"
                }
              },
              "required": [
                "suspended",
                "suspendedAt"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "suspended": {
                  "type": "boolean",
                  "const": false
                }
              },
              "required": [
                "suspended"
              ],
              "additionalProperties": false
            }
          ]
        }
      ]
    }
  },
  "required": [
    "workspace"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Not declared idempotent
GET/v1/workspaces/{workspaceSlug}

Read the workspace identity, configuration and suspension state.

CLI
bento workspace get
Scope
ws:{workspaceSlug}:admin
Request
No JSON request body
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspace": {
      "allOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "slug": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "status": {
              "type": "string",
              "enum": [
                "provisioning",
                "active",
                "unhealthy",
                "archived",
                "retired",
                "deleted"
              ]
            },
            "servicingStatus": {
              "type": "string",
              "enum": [
                "active",
                "paused",
                "banned"
              ]
            },
            "servicingPauseReason": {
              "type": "string",
              "enum": [
                "subscription",
                "storage"
              ]
            },
            "servicingStatusChangedAt": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "driveRecovery": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "state": {
                      "type": "string",
                      "const": "pending"
                    }
                  },
                  "required": [
                    "state"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "state": {
                      "type": "string",
                      "const": "available"
                    },
                    "expiresAt": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "state"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "state": {
                      "type": "string",
                      "const": "unavailable"
                    }
                  },
                  "required": [
                    "state"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            "role": {
              "type": "string",
              "enum": [
                "owner",
                "editor",
                "viewer"
              ]
            },
            "billingUserId": {
              "type": "string"
            },
            "usableStorageGb": {
              "type": "number",
              "minimum": 0
            },
            "funding": {
              "type": "object",
              "properties": {
                "plan": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "starter",
                        "pro",
                        "max"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "active": {
                  "type": "boolean"
                },
                "trialEndsAt": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "plan",
                "active"
              ],
              "additionalProperties": false
            },
            "creditRecovery": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "subscribe",
                    "topup"
                  ]
                },
                {
                  "type": "null"
                }
              ]
            },
            "credits": {
              "type": "object",
              "properties": {
                "payerName": {
                  "type": "string"
                },
                "monthly": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "remainingPercent": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100
                        },
                        "resetsAt": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "remainingPercent"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "reserve": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "remainingPercent": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100
                        },
                        "share": {
                          "type": "number",
                          "exclusiveMinimum": 0,
                          "maximum": 1
                        }
                      },
                      "required": [
                        "remainingPercent",
                        "share"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "payerName",
                "monthly",
                "reserve"
              ],
              "additionalProperties": false
            },
            "defaultTier": {
              "type": "object",
              "properties": {
                "configured": {
                  "type": "string",
                  "enum": [
                    "frontier",
                    "balanced",
                    "economy",
                    "openai-frontier",
                    "openai-max",
                    "anthropic-frontier",
                    "anthropic-max",
                    "anthropic-balanced",
                    "google-recommended",
                    "google-balanced"
                  ]
                },
                "effective": {
                  "type": "string",
                  "enum": [
                    "frontier",
                    "balanced",
                    "economy",
                    "openai-frontier",
                    "openai-max",
                    "anthropic-frontier",
                    "anthropic-max",
                    "anthropic-balanced",
                    "google-recommended",
                    "google-balanced"
                  ]
                }
              },
              "required": [
                "effective"
              ],
              "additionalProperties": false
            },
            "duetName": {
              "type": "string",
              "minLength": 1,
              "maxLength": 32,
              "pattern": "^[^[\\]<>`\\p{Cc}]*$"
            },
            "onboardedAt": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            },
            "onboarding": {
              "type": "object",
              "properties": {
                "starterAgents": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "starterAgents"
              ],
              "additionalProperties": false
            },
            "adminMessage": {
              "type": "string"
            }
          },
          "required": [
            "id",
            "slug",
            "name",
            "status",
            "servicingStatus",
            "role",
            "billingUserId",
            "usableStorageGb",
            "funding",
            "creditRecovery",
            "defaultTier"
          ],
          "additionalProperties": false
        },
        {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "suspended": {
                  "type": "boolean",
                  "const": true
                },
                "suspendedAt": {
                  "type": "number"
                },
                "suspensionReason": {
                  "type": "string"
                }
              },
              "required": [
                "suspended",
                "suspendedAt"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "suspended": {
                  "type": "boolean",
                  "const": false
                }
              },
              "required": [
                "suspended"
              ],
              "additionalProperties": false
            }
          ]
        }
      ]
    }
  },
  "required": [
    "workspace"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Not declared idempotent
GET/v1/workspaces/{workspaceSlug}/members

List current workspace members and the designated payer. search keeps a member only when every word starts a word of their name or email, so adding a word only narrows the results.

CLI
bento member list
Scope
ws:{workspaceSlug}:sessions or ws:{workspaceSlug}:files:read
Request
No JSON request body
Query
Query parameters JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "cursor": {
      "type": "string",
      "minLength": 1
    },
    "limit": {
      "default": 50,
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "search": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32
    }
  },
  "additionalProperties": false
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email",
            "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": [
              "owner",
              "editor",
              "viewer"
            ]
          },
          "isBillingUser": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "email",
          "role",
          "isBillingUser"
        ],
        "additionalProperties": false
      }
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "items",
    "nextCursor"
  ],
  "additionalProperties": false
}
Errors
Opaque collection cursor is malformed or bound to another walk (400)
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "const": "invalid_cursor"
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false,
  "description": "Opaque collection cursor is malformed or bound to another walk (400)"
}
Delivery
Standard response
Retry
Not declared idempotent
PATCH/v1/workspaces/{workspaceSlug}/members/{memberId}

Change a member role while preserving payer and final-owner invariants.

CLI
bento member update --member-id example --role owner
Scope
ws:{workspaceSlug}:admin
Request
Request JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "role": {
      "type": "string",
      "enum": [
        "owner",
        "editor",
        "viewer"
      ]
    }
  },
  "required": [
    "role"
  ]
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "member": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "email": {
          "type": "string",
          "format": "email",
          "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
        },
        "name": {
          "type": "string"
        },
        "role": {
          "type": "string",
          "enum": [
            "owner",
            "editor",
            "viewer"
          ]
        },
        "isBillingUser": {
          "type": "boolean"
        }
      },
      "required": [
        "id",
        "email",
        "role",
        "isBillingUser"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "member"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Not declared idempotent
DELETE/v1/workspaces/{workspaceSlug}/members/{memberId}

Remove a member after payer and final-owner checks pass.

CLI
bento member delete --member-id example
Scope
ws:{workspaceSlug}:admin
Request
No JSON request body
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "removed": {
      "type": "boolean"
    }
  },
  "required": [
    "removed"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Not declared idempotent
POST/v1/workspaces/{workspaceSlug}/leave

Leave the workspace after payer and final-owner checks pass.

CLI
bento workspace leave
Scope
ws:{workspaceSlug}:sessions or ws:{workspaceSlug}:files:read
Request
No request body
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "removed": {
      "type": "boolean"
    }
  },
  "required": [
    "removed"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Not declared idempotent
GET/v1/whoami

Inspect the authenticated user, workspace memberships, and granted scopes.

CLI
bento whoami
Scope
api_key
Request
No JSON request body
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "user": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "email": {
          "type": "string",
          "format": "email",
          "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
        },
        "name": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "email"
      ],
      "additionalProperties": false
    },
    "workspaces": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "provisioning",
              "active",
              "unhealthy",
              "archived",
              "retired",
              "deleted"
            ]
          },
          "servicingStatus": {
            "type": "string",
            "enum": [
              "active",
              "paused",
              "banned"
            ]
          },
          "servicingPauseReason": {
            "type": "string",
            "enum": [
              "subscription",
              "storage"
            ]
          },
          "servicingStatusChangedAt": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "driveRecovery": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "state": {
                    "type": "string",
                    "const": "pending"
                  }
                },
                "required": [
                  "state"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "state": {
                    "type": "string",
                    "const": "available"
                  },
                  "expiresAt": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "state"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "state": {
                    "type": "string",
                    "const": "unavailable"
                  }
                },
                "required": [
                  "state"
                ],
                "additionalProperties": false
              }
            ]
          },
          "role": {
            "type": "string",
            "enum": [
              "owner",
              "editor",
              "viewer"
            ]
          },
          "billingUserId": {
            "type": "string"
          },
          "usableStorageGb": {
            "type": "number",
            "minimum": 0
          },
          "funding": {
            "type": "object",
            "properties": {
              "plan": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "starter",
                      "pro",
                      "max"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "active": {
                "type": "boolean"
              },
              "trialEndsAt": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "plan",
              "active"
            ],
            "additionalProperties": false
          },
          "creditRecovery": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "subscribe",
                  "topup"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "credits": {
            "type": "object",
            "properties": {
              "payerName": {
                "type": "string"
              },
              "monthly": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "remainingPercent": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "resetsAt": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "remainingPercent"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reserve": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "remainingPercent": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "share": {
                        "type": "number",
                        "exclusiveMinimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "remainingPercent",
                      "share"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "payerName",
              "monthly",
              "reserve"
            ],
            "additionalProperties": false
          },
          "defaultTier": {
            "type": "object",
            "properties": {
              "configured": {
                "type": "string",
                "enum": [
                  "frontier",
                  "balanced",
                  "economy",
                  "openai-frontier",
                  "openai-max",
                  "anthropic-frontier",
                  "anthropic-max",
                  "anthropic-balanced",
                  "google-recommended",
                  "google-balanced"
                ]
              },
              "effective": {
                "type": "string",
                "enum": [
                  "frontier",
                  "balanced",
                  "economy",
                  "openai-frontier",
                  "openai-max",
                  "anthropic-frontier",
                  "anthropic-max",
                  "anthropic-balanced",
                  "google-recommended",
                  "google-balanced"
                ]
              }
            },
            "required": [
              "effective"
            ],
            "additionalProperties": false
          },
          "duetName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 32,
            "pattern": "^[^[\\]<>`\\p{Cc}]*$"
          },
          "onboardedAt": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "onboarding": {
            "type": "object",
            "properties": {
              "starterAgents": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "starterAgents"
            ],
            "additionalProperties": false
          },
          "adminMessage": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "slug",
          "name",
          "status",
          "servicingStatus",
          "role",
          "billingUserId",
          "usableStorageGb",
          "funding",
          "creditRecovery",
          "defaultTier"
        ],
        "additionalProperties": false
      }
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "versions": {
      "type": "object",
      "properties": {
        "api": {
          "type": "number",
          "const": 1
        }
      },
      "required": [
        "api"
      ],
      "additionalProperties": false
    },
    "internalAdmin": {
      "type": "boolean"
    },
    "credential": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "user",
            "system_vm",
            "app",
            "impersonation",
            "browser_session"
          ]
        }
      },
      "required": [
        "kind"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "user",
    "workspaces",
    "scopes",
    "versions",
    "internalAdmin"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Not declared idempotent
GET/v1/workspaces/{workspaceSlug}/anchors

List path anchors and their current health.

CLI
bento anchor list
Scope
ws:{workspaceSlug}:files:read
Request
No JSON request body
Query
Query parameters JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "cursor": {
      "type": "string",
      "minLength": 1
    },
    "limit": {
      "default": 50,
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "additionalProperties": false
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "workspaceId": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "kind": {
            "type": "string",
            "enum": [
              "app",
              "agent",
              "publish",
              "share-root",
              "share-mount"
            ]
          },
          "settings": {},
          "state": {
            "type": "string",
            "enum": [
              "active",
              "broken",
              "orphaned"
            ]
          },
          "createdAt": {
            "type": "number"
          },
          "updatedAt": {
            "type": "number"
          }
        },
        "required": [
          "id",
          "workspaceId",
          "path",
          "kind",
          "settings",
          "state",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false
      }
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "items",
    "nextCursor"
  ],
  "additionalProperties": false
}
Errors
Opaque collection cursor is malformed or bound to another walk (400)
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "const": "invalid_cursor"
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false,
  "description": "Opaque collection cursor is malformed or bound to another walk (400)"
}
Delivery
Standard response
Retry
Not declared idempotent
POST/v1/workspaces/{workspaceSlug}/anchors/{anchorId}/reanchor

Repair a broken anchor after its workspace path moves.

CLI
bento anchor reanchor --anchor-id example --path notes/plan.md
Scope
ws:{workspaceSlug}:apps or ws:{workspaceSlug}:publish or ws:{workspaceSlug}:share
Request
Request JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "path": {
      "type": "string"
    }
  },
  "required": [
    "path"
  ]
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "anchor": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "workspaceId": {
          "type": "string"
        },
        "path": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "app",
            "agent",
            "publish",
            "share-root",
            "share-mount"
          ]
        },
        "settings": {},
        "state": {
          "type": "string",
          "enum": [
            "active",
            "broken",
            "orphaned"
          ]
        },
        "createdAt": {
          "type": "number"
        },
        "updatedAt": {
          "type": "number"
        }
      },
      "required": [
        "id",
        "workspaceId",
        "path",
        "kind",
        "settings",
        "state",
        "createdAt",
        "updatedAt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "anchor"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Not declared idempotent
GET/v1/workspaces/{workspaceSlug}/audit

Page through newest-first workspace audit events.

CLI
bento audit list
Scope
ws:{workspaceSlug}:files:read
Request
No JSON request body
Query
Query parameters JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "cursor": {
      "type": "string",
      "minLength": 1
    },
    "limit": {
      "default": 50,
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "additionalProperties": false
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "event": {
            "type": "string"
          },
          "actorId": {
            "type": "string"
          },
          "at": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "provenance": {
            "type": "object",
            "properties": {
              "action": {
                "type": "string"
              },
              "activeAgentSessions": {
                "type": "number"
              },
              "activeTrainJobs": {
                "type": "number"
              },
              "actor": {
                "type": "string"
              },
              "acknowledged": {
                "type": "boolean"
              },
              "agentVersion": {
                "type": "string"
              },
              "anchorId": {
                "type": "string"
              },
              "appId": {
                "type": "string"
              },
              "appSlug": {
                "type": "string"
              },
              "agentId": {
                "type": "string"
              },
              "archiveStorageId": {
                "type": "string"
              },
              "withoutArchiveCause": {
                "type": "string"
              },
              "lifecycleBackupId": {
                "type": "string"
              },
              "breaksPublicUrls": {
                "type": "boolean"
              },
              "canonicalEmail": {
                "type": "string"
              },
              "clientName": {
                "type": "string"
              },
              "candidates": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "fromPath": {
                      "type": "string"
                    },
                    "toPath": {
                      "type": "string"
                    },
                    "confidence": {
                      "type": "number"
                    },
                    "inodeMatch": {
                      "type": "boolean"
                    },
                    "markerMatch": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "fromPath",
                    "toPath",
                    "confidence",
                    "inodeMatch",
                    "markerMatch"
                  ],
                  "additionalProperties": false
                }
              },
              "conflictingAnchorId": {
                "type": "string"
              },
              "conflictingPath": {
                "type": "string"
              },
              "confidence": {
                "type": "number"
              },
              "cpu": {
                "type": "number"
              },
              "consecutiveMissingPolls": {
                "type": "number"
              },
              "deleted": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "deviceCode": {
                "type": "string"
              },
              "deviceId": {
                "type": "string"
              },
              "deviceName": {
                "type": "string"
              },
              "defaultModelId": {
                "type": "string"
              },
              "tier": {
                "type": "string",
                "enum": [
                  "frontier",
                  "balanced",
                  "economy",
                  "openai-frontier",
                  "openai-max",
                  "anthropic-frontier",
                  "anthropic-max",
                  "anthropic-balanced",
                  "google-recommended",
                  "google-balanced"
                ]
              },
              "expiresAt": {
                "type": "number"
              },
              "fromPath": {
                "type": "string"
              },
              "fromWorkspaceId": {
                "type": "string"
              },
              "runtimeVersion": {
                "type": "string"
              },
              "gatewayVersion": {
                "type": "string"
              },
              "generation": {
                "type": "string"
              },
              "imageRef": {
                "type": "string"
              },
              "imageVersion": {
                "type": "string"
              },
              "inodeMatch": {
                "type": "boolean"
              },
              "installMode": {
                "type": "string",
                "enum": [
                  "subscribe",
                  "clone_once"
                ]
              },
              "kind": {
                "type": "string",
                "enum": [
                  "app",
                  "agent",
                  "publish",
                  "share-root",
                  "share-mount",
                  "file",
                  "folder"
                ]
              },
              "lastHeartbeatAt": {
                "type": "number"
              },
              "listingId": {
                "type": "string"
              },
              "listingSlug": {
                "type": "string"
              },
              "markerMatch": {
                "type": "boolean"
              },
              "memory": {
                "type": "string"
              },
              "memberUserId": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "newBillingUserId": {
                "type": "string"
              },
              "mode": {
                "type": "string",
                "enum": [
                  "read",
                  "write"
                ]
              },
              "mountPath": {
                "type": "string"
              },
              "newSlug": {
                "type": "string"
              },
              "previousStatus": {
                "type": "string"
              },
              "oldPrefixes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "oldBillingUserId": {
                "type": "string"
              },
              "oldSlug": {
                "type": "string"
              },
              "parentShareId": {
                "type": "string"
              },
              "path": {
                "type": "string"
              },
              "prefix": {
                "type": "string"
              },
              "credentialId": {
                "type": "string"
              },
              "purpose": {
                "type": "string",
                "enum": [
                  "managed",
                  "exported"
                ]
              },
              "prefixes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "previousVmName": {
                "type": "string"
              },
              "publishId": {
                "type": "string"
              },
              "reason": {
                "type": "string"
              },
              "revokedShareIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "role": {
                "type": "string",
                "enum": [
                  "owner",
                  "editor",
                  "viewer"
                ]
              },
              "oldRole": {
                "type": "string",
                "enum": [
                  "owner",
                  "editor",
                  "viewer"
                ]
              },
              "scopes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "sessionId": {
                "type": "string"
              },
              "shareId": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "subscriptionId": {
                "type": "string"
              },
              "targetEmail": {
                "type": "string"
              },
              "toPath": {
                "type": "string"
              },
              "toWorkspaceId": {
                "type": "string"
              },
              "userCode": {
                "type": "string"
              },
              "visibility": {
                "type": "string",
                "enum": [
                  "folder",
                  "public"
                ]
              },
              "vmName": {
                "type": "string"
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "event",
          "actorId",
          "at"
        ],
        "additionalProperties": false
      }
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "items",
    "nextCursor"
  ],
  "additionalProperties": false
}
Errors
Opaque collection cursor is malformed or bound to another walk (400)
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "const": "invalid_cursor"
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false,
  "description": "Opaque collection cursor is malformed or bound to another walk (400)"
}
Delivery
Standard response
Retry
Not declared idempotent
GET/v1/workspaces/{workspaceSlug}/telemetry

Read the workspace VM CPU, memory, and disk telemetry history.

CLI
bento telemetry get
Scope
workspace_member
Request
No JSON request body
Query
Query parameters JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "sinceAt": {
      "type": "number",
      "minimum": 0
    }
  }
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "samples": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "at": {
            "type": "number",
            "minimum": 0
          },
          "cpuPct": {
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "memUsedMb": {
            "type": "number",
            "minimum": 0
          },
          "memTotalMb": {
            "type": "number",
            "minimum": 0
          },
          "diskUsedMb": {
            "type": "number",
            "minimum": 0
          },
          "diskTotalMb": {
            "type": "number",
            "minimum": 0
          }
        },
        "required": [
          "at"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "samples"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Not declared idempotent
GET/v1/user/profile

Read the signed-in user profile.

CLI
bento user profile get
Scope
human
Request
No JSON request body
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "format": "email",
      "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
    },
    "firstName": {
      "type": "string"
    },
    "lastName": {
      "type": "string"
    },
    "name": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "email"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Not declared idempotent
PATCH/v1/user/profile

Update the signed-in user profile.

CLI
bento user profile update
Scope
human
Request
Request JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "firstName": {
      "type": "string",
      "maxLength": 100
    },
    "lastName": {
      "type": "string",
      "maxLength": 100
    }
  }
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "format": "email",
      "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
    },
    "firstName": {
      "type": "string"
    },
    "lastName": {
      "type": "string"
    },
    "name": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "email"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Not declared idempotent
GET/v1/user/api-keys

List ordinary API keys without returning their secrets.

CLI
bento user api-key list
Scope
human
Request
No JSON request body
Query
Query parameters JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "cursor": {
      "type": "string",
      "minLength": 1
    },
    "limit": {
      "default": 50,
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "additionalProperties": false
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "prefix": {
            "type": "string"
          },
          "createdAt": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "expiresAt": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "lastUsedAt": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "revokedAt": {
            "type": "number",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "id",
          "prefix",
          "createdAt"
        ],
        "additionalProperties": false
      }
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "items",
    "nextCursor"
  ],
  "additionalProperties": false
}
Errors
Opaque collection cursor is malformed or bound to another walk (400)
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "const": "invalid_cursor"
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false,
  "description": "Opaque collection cursor is malformed or bound to another walk (400)"
}
Delivery
Standard response
Retry
Not declared idempotent
POST/v1/user/api-keys

Issue a human identity key and reveal its secret once.

CLI
bento user api-key create --body-file request.json
Scope
human
Request
Request JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1
    },
    "expiresAt": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "name"
  ],
  "additionalProperties": false
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "key": {
      "type": "string"
    },
    "record": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "prefix": {
          "type": "string"
        },
        "createdAt": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "expiresAt": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "lastUsedAt": {
          "type": "number",
          "exclusiveMinimum": 0
        },
        "revokedAt": {
          "type": "number",
          "exclusiveMinimum": 0
        }
      },
      "required": [
        "id",
        "prefix",
        "createdAt"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "key",
    "record"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Not declared idempotent
DELETE/v1/user/api-keys/{apiKeyId}

Revoke one ordinary API key owned by the signed-in user.

CLI
bento user api-key revoke --api-key-id example
Scope
human
Request
No JSON request body
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "prefix": {
      "type": "string"
    },
    "revokedAt": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "prefix",
    "revokedAt"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Declared idempotent
PUT/v1/user/push-devices/{installationId}

Register or replace the signed-in user push device.

Scope
human
Request
Request JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "expo_push_token": {
      "type": "string",
      "minLength": 1
    },
    "platform": {
      "type": "string",
      "enum": [
        "ios",
        "android"
      ]
    },
    "app_version": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "expo_push_token",
    "platform",
    "app_version"
  ],
  "additionalProperties": false
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "const": true
    },
    "installationId": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "ok",
    "installationId"
  ],
  "additionalProperties": false
}
Errors
Error body JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "enum": [
        "human_credential_required",
        "invalid_request"
      ]
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Declared idempotent
DELETE/v1/user/push-devices/{installationId}

Remove one signed-in user push device.

Scope
human
Request
No JSON request body
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "const": true
    },
    "installationId": {
      "type": "string",
      "minLength": 1
    }
  },
  "required": [
    "ok",
    "installationId"
  ],
  "additionalProperties": false
}
Errors
Error body JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "const": "human_credential_required"
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Declared idempotent
DELETE/v1/user/credential

Revoke the human credential that makes this request.

Scope
human
Request
No JSON request body
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "revokedAt": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "revokedAt"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Declared idempotent
POST/v1/user/handoffs

Create a single-use browser handoff URL for the signed-in user.

Scope
human
Request
Request JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "surface": {
          "type": "string",
          "const": "app_shell"
        },
        "app": {
          "type": "object",
          "properties": {
            "platform": {
              "type": "string",
              "enum": [
                "ios",
                "android"
              ]
            },
            "store_country": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^[A-Z]{2}$"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "platform",
            "store_country"
          ],
          "additionalProperties": false
        },
        "return_to": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2000
        }
      },
      "required": [
        "surface",
        "app",
        "return_to"
      ],
      "additionalProperties": false
    },
    {
      "type": "object",
      "properties": {
        "surface": {
          "type": "string",
          "const": "browser"
        },
        "return_to": {
          "type": "string",
          "minLength": 1,
          "maxLength": 2000
        }
      },
      "required": [
        "surface",
        "return_to"
      ],
      "additionalProperties": false
    }
  ]
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri"
    },
    "expires_in": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "url",
    "expires_in"
  ],
  "additionalProperties": false
}
Errors
Error body JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "enum": [
        "human_credential_required",
        "invalid_request",
        "unauthorized"
      ]
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Not declared idempotent
POST/v1/user/machines

Register a non-secret sync machine for the signed-in user.

CLI
bento user machine create --body-file request.json
Scope
human
Request
Request JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1
    },
    "syncthingDeviceId": {
      "type": "string",
      "pattern": "^[A-Z2-7]{7}(-[A-Z2-7]{7})*$"
    }
  },
  "required": [
    "name",
    "syncthingDeviceId"
  ],
  "additionalProperties": false
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "machineId": {
      "type": "string",
      "minLength": 1
    },
    "name": {
      "type": "string"
    },
    "syncthingDeviceId": {
      "type": "string",
      "pattern": "^[A-Z2-7]{7}(-[A-Z2-7]{7})*$"
    },
    "createdAt": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "lastUsedAt": {
      "type": "number",
      "exclusiveMinimum": 0
    },
    "removedAt": {
      "type": "number",
      "exclusiveMinimum": 0
    }
  },
  "required": [
    "machineId",
    "name",
    "syncthingDeviceId",
    "createdAt",
    "lastUsedAt"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Declared idempotent
GET/v1/user/machines

List the signed-in user’s sync machines with creation and last use.

CLI
bento user machine list
Scope
human
Request
No JSON request body
Query
Query parameters JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "cursor": {
      "type": "string",
      "minLength": 1
    },
    "limit": {
      "default": 50,
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "additionalProperties": false
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "machineId": {
            "type": "string",
            "minLength": 1
          },
          "name": {
            "type": "string"
          },
          "syncthingDeviceId": {
            "type": "string",
            "pattern": "^[A-Z2-7]{7}(-[A-Z2-7]{7})*$"
          },
          "createdAt": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "lastUsedAt": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "removedAt": {
            "type": "number",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "machineId",
          "name",
          "syncthingDeviceId",
          "createdAt",
          "lastUsedAt"
        ],
        "additionalProperties": false
      }
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "items",
    "nextCursor"
  ],
  "additionalProperties": false
}
Errors
Opaque collection cursor is malformed or bound to another walk (400)
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "const": "invalid_cursor"
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false,
  "description": "Opaque collection cursor is malformed or bound to another walk (400)"
}
Delivery
Standard response
Retry
Not declared idempotent
DELETE/v1/user/machines/{machineId}

Remove one sync machine and detach its workspace mirrors.

CLI
bento user machine delete --machine-id example
Scope
human
Request
No JSON request body
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean",
      "const": true
    },
    "machineId": {
      "type": "string",
      "minLength": 1
    },
    "removedAt": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "ok",
    "machineId",
    "removedAt"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Declared idempotent
GET/v1/user/invitations

List pending workspace invitations addressed to the signed-in user.

CLI
bento user invitation list
Scope
human
Request
No JSON request body
Query
Query parameters JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "cursor": {
      "type": "string",
      "minLength": 1
    },
    "limit": {
      "default": 50,
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "additionalProperties": false
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "workspace": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "slug": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "slug"
            ],
            "additionalProperties": false
          },
          "inviter": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "email": {
                    "type": "string",
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  }
                },
                "required": [
                  "email"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "role": {
            "type": "string",
            "enum": [
              "editor",
              "viewer"
            ]
          },
          "expiresAt": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "id",
          "workspace",
          "inviter",
          "role",
          "expiresAt"
        ],
        "additionalProperties": false
      }
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "items",
    "nextCursor"
  ],
  "additionalProperties": false
}
Errors
Opaque collection cursor is malformed or bound to another walk (400)
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "const": "invalid_cursor"
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false,
  "description": "Opaque collection cursor is malformed or bound to another walk (400)"
}
Delivery
Standard response
Retry
Not declared idempotent
POST/v1/user/invitations/{invitationId}/accept

Accept an invitation addressed to the signed-in user and return its workspace.

CLI
bento user invitation accept --invitation-id example
Scope
human
Request
No request body
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string"
    },
    "workspaceSlug": {
      "type": "string"
    }
  },
  "required": [
    "workspaceId",
    "workspaceSlug"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Declared idempotent
POST/v1/workspaces/{workspaceSlug}/invitations

Invite an editor or viewer by canonical email address.

CLI
bento invitation create --body-file request.json
Scope
ws:{workspaceSlug}:members
Request
Request JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
    },
    "role": {
      "description": "Defaults to editor.",
      "type": "string",
      "enum": [
        "editor",
        "viewer"
      ]
    }
  },
  "required": [
    "email"
  ]
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "email": {
      "type": "string",
      "format": "email",
      "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
    },
    "role": {
      "type": "string",
      "enum": [
        "editor",
        "viewer"
      ]
    },
    "expiresAt": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "revokedAt": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    },
    "consumedAt": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "id",
    "email",
    "role",
    "expiresAt"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Not declared idempotent
GET/v1/workspaces/{workspaceSlug}/invitations

List recent invitations for a workspace.

CLI
bento invitation list
Scope
ws:{workspaceSlug}:members
Request
No JSON request body
Query
Query parameters JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "cursor": {
      "type": "string",
      "minLength": 1
    },
    "limit": {
      "default": 50,
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    }
  },
  "additionalProperties": false
}
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email",
            "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
          },
          "role": {
            "type": "string",
            "enum": [
              "editor",
              "viewer"
            ]
          },
          "expiresAt": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "revokedAt": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "consumedAt": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "id",
          "email",
          "role",
          "expiresAt"
        ],
        "additionalProperties": false
      }
    },
    "nextCursor": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "items",
    "nextCursor"
  ],
  "additionalProperties": false
}
Errors
Opaque collection cursor is malformed or bound to another walk (400)
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "const": "invalid_cursor"
    }
  },
  "required": [
    "error"
  ],
  "additionalProperties": false,
  "description": "Opaque collection cursor is malformed or bound to another walk (400)"
}
Delivery
Standard response
Retry
Not declared idempotent
DELETE/v1/workspaces/{workspaceSlug}/invitations/{invitationId}

Revoke an invitation before it is consumed.

CLI
bento invitation revoke --invitation-id example
Scope
ws:{workspaceSlug}:members
Request
No JSON request body
Response
Response JSON schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "revokedAt": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991
    }
  },
  "required": [
    "revokedAt"
  ],
  "additionalProperties": false
}
Delivery
Standard response
Retry
Declared idempotent