Workspace Management Create, configure, and manage workspaces within organizations. Control members, assets, shares, and AI Deep Indexing settings.

Base URL: https://api.fast.io/current/ Auth: Bearer {jwt_token} IDs: 19-digit numeric strings

Workspaces are shared project spaces within an organization. They support file versioning, search, AI chat, and member management. Most workspace endpoints also accept the workspace's folder_name (e.g., my-project) in place of the numeric ID.

Endpoint Summary

Workspace CRUD

MethodEndpointDescription
POST/current/org/{org_id}/create/workspace/Create a workspace
GET/current/workspace/{workspace_id}/details/Get workspace details
POST/current/workspace/{workspace_id}/update/Update workspace settings
DELETE/current/workspace/{workspace_id}/delete/Delete (close) a workspace
POST/current/workspace/{workspace_id}/archive/Archive a workspace
POST/current/workspace/{workspace_id}/unarchive/Unarchive a workspace

Assets

MethodEndpointDescription
GET/current/workspace/assets/List available asset types
GET/current/workspace/{workspace_id}/assets/List workspace assets
POST/current/workspace/{workspace_id}/assets/{asset_name}/Upload/set asset
DELETE/current/workspace/{workspace_id}/assets/{asset_name}/Delete asset
GET/current/workspace/{workspace_id}/assets/{asset_name}/read/Download asset binary
HEAD/current/workspace/{workspace_id}/assets/{asset_name}/read/Get asset metadata headers

Members

MethodEndpointDescription
POST/current/workspace/{workspace_id}/members/{email_or_user_id}/Add member or send invitation
DELETE/current/workspace/{workspace_id}/members/{user_id}/Remove a member
GET/current/workspace/{workspace_id}/members/list/List all members
POST/current/workspace/{workspace_id}/members/join/Self-join by org membership
POST/current/workspace/{workspace_id}/members/join/{invitation_key}/{action}/Join via invitation
DELETE/current/workspace/{workspace_id}/member/Leave workspace (self)
GET/current/workspace/{workspace_id}/member/{member_id}/details/Get member details
POST/current/workspace/{workspace_id}/member/{member_id}/update/Update member role
POST/current/workspace/{workspace_id}/member/{member_id}/transfer_ownership/Transfer ownership

Invitations

MethodEndpointDescription
GET/current/workspace/{workspace_id}/members/invitations/list/List all invitations
GET/current/workspace/{workspace_id}/members/invitations/list/{state}/List invitations by state
POST/current/workspace/{workspace_id}/members/invitation/{invitation_id}/Update an invitation
DELETE/current/workspace/{workspace_id}/members/invitation/{invitation_id}/Delete an invitation

Service Accounts

MethodEndpointDescription
GET/current/workspace/{workspace_id}/service_accounts/List service accounts and the workspace's cap
POST/current/workspace/{workspace_id}/service_accounts/create/Create a service account and its first key
GET/current/workspace/{workspace_id}/service_accounts/{service_account_id}/details/Get one service account and its keys
POST/current/workspace/{workspace_id}/service_accounts/{service_account_id}/update/Rename or change role
POST/current/workspace/{workspace_id}/service_accounts/{service_account_id}/disable/Disable (every key stops)
POST/current/workspace/{workspace_id}/service_accounts/{service_account_id}/enable/Enable again
DELETE/current/workspace/{workspace_id}/service_accounts/{service_account_id}/Delete a service account
GET/current/workspace/{workspace_id}/service_accounts/{service_account_id}/keys/List its keys
POST/current/workspace/{workspace_id}/service_accounts/{service_account_id}/keys/create/Create a key
DELETE/current/workspace/{workspace_id}/service_accounts/{service_account_id}/keys/{key_id}/Revoke a key

Shares (in workspace context)

MethodEndpointDescription
POST/current/workspace/{workspace_id}/create/share/Create a share
GET/current/workspace/{workspace_id}/list/shares/List shares
POST/current/workspace/{workspace_id}/import/share/{share_id}/Import a user-owned share

File Shares (durable single-file links)

MethodEndpointDescription
POST/current/workspace/{workspace_id}/create/fileshare/Create a File Share bound to a file node
GET/current/workspace/{workspace_id}/list/fileshares/List the workspace's File Shares
POST / PATCH/current/fileshare/{fileshare_id}/update/Update title / access tier / password
DELETE/current/fileshare/{fileshare_id}/delete/Delete a File Share
GET / POST / DELETE/current/fileshare/{fileshare_id}/grants/List, grant, or revoke per-user capabilities

Cloud Sync

MethodEndpointDescription
POST/current/workspace/{workspace_id}/cloud-import/enable/Enable cloud sync
POST/current/workspace/{workspace_id}/cloud-import/disable/Disable cloud sync
GET/current/cloudsync/workspace/{workspace_id}/providers/List the providers this workspace may connect
GET/current/cloudsync/workspace/{workspace_id}/identities/List provider identities (your own in this organization, plus those this workspace's sources sync through)
POST/current/cloudsync/workspace/{workspace_id}/identities/provision/Provision a provider identity
POST/current/cloudsync/oauth/{provider}/complete/Finish a browser OAuth connect (all four providers)
GET/current/cloudsync/workspace/{workspace_id}/identities/{identity_id}/Get identity details
POST/current/cloudsync/workspace/{workspace_id}/identities/{identity_id}/revoke/Revoke a provider identity (owner only; reaches every workspace of the organization)
GET/current/cloudsync/workspace/{workspace_id}/identities/{identity_id}/drives/List reachable drives (OneDrive for Business libraries, Google Shared Drives)
POST/current/cloudsync/workspace/{workspace_id}/identities/{identity_id}/drives/refresh/Refresh the drive catalog
GET/current/cloudsync/workspace/{workspace_id}/sources/List the workspace's sync sources (optional ?owner=me or ?owner={user_id})
POST/current/cloudsync/workspace/{workspace_id}/sources/create/Create a sync source from an identity you own (sync_kind: "once" for a one-time import; ai_processing picks bulk or priority AI processing for the initial import)
POST/current/cloudsync/workspace/{workspace_id}/sources/discover/Browse an identity's cloud folders to pick what to sync
POST/current/cloudsync/workspace/{workspace_id}/sources/estimate/Count the files and bytes in up to 10 folders before connecting them, with AI credit quotes for both bulk and priority processing
POST/current/cloudsync/workspace/{workspace_id}/sources/consolidate/Combine every connected folder of one drive into a single whole-drive connection, in place
GET/current/cloudsync/details/{source_id}/Get source details
POST/current/cloudsync/details/{source_id}/update/Update a source's settings
POST/current/cloudsync/details/{source_id}/refresh/Trigger an immediate incremental sync (retries a failed one-time import)
POST/current/cloudsync/details/{source_id}/disconnect/Stop syncing a source (or stop a one-time import), keeping or trashing the files it imported
POST/current/cloudsync/details/{source_id}/delete/Delete a source and the files it imported
POST/current/cloudsync/details/{source_id}/consolidate/repair/Unblock a consolidation that is waiting for a repair
GET/current/cloudsync/details/{source_id}/jobs/List a source's sync jobs
GET/current/cloudsync/details/{source_id}/jobs/{job_id}/Get one sync job's details and progress
POST/current/cloudsync/details/{source_id}/jobs/{job_id}/cancel/Cancel a pending sync job
GET/current/cloudsync/details/{source_id}/writebacks/List write-back jobs
POST/current/cloudsync/details/{source_id}/writebacks/push/{node_id}/Push one imported file back to the provider
GET/current/cloudsync/details/{source_id}/writebacks/{writeback_id}/Get write-back job details
POST/current/cloudsync/details/{source_id}/writebacks/{writeback_id}/retry/Retry a failed write-back
POST/current/cloudsync/details/{source_id}/writebacks/{writeback_id}/resolve/Resolve a write-back conflict
POST/current/cloudsync/details/{source_id}/writebacks/{writeback_id}/cancel/Cancel a pending or conflicting write-back

Every /current/cloudsync/details/{source_id}/... endpoint above enforces a scoped credential's workspace scope, the same way the /current/cloudsync/workspace/{workspace_id}/... endpoints already do. The source id resolves to a workspace, and a credential whose scope does not cover that workspace is refused with 10560 (Access Denied) → 403, “Your token does not have sufficient scope for this Workspace.” — read endpoints (details, jobs, jobs/{job_id}, writebacks, writebacks/{id}) need read scope on the workspace, mutations (update, refresh, delete, disconnect, jobs/{job_id}/cancel, and every writebacks/... write action) need write scope.

Several of those mutations are also gated on who is acting, not only on scope. jobs/{job_id}/cancel always requires a workspace admin calling with an admin-capable credential. refresh, update, delete, disconnect, writebacks/push/{node_id} and writebacks/{writeback_id}/cancel|resolve|retry require one only when the caller is acting as a workspace admin rather than as the member who connected the source — that connector/identity owner still only needs the write scope above. Admin-capable means a sign-in session, or a token holding rwa on the workspace or its org (see scope_admin_required under Transfer Workspace Ownership above). A legacy unscoped API key passes the write-scope check above but is never admin-capable, so it cannot take these actions as an admin.

refresh/ while a sync is already queued is a success, not an error. When a sync for the source is already pending, running, or failed and awaiting its automatic retry — including while the source itself shows pending, discovering or syncing — refresh/ enqueues nothing and answers 200 with that existing job, and already_queued sits next to job at the top level: { "result": true, "job": { ... }, "already_queued": true }. A refresh that does enqueue a sync answers the same shape with already_queued: false. Poll the job either way. The one exception is a refresh carrying acknowledge_large_delete (see Confirming a Large Deletion): the confirmation only travels with a new sync, so it is refused — 155431 → 406, "A sync job is already pending or running for this source", or, while the source shows pending / discovering / syncing, 192986 → 409, "Source must be in synced or error state to refresh". Send it again once that sync has finished. The same errors can also appear if the existing job could not be read at that moment; retry shortly. The returned job is always a sync job; when its status is failed it is awaiting its automatic retry, and message says so. A one-time import is not covered by this: it can be retried only from error.

A source that keeps failing the same way is retried less often, progressively down to about once a day, until a sync succeeds; refresh/ retries it immediately.

While the workspace’s organization is at its credit limit, connected folders stop syncing on their own. Scheduled syncs and provider change notifications start no sync for the folder. Its status does not change and nothing is reported as a failure. Syncing resumes automatically, within about an hour, once the organization has credits available again. refresh/ on such a folder answers 402 with the standard credit-limit error (error.code 10713, with the same params as any credit-limit block). A new connected folder still runs its first sync, a sync already under way finishes, and one-time imports are not paused. Retrying a failed one-time import with refresh/ is not refused for credits.

Knowledge Map

MethodEndpointDescription
GET/current/workspace/{workspace_id}/knowledge/The Workspace Knowledge Map: a stored snapshot with Census, Vocabulary, Shelves and Overview sections
GET/current/workspace/{workspace_id}/knowledge/shelves/{shelf_id}/One shelf of the map, with its profile
GET/current/workspace/{workspace_id}/knowledge/shelves/{shelf_id}/nodes/Keyset-paged files on one shelf of the map

Discovery

MethodEndpointDescription
GET/current/workspaces/all/List all accessible workspaces (optional limit/offset pagination)
GET/current/workspaces/available/List joinable workspaces
GET/current/workspaces/check/name/{org_id}/{name}/Check folder name availability
GET/current/org/{org_id}/list/workspaces/List workspaces in an org

Compact Responses (output=)

Every endpoint that returns one or more workspace objects (details, list, discovery) accepts an optional output query parameter that selects the response shape. A single detail-level token may be combined with modifier tokens; specifying two detail levels (e.g. ?output=terse,standard) returns HTTP 406. When output= is omitted, responses are full and byte-for-byte unchanged.

LevelFields returned on each workspace (cumulative)
terseid, name, folder_name, org_domain, user_status (user_status is returned by GET /current/workspaces/all/ only)
standardterse + description, workspace_level, closed, archived, locked (admin-only), storage (admin-only), created, updated, logo, accent_color (retired: returns any stored value, can no longer be set), intelligence, metadata_extraction, metadata_extraction_mode (always present: automatic, fixed or both; automatic when never set), knowledge (boolean; true when never set), capabilities
fullstandard + cloud_import, cloud_sync_mode, effective_cloud_sync, external_invites, comments, chat, search, assets, perm_join, perm_member_manage, sharing_shares, sharing_file_links, platform (admin-only), suspended (admin-only), owner_defined (members only), parents

Use terse for workspace switchers, autocomplete, and org-scoped navigation — it carries the identifier, display name, folder slug, parent org domain, and user_status so the two-column "Joined vs. Available" workspace list can render and the join button can enable/disable without a follow-up fetch. Use standard for workspace list views and the summary area of workspace detail pages — it adds lifecycle flags (including the locked admin-only chip), storage usage, timestamps, description, the workspace's visual identity (logo, and the retired accent_color, which returns any stored value but can no longer be set), plus the intelligence, metadata_extraction and knowledge feature toggles and the capabilities bundle so list rows can differentiate "enabled but not available to this organization" from "usable." Use full (or omit the parameter) for the workspace settings screen, branding editors, and any workflow that reads permission matrices or remaining feature blocks (comments, chat, search, assets). Unknown tokens are silently ignored. Add the markdown modifier (e.g. ?output=standard,markdown) to receive the response as GitHub-flavored Markdown (Content-Type: text/markdown; charset=UTF-8) instead of JSON — see the cross-cutting ?output= reference for the full contract.

Field Constraints

FieldConstraint
folder_name4-80 characters matching regex ^[\p{L}\p{N}-]+$ (letters, numbers, hyphens). Must be globally unique.
name2–100 characters, string
description10–1000 characters, string (optional). While empty, filled from the Knowledge Overview; see Automatic workspace description
title (shares)2–80 characters

Permission Values

perm_join — who can self-join from the parent org

ValueDescription
'Member or above'Any org member can join (default)
'Admin or above'Only org admins and owners
'Only Org Owners'Only org owners
'No one can join automatically'Nobody self-joins; direct members only

perm_member_manage — who can manage workspace members

ValueDescription
'Member or above'Any workspace member can manage (default)
'Admin or above'Only workspace admins and owners

Permission Levels (numeric hierarchy)

LevelNumericDescription
Owner1000Full control; one per workspace
Admin500Administrative access
Member100Standard member
Guest50Limited guest access
View20Read-only access

Deep Indexing Setting

The Deep Indexing setting (API field: intelligence) on a workspace controls whether uploaded files are automatically indexed for RAG (retrieval-augmented generation).

Knowledge Setting

The knowledge boolean on a workspace switches the Workspace Knowledge Map on or off. It is an opt-out, like metadata_extraction: on by default, and it needs a paid plan to have any effect.

Automatic Metadata Extraction Setting

The metadata_extraction boolean on a workspace controls whether automatic metadata extraction runs for newly uploaded files. It is an opt-out layered under the Deep Indexing setting and the organization's features: automatic extraction runs only when intelligence is on, the organization has the metadata feature (capabilities.can_use_metadata), and metadata_extraction is not false. It can withhold extraction; it can never enable it where the Deep Indexing setting or the organization's features do not allow it.

Sharing Policy

Two booleans on a workspace control whether new sharing may be created in it:

SettingGoverns
sharing_sharesShares — Send, Receive and Exchange, including shared folders created from the workspace.
sharing_file_linksSingle-file share links.

The organization carries a twin of each. The effective answer is the org setting AND the workspace setting, so the org is a ceiling: a workspace may switch sharing off for itself, but cannot switch it back on once the org has switched it off. Switching either level off requires the organization to have security controls available (capabilities.org_controls); switching one back on, resubmitting it unchanged, and reading them do not.

Collaboration Policy (External Invites)

A separate org-level setting, external_invites_workspaces, governs whether a member may bring an outside person onto a workspace — distinct from the sharing policy above, which governs creating shares at all. See Collaboration Policies in the Organizations reference for the full envelope shape, the override rules, and the org-level request/response fields.

Cloud Sync Policy

Distinct from the cloud_import on/off switch (which the Cloud Sync endpoints below still use to gate the feature entirely), an org can restrict the direction cloud sync is allowed to run in, and a workspace can tighten that further for itself.

SettingLevelShapeGoverns
cloud_syncOrgA policy envelope — {"admin": V, "member": V, "overrides": {"<user_id>": V}} where each V is {"enabled": bool, "mode": "read"|"read_write"}Whether sync runs at all, and whether it may write back, per role and per named member
cloud_sync_modeWorkspace"read" | "read_write"The per-workspace direction ceiling under the org value — never a grant, and not an on/off switch (that is cloud_import)

Both halves are wired. The org-level write (cloud_sync on POST org/{org_id}/update/) and its raw, admin-only echo on GET org/{org_id}/details/ use the same shared policy spine as Collaboration Policies and Credential Policy — see Cloud Sync Policy in the Organizations reference for the org-side shape.

Workspace CRUD

Create Workspace

POST /current/org/{org_id}/create/workspace/

Creates a new workspace within an organization. The authenticated user becomes the workspace owner.

Auth: JWT required. Org membership (Member or above) required.

Path Parameters

ParameterTypeRequiredDescription
{org_id}stringYes19-digit numeric organization ID

Request Parameters

NameTypeRequiredConstraintsDescription
folder_namestringYes4-80 chars, regex ^[\p{L}\p{N}-]+$, globally uniqueURL-safe identifier used in workspace URLs
namestringYes2–100 chars, non-blankDisplay name
perm_joinstringYesSee Permission ValuesWho can self-join from the org
perm_member_managestringYesSee Permission ValuesWho can manage workspace members
intelligencestringNo"true" or "false"Enable AI indexing. Defaults to "true" when omitted. In an organization without both content_ai and ai_agent the workspace is created with it off regardless of what you send — the create still succeeds.
metadata_extractionstringNo"true" or "false"Automatic metadata extraction for new uploads. Defaults to "true" when omitted. Effective only while intelligence is on and the organization has the metadata feature; see Automatic Metadata Extraction Setting.
metadata_extraction_modestringNoautomatic, fixed or bothWhich metadata extraction runs on new uploads: open discovery, admin-defined fixed fields, or both. Defaults to automatic when omitted. See Fixed extraction.
descriptionstring10–1000 charsWorkspace description
accent_colorstring (JSON)Retired — no longer accepted (requests that include it are refused); still returned with any stored value.Retired
background_color1string (JSON)JSON color object {"color":"#RRGGBB","opacity":0-100}Background color 1 styling
background_color2string (JSON)JSON color object {"color":"#RRGGBB","opacity":0-100}Background color 2 styling

Example

curl -X POST "https://api.fast.io/current/org/1000000000000000001/create/workspace/" \
  -H "Authorization: Bearer {jwt_token}" \
  -d "folder_name=engineering" \
  -d "name=Engineering Team" \
  -d "description=Main engineering workspace for the team" \
  -d "perm_join=Member or above" \
  -d "perm_member_manage=Admin or above"

Response (200 OK)

{
  "result": true,
  "workspace": {
    "id": "1234567890123456789",
    "folder_name": "engineering",
    "intelligence": true
  }
}

Response Fields

FieldTypeDescription
workspace.idstring19-digit numeric workspace profile ID
workspace.folder_namestringThe URL-safe folder name that was set
workspace.intelligencebooleanDeep Indexing as actually applied: false when you sent intelligence=false, or when the organization lacks content_ai or ai_agent (forced off whatever you sent)

Access Levels

RoleAccess
Org OwnerCan create workspaces
Org AdminCan create workspaces
Org MemberCan create workspaces

Error Responses

Reading the error tables: the Error Code column is the error.code a client actually receives; — means no single code applies (several call sites share the row, or the code depends on which validation rule failed). Use the HTTP status as the gate and a documented error.code only as a refinement. If you widen a check from a specific code to a status, widen what you assert with it — a status covers failures the narrower code did not, so a message written for that one code becomes a confident falsehood on the rest.

Error CodeHTTP StatusMessageCause
10724412Workspace creation is not available for this organizationWorkspace creation not available for this organization; surface the error to the user
10720412You have reached your workspace creation limit.Workspace count limit exceeded; params.reason = plan_limit
119699403Your organization does not permit you to create workspaces.The caller is below the org's perm_workspace_create threshold and is not on its allowlist. params.reason = policy_workspace_create_denied.
10556406The supplied workspace folder name is already in use.Duplicate folder_name
10555406An invalid workspace folder name was supplied.Invalid folder_name format
10558406An invalid configuration was supplied...Metadata validation failure
10559, 10646500There was an internal error processing your create request.Internal failure

Get Workspace Details

GET /current/workspace/{workspace_id}/details/

Returns full workspace details including settings, permissions, owner, Deep Indexing state, and branding.

Auth: JWT required. Workspace membership required (View or above).

Path Parameters

ParameterTypeRequiredDescription
{workspace_id}stringYes19-digit numeric workspace ID or folder_name

Example

curl -X GET "https://api.fast.io/current/workspace/1234567890123456789/details/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true,
  "workspace": {
    "id": "1234567890123456789",
    "name": "Engineering Team",
    "folder_name": "engineering",
    "description": "Main engineering workspace",
    "accent_color": {"color": "#0066CC", "opacity": 100},
    "logo": "https://api.fast.io/current/workspace/1234567890123456789/assets/logo/read",
    "closed": false,
    "archived": false,
    "perm_join": "Member or above",
    "perm_member_manage": "Admin or above",
    "created": "2023-01-15 10:30:00 UTC",
    "updated": "2024-01-20 14:45:00 UTC",
    "org_domain": "acme-corp"
  }
}

Response Fields

FieldTypeDescription
workspace.idstring19-digit workspace profile ID
workspace.namestringDisplay name
workspace.folder_namestringURL-safe folder identifier
workspace.descriptionstring or nullWorkspace description
workspace.accent_colorobject or nullBrand accent color ({color, opacity}) (retired; returns any stored value, can no longer be set)
workspace.logostring or nullLogo asset URL
workspace.closedbooleanWhether workspace is closed (soft-deleted)
workspace.archivedbooleanWhether workspace is archived
workspace.perm_joinstringWho can join
workspace.perm_member_managestringWho can manage members
workspace.createdstringCreation timestamp
workspace.updatedstringLast update timestamp
workspace.org_domainstringParent organization domain
workspace.sharing_sharesbooleanWhether this workspace allows new shares. true on workspaces that have never configured it. The org carries a twin of this setting and is a ceiling — see Sharing Policy below.
workspace.sharing_file_linksbooleanWhether this workspace allows new single-file share links. true on workspaces that have never configured it.
workspace.capabilities.can_create_sharebooleanWhether the calling user may create a share here right now — role and both policy levels combined.
workspace.capabilities.can_create_folder_sharebooleanWhether the calling user may share a folder from this workspace. Always the same answer as can_create_share; a shared folder is a share.
workspace.capabilities.can_create_filesharebooleanWhether the calling user may create a single-file share link here right now.
workspace.external_invitesstring or nullThis workspace's own external-invite switch: allowed, denied, or null to inherit the org's collaboration policy. Not the effective answer — see capabilities.can_invite_external below and Collaboration Policy above.
workspace.capabilities.can_invite_externalbooleanWhether the calling user may currently bring an outside person onto this workspace — org policy, role/override and this workspace's own switch combined. Members only, full output level.
workspace.capabilities.can_use_intelligencebooleanExisting field, now also AND-ed with the org's ai_intelligence policy (including the ai_workspaces allowlist) — see Deep Indexing Setting above and AI, Deep Indexing & MCP Access Policy in Organizations.
workspace.capabilities.can_use_metadatabooleanExisting field, now also AND-ed with the org's ai_metadata policy (including the ai_workspaces allowlist) — see Automatic Metadata Extraction Setting above and AI, Deep Indexing & MCP Access Policy in Organizations.
workspace.capabilities.can_use_ai_agentbooleanWhether the calling user may currently use Ripley Agent chat in this workspace — the organization's features and its ai_agent policy combined.
workspace.capabilities.ai_policy_stateobjectPer-feature detail behind the three booleans above: {"agent": "allowed"|"paused_by_org", "intelligence": "allowed"|"paused_by_org"|"workspace_not_allowed", "metadata": "allowed"|"paused_by_org"|"workspace_not_allowed", "summaries": "allowed"|"paused_by_org"|"workspace_not_allowed"} (agent is never workspace_not_allowed). summaries is paused_by_org when the org-wide ai_summaries policy pauses it in the background (denied for both the admin and member baselines), or when the workspace is on the org's ai_summaries_off_workspaces list; workspace_not_allowed when the workspace is off the ai_workspaces allowlist. A workspace not owned by an org reads allowed. Show “Paused by your organization” for a paused_by_org feature rather than rendering its switch as simply off. Present on details responses only — org workspace lists and dashboard lists do not carry it; treat an absent field as allowed there and let the server's own refusal be the backstop.
workspace.capabilities.org_controlsbooleanWhether the parent organization may configure the organization and workspace security controls. Members only, full output level. Reading the controls never requires it.
workspace.capabilities.org_sharing_sharesbooleanThe parent organization's ceiling for new shares. false means no workspace under it may create shares, whatever sharing_shares says here. Members only, full output level.
workspace.capabilities.org_sharing_file_linksbooleanThe parent organization's ceiling for new single-file share links. Members only, full output level.

Access Levels

RoleFields Returned
OwnerAll fields, including the admin-only locked, storage, platform and suspended
AdminAll fields, including the admin-only locked, storage, platform and suspended
MemberAll fields except the admin-only ones
ViewAll fields except the admin-only ones and the members-only owner_defined, capabilities.org_controls, org_sharing_shares, org_sharing_file_links and can_invite_external

Error Responses

Error CodeHTTP StatusMessageCause
10011401Your credentials were not supplied or invalid.Missing or invalid JWT
10581404You did not supply a valid WorkspaceInvalid or unknown workspace ID
10545401Appropriate access is not granted to this Workspace.No access to the workspace

Update Workspace

POST /current/workspace/{workspace_id}/update/

Updates workspace configuration. All fields are optional; only provided fields are updated.

Auth: JWT required. Admin or Owner required.

Path Parameters

ParameterTypeRequiredDescription
{workspace_id}stringYes19-digit numeric workspace ID

Request Parameters (all optional)

NameTypeConstraintsDescription
folder_namestring4-80 chars, regex ^[\p{L}\p{N}-]+$, uniqueURL-safe identifier
namestring2–100 chars. Cannot be cleared.Display name
descriptionstring10–1000 chars. Send "null" or "" to clear. Changing or clearing it stops the automatic description for good (resending the stored value does not); see Automatic workspace description.Description
perm_joinstringSee Permission ValuesWho can self-join
perm_member_managestringSee Permission ValuesWho can manage members
intelligencestring"true" or "false". Can be toggled. Setting to "true" requires both the content_ai and ai_agent features. Disabling flushes embeddings; re-enabling re-indexes (only files not previously billed by this organization are charged).AI indexing toggle
metadata_extractionstring"true" or "false". Switches automatic metadata extraction for new uploads on or off. Deletes nothing, not rate-limited, no feature requirement (has no effect unless intelligence is on and the organization has the metadata feature). Explicit extraction requests are unaffected.Automatic extraction toggle
metadata_extraction_modestringautomatic, fixed or both. Chooses which metadata extraction runs on new uploads: open discovery, admin-defined fixed fields, or both. Workspace admin only. Changing it never re-extracts existing files. Moving it from fixed to automatic or both while extraction is on is checked against the org's AI policy, like turning metadata_extraction on. Any other value is refused with 406.Metadata extraction mode
knowledgestring"true" or "false". Switches the Workspace Knowledge Map on or off. Workspace admin only, no feature requirement (has no effect without a paid plan); the ordinary update throttle applies and a blank value is ignored. Off: nothing is computed or billed and the map reads enabled: false; back on: the existing map continues if the background processor has not yet acted, otherwise the map is rebuilt from scratch. See Knowledge Setting.Knowledge Map switch
sharing_sharesstringSend the string "true" or "false", form-encoded or as a query parameter. Only an org with security controls available (capabilities.org_controls) may tighten it (switching it off); resubmitting it unchanged or switching it back on works for any org.Whether this workspace allows new shares. See Sharing Policy.
sharing_file_linksstringSend the string "true" or "false", form-encoded or as a query parameter. Only an org with security controls available (capabilities.org_controls) may tighten it (switching it off); resubmitting it unchanged or switching it back on works for any org.Whether this workspace allows new single-file share links.
external_invitesstring"allowed" or "denied". Ungated (workspace admin only) — see Collaboration Policy.This workspace's own external-invite switch.
cloud_sync_modestring"read" or "read_write"; any other value is rejected. No feature requirement, and either value is accepted from a workspace admin (including widening read back to read_write).This workspace's cloud-sync direction ceiling under the org cloud_sync policy. See Cloud Sync Policy.
accent_colorstring (JSON)Retired — no longer accepted (requests that include it are refused); still returned with any stored value.Retired
background_color1string (JSON)JSON color object {"color":"#RRGGBB","opacity":0-100}. Send "null" to clear.Background color 1
background_color2string (JSON)JSON color object {"color":"#RRGGBB","opacity":0-100}. Send "null" to clear.Background color 2
owner_definedstring (JSON)Valid JSON. Send "null" or "" to clear.Custom owner-defined properties

Example

curl -X POST "https://api.fast.io/current/workspace/1234567890123456789/update/" \
  -H "Authorization: Bearer {jwt_token}" \
  -d "name=Updated Workspace Name" \
  -d "description=New description for the workspace" \
  -d "perm_join=Admin or above"

Response (200 OK)

{
  "result": true
}

Error Responses

Error CodeHTTP StatusMessageCause
10545401Appropriate access is not granted to this Workspace.User is not admin or owner
10555406An invalid workspace folder name was supplied.Invalid folder_name
10555406The supplied workspace folder name is already in use.Duplicate folder_name
122124412The Deep Indexing setting has been changed too often; wait and try againToo many update requests that included intelligence (counted even when its value is unchanged); omit intelligence unless you are changing it
278337406Deep Indexing is not available for this organizationOrganization lacks content_ai or ai_agent (cannot set intelligence=true); surface the error to the user
168735403This configuration is not available for this organizationsharing_shares or sharing_file_links was switched off by an org without the entitlement. Resubmitting one unchanged, or switching one back on, is not refused. params.reason = plan_required.
169650406The external invite setting must be "allowed" or "denied".Invalid external_invites value
10558406An invalid configuration was supplied...Metadata validation failure
138734403This AI feature is turned off by your organization. (ai_policy_denied) / This AI feature is not enabled for this workspace by your organization. (ai_policy_workspace_not_allowed)Turning intelligence=true or metadata_extraction=true ON, or moving metadata_extraction_mode from fixed to automatic/both while extraction is on, while the org's AI policy denies the caller that feature for this workspace. params.reason = ai_policy_denied (params.feature:"intelligence" or "metadata") or ai_policy_workspace_not_allowed (allowlist arm, adds params.workspace_id). Turning either off is never refused by this policy. See AI, Deep Indexing & MCP Access Policy in Organizations.
193883503Your organization's access policy is temporarily unavailable. Please try again shortly.The AI policy could not be read; retry. params.reason = access_policy_unavailable.
10561500There was an internal error processing your update request.Internal failure

If no fields have changed, returns 200 OK without making changes. JSON fields are decoded server-side; send valid JSON strings.


Delete Workspace

DELETE /current/workspace/{workspace_id}/delete/?confirm={folder_name_or_id}

Permanently close (soft-delete) a workspace. Enters a retention period before final purge.

An organization always keeps at least one active workspace (not archived, not deleted): deleting the organization's last one is refused with 409 last_active_workspace. Create or unarchive another workspace first. Deleting an archived workspace is always allowed, and repeating a delete that already succeeded keeps its earlier answer.

Auth: JWT required. Owner only. 2FA required for API keys (a 6-digit token or a live step-up grant — see Step-up for protected actions; browser, OAuth and MCP sessions are not prompted).

Path Parameters

ParameterTypeRequiredDescription
{workspace_id}stringYes19-digit numeric workspace ID

Query Parameters

ParameterTypeRequiredDescription
confirmstringYesMust match the workspace's folder_name (case-insensitive) or numeric id. Safety confirmation.

Example

curl -X DELETE "https://api.fast.io/current/workspace/1234567890123456789/delete/?confirm=engineering" \
  -H "Authorization: Bearer {jwt_token}"

Response (202 Accepted)

{
  "result": true
}

Error Responses

Error CodeHTTP StatusMessageCause
10545401Appropriate access is not granted to this Workspace.User is not the workspace owner
130670406The confirm field is required. Pass the workspace's folder name or numeric id as the confirm query parameter.confirm query parameter was not provided
10563406The confirm field provided does not match the workspace's folder name or id.Confirmation does not match folder name or ID
127582409This is the organization's last active workspace. Create or unarchive another workspace before deleting it.The workspace is the organization's last active one. params.reason = last_active_workspace. Nothing was changed.
159174503The workspace cannot be deleted right now. Please try again shortly.The last-workspace check could not be completed (for example, a concurrent delete or archive in the same organization). Retryable — nothing was changed.
10561500There was an internal error processing your request.Internal failure

Archive Workspace

POST /current/workspace/{workspace_id}/archive/

Archives a workspace. Archived workspaces are hidden from default listings.

An organization always keeps at least one active workspace (not archived, not deleted): archiving the organization's last one is refused with 409 last_active_workspace. Create or unarchive another workspace first.

Auth: JWT required. Admin or Owner required. 2FA required for API keys (a 6-digit token or a live step-up grant — see Step-up for protected actions; browser, OAuth and MCP sessions are not prompted).

Example

curl -X POST "https://api.fast.io/current/workspace/1234567890123456789/archive/" \
  -H "Authorization: Bearer {jwt_token}"

Response (202 Accepted)

{
  "result": true
}

Error Responses

Error CodeHTTP StatusMessageCause
10545401Appropriate access is not granted to this Workspace.Not admin or owner
189532401Appropriate access is not granted to this Workspace.Workspace is already archived (non-GET requests to an archived workspace are refused)
156525409This is the organization's last active workspace. Create or unarchive another workspace before archiving it.The workspace is the organization's last active one. params.reason = last_active_workspace. Nothing was changed.
198689503The workspace cannot be archived right now. Please try again shortly.The last-workspace check could not be completed (for example, a concurrent delete or archive in the same organization). Retryable — nothing was changed.

Unarchive Workspace

POST /current/workspace/{workspace_id}/unarchive/

Restores an archived workspace to active status.

Auth: JWT required. Admin or Owner required. 2FA required for API keys (a 6-digit token or a live step-up grant — see Step-up for protected actions; browser, OAuth and MCP sessions are not prompted).

Example

curl -X POST "https://api.fast.io/current/workspace/1234567890123456789/unarchive/" \
  -H "Authorization: Bearer {jwt_token}"

Response (202 Accepted)

{
  "result": true
}

Error Responses

Error CodeHTTP StatusMessageCause
10545401Appropriate access is not granted to this Workspace.Not admin or owner
10700500The workspace is not archived. It cannot be unarchived.Not currently archived

Workspace Assets

List Available Asset Types

GET /current/workspace/assets/

Returns available workspace asset metadata types (e.g., logo).

Auth: JWT required.

Example

curl -X GET "https://api.fast.io/current/workspace/assets/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true,
  "names": ["logo"],
  "metadata_scheme": {
    "logo": {
      "width": {"name": "Image Width", "description": "Image width", "required": true, "type": "int", "min": 1},
      "height": {"name": "Image Height", "description": "Image height", "required": true, "type": "int", "min": 1},
      "mime": {"name": "Mimetype", "description": "Image mimetype", "required": true, "type": "string"},
      "megapixels": {"name": "Image Megapixels", "description": "Image megapixels", "required": true, "type": "int", "min": 0, "max": 48},
      "transform": {"name": "transform", "description": "Transform image", "required": false, "type": "image_transformer"}
    }
  },
  "file_types": {"logo": "image"}
}

names lists the asset names a workspace accepts (only logo); file_types maps each to its file kind; metadata_scheme maps each to the metadata properties validated on upload.


List Workspace Assets

GET /current/workspace/{workspace_id}/assets/

Returns assets currently set on the workspace.

Auth: JWT required. Owner only. 2FA required for API keys (a 6-digit token or a live step-up grant — see Step-up for protected actions; browser, OAuth and MCP sessions are not prompted).

Example

curl -X GET "https://api.fast.io/current/workspace/1234567890123456789/assets/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true,
  "assets": {
    "logo": {
      "metadata": {"width": 512, "height": 512, "megapixels": 0, "mime": "image/png"}
    }
  }
}

Keyed by asset name; each entry carries the stored metadata. A workspace with no assets returns "assets": []. Fetch the bytes with Read Asset Binary below.


Upload/Set Workspace Asset

POST /current/workspace/{workspace_id}/assets/{asset_name}/

Upload or replace an asset. Sent as multipart/form-data.

Auth: JWT required. Admin or Owner required.

Path Parameters

ParameterTypeRequiredDescription
{workspace_id}stringYes19-digit numeric workspace ID
{asset_name}stringYesName of the asset (e.g., logo)

Request Body (multipart/form-data)

FieldTypeRequiredDescription
filefileYesThe asset file to upload
metadatastring (JSON object)Optional metadata for the asset, sent as a JSON object string (e.g. {}). Invalid JSON or a non-object value is refused with 406.

Example

curl -X POST "https://api.fast.io/current/workspace/1234567890123456789/assets/logo/" \
  -H "Authorization: Bearer {jwt_token}" \
  -F "file=@/path/to/logo.png" \
  -F "metadata={}"

Response (200 OK)

{
  "result": true
}

Error Responses

Error CodeHTTP StatusMessageCause
10418412Asset upload missingNo file in request
100289406metadata must be a JSON object encoded as a string.metadata is not valid JSON, or is not a JSON object
10416406Invalid asset metadata.Metadata fails the asset's own validation rules — an unrecognized field, or a value out of range (e.g. an image below the minimum width or height)
191364503"Temporarily unavailable, please retry"Asset storage could not be prepared right now; nothing was stored. Retry shortly

Delete Workspace Asset

DELETE /current/workspace/{workspace_id}/assets/{asset_name}/

Delete a specific asset from a workspace.

Auth: JWT required. Admin or Owner required.

Example

curl -X DELETE "https://api.fast.io/current/workspace/1234567890123456789/assets/logo/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true
}

Read Asset Binary

GET / HEAD /current/workspace/{workspace_id}/assets/{asset_name}/read/

GET returns raw binary data. HEAD returns metadata headers only (Content-Type, Content-Length).

Auth: JWT required. Any signed-in user; workspace membership is not required. 2FA required for API keys (a 6-digit token or a live step-up grant — see Step-up for protected actions; browser, OAuth and MCP sessions are not prompted).

Example

# Download asset
curl -X GET "https://api.fast.io/current/workspace/1234567890123456789/assets/logo/read/" \
  -H "Authorization: Bearer {jwt_token}" \
  --output logo.png

# Get metadata headers only
curl -I "https://api.fast.io/current/workspace/1234567890123456789/assets/logo/read/" \
  -H "Authorization: Bearer {jwt_token}"

Response: Raw binary content with appropriate Content-Type header (not JSON).

Workspace Members

Add or Invite a Member

POST /current/workspace/{workspace_id}/members/{email_or_user_id}/

Add an existing user directly by user ID, or send an invitation by email address.

Auth: JWT required. Permission depends on workspace perm_member_manage setting. You cannot add or invite someone at a role above your own — the ceiling applies to invitations as well as direct adds.

Send the parameters as form fields (application/x-www-form-urlencoded or multipart/form-data); a JSON request body is refused with a 406 error.

If you pass an email address that belongs to an account which has not verified that address, an invitation is sent to it instead of adding the account directly.

Path Parameters

ParameterTypeRequiredDescription
{workspace_id}stringYes19-digit numeric workspace ID
{email_or_user_id}stringYes19-digit user ID (direct add) or email address (invitation)

Request Parameters (adding by user ID)

NameTypeRequiredDescription
permissionsstring"admin", "member", "guest", or "view"; omitted means "member" for a new member, while a current (unexpired) member keeps their role (your own role must be at least that role) and an expired membership is restored as "member". Cannot be "owner". Any other value (including "any") is refused with a 406 error rather than treated as "member".
notify_optionsstringNotification preference
expiresstringMembership expiration (YYYY-MM-DD HH:MM:SS UTC)
notificationstringSend force to force the notification email to the added user

Request Parameters (inviting by email)

NameTypeRequiredDescription
permissionsstring"admin", "member", "guest", or "view"; omitted means "member". Cannot be "owner". Any other value (including "any") is refused with a 406 error rather than treated as "member".
messagestringCustom message in invitation email
invitation_expiresstringInvitation expiration (YYYY-MM-DD HH:MM:SS UTC)

Examples

# Add existing user by ID
curl -X POST "https://api.fast.io/current/workspace/1234567890123456789/members/9876543210987654321/" \
  -H "Authorization: Bearer {jwt_token}" \
  -d "permissions=member"

# Invite by email
curl -X POST "https://api.fast.io/current/workspace/1234567890123456789/members/newuser@example.com/" \
  -H "Authorization: Bearer {jwt_token}" \
  -d "permissions=member" \
  -d "message=Welcome to the project!"

Response — Direct Add (200 OK)

{
  "result": true
}

Response — Invitation Sent (200 OK)

{
  "result": true,
  "invitation": {
    "id": "aea3w-cuan6-edcu5-vkaex-g52gm-dacr",
    "inviter": "John Doe",
    "invitee_email": "newuser@example.com",
    "entity_type": "workspace",
    "state": "pending",
    "created": "2025-01-15 10:30:00 UTC",
    "expires": "2025-01-18 10:30:00 UTC"
  }
}

Abbreviated: the invitation object carries every field of a List Workspace Invitations entry, plus a workspace object.

Error Responses

Error CodeHTTP StatusMessageCause
10675406Adding a member as an owner is not allowedAttempted owner-level permission
119894413VariesWorkspace or org member limit reached; params.reason = plan_limit
130084, 124529, 181982500Unable to verify workspace member limits. Please try again later.The member limit could not be checked; retry
168208409Another member change for this workspace is in progress. Please try again shortly.Another member add, invitation or join on this workspace is being processed; retry.
10545401Appropriate access is not granted to this Workspace.Below workspace perm_member_manage level
133297406Invalid permissions value. Valid values are: admin, member, guest, view.permissions is not one of those role names
141981406This endpoint does not accept a JSON request body. …The request was sent as a JSON body
127022406You cannot add, update, or delete a membership with a higher permission than your own.The requested role (when omitted: member for a new member or invitation, a current (unexpired) member's role on a re-add) is above your own — for an invitation as well as a direct add
194071403External invitations are not permitted here by policy. (params.reason)The invitee is external and the org's collaboration policy (or this workspace's own external_invites switch) denies the inviter. reason = external_invites_denied or external_invites_object_denied. Applies to a fresh invite, a resend, and a broadening edit to an existing membership; a pure permission reduction is never gated. See Collaboration Policy above.

Direct-add and invitation both count as "adding a member" for the collaboration policy above; an org invite (adding someone to the org itself, not to this workspace) is a separate action and is never gated by it.


Remove a Member

DELETE /current/workspace/{workspace_id}/members/{user_id}/

Removes a member from the workspace. Cannot remove the workspace owner.

Auth: JWT required. Permission depends on perm_member_manage.

Example

curl -X DELETE "https://api.fast.io/current/workspace/1234567890123456789/members/9876543210987654321/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true
}

Error Responses

Error CodeHTTP StatusMessageCause
146727401Unable to remove owner. Use transfer ownership API.Attempted to remove the workspace owner
150044401User can not remove user with greater permissions.The member's role is above your own
10545401Appropriate access is not granted to this Workspace.Below workspace perm_member_manage level
162879401No permissions on user to delete.The user has no membership in this workspace
10606406The membership you specified does not exist.The membership was already removed or has expired

Removing a member cascades removal into all shares within the workspace.

Removing a member disconnects the cloud-sync sources they connected in this workspace (files are kept). See When a Member Leaves or Is Removed; GET /current/cloudsync/workspace/{workspace_id}/sources/?owner={user_id} lists them beforehand.


List Workspace Members

GET /current/workspace/{workspace_id}/members/list/

Lists all members with their permissions, notification preferences, and membership metadata.

Auth: JWT required. Any workspace member.

Query Parameters: limit (default 100, max 500) and offset (default 0). The response carries a pagination object (total, limit, offset, has_more).

Example

curl -X GET "https://api.fast.io/current/workspace/1234567890123456789/members/list/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true,
  "users": [
    {
      "id": "1234567890123456789",
      "account_type": "human",
      "email_address": "owner@example.com",
      "first_name": "Alice",
      "last_name": "Johnson",
      "permissions": "owner",
      "status": "active",
      "notify": "Notify me in app"
    },
    {
      "id": "9876543210987654321",
      "account_type": "agent",
      "email_address": "bot@example.com",
      "first_name": "Sync",
      "last_name": "Bot",
      "permissions": "member",
      "status": "active",
      "expires": "2025-12-31 23:59:59 UTC"
    },
    {
      "id": "5566778899001122334",
      "account_type": "human",
      "email_address": "invited@example.com",
      "first_name": "invited@example.com",
      "last_name": "",
      "permissions": "member",
      "status": "pending",
      "invite": {
        "id": "aea3wcuan6edcu5vkaexg52gmdacr",
        "created": "2025-01-15 10:30:00",
        "expires": "2025-01-18 10:30:00"
      }
    }
  ],
  "pagination": {
    "total": 3,
    "limit": 100,
    "offset": 0,
    "has_more": false
  }
}

Response Fields

FieldTypeDescription
usersarrayArray of member objects
users[].idstring19-digit user profile ID
users[].account_typestring"human" or "agent"
users[].email_addressstringMember's email address
users[].first_namestringFirst name
users[].last_namestringLast name
users[].permissionsstringRole: "owner", "admin", "member", "guest", "view"
users[].statusstring"active" for registered users, "pending" for invited users who have not yet signed up
users[].inviteobjectPresent on pending members (absent when unset, which is normal for active members): id (the invitation ID, unhyphenated), created, expires (the invitation's acceptance deadline, or null). A snapshot taken when the invitation was sent, with timestamps as YYYY-MM-DD HH:MM:SS (UTC, no suffix)
users[].notifystringNotification preference — present only on your own entry
users[].expiresstringMembership expiration; absent for a permanent membership
paginationobjecttotal, limit, offset, has_more

Leave Workspace (Self)

DELETE /current/workspace/{workspace_id}/member/

Removes the authenticated user from the workspace. Owners cannot leave; they must transfer ownership first.

Auth: JWT required.

Example

curl -X DELETE "https://api.fast.io/current/workspace/1234567890123456789/member/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true
}

Error Responses

Error CodeHTTP StatusMessageCause
10614406You cannot leave a workspace you are the owner of, transfer ownership or close workspace.User is the owner
10606406You cannot leave an workspace you are not a member of.Not a member

Leaving disconnects the cloud-sync sources you connected in this workspace (files are kept). See When a Member Leaves or Is Removed; GET /current/cloudsync/workspace/{workspace_id}/sources/?owner=me lists them beforehand.


Get Member Details

GET /current/workspace/{workspace_id}/member/{member_id}/details/

Returns membership details for a specific user.

Auth: JWT required. Any workspace member.

Example

curl -X GET "https://api.fast.io/current/workspace/1234567890123456789/member/9876543210987654321/details/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true,
  "user": {
    "id": "9876543210987654321",
    "account_type": "human",
    "email_address": "user@example.com",
    "first_name": "Jane",
    "last_name": "Smith",
    "permissions": "member"
  }
}

Response Fields

FieldTypeDescription
user.idstring19-digit user profile ID
user.account_typestring"human" or "agent"
user.email_addressstringEmail address
user.first_namestringFirst name
user.last_namestringLast name
user.permissionsstringPermission level name
user.inviteobjectPending-invitation snapshot, as in List Workspace Members; absent when unset
user.notifystringNotification preference — present only when you read your own membership
user.expiresstringMembership expiration; absent for a permanent membership
user.member_added_atstringWhen the membership was created — present only to the member themselves or a workspace admin or above

Error Responses

Error CodeHTTP StatusMessageCause
10606406The membership you specified does not exist.User is not a member

Update a Member

POST /current/workspace/{workspace_id}/member/{member_id}/update/

Updates a member's role, notification preferences, or expiration.

Auth: JWT required. Permission depends on perm_member_manage; you may always update your own membership. Either way you cannot set a role above your own.

Send the parameters as form fields; a JSON request body is refused with a 406 error.

Request Parameters (all optional)

NameTypeDescription
permissionsstringNew role: "admin", "member", "guest", "view". Omitted leaves the role unchanged; "owner" is ignored (use Transfer Workspace Ownership). Any other value (including "any") is refused with a 406 error.
notify_optionsstringNotification preference; omitted leaves it unchanged
expiresstringMembership expiration (YYYY-MM-DD HH:MM:SS UTC)

Example

curl -X POST "https://api.fast.io/current/workspace/1234567890123456789/member/9876543210987654321/update/" \
  -H "Authorization: Bearer {jwt_token}" \
  -d "permissions=admin"

Response (200 OK)

{
  "result": true
}

Error Responses

Error CodeHTTP StatusMessageCause
10606406The membership you specified does not exist.Target is not a member
10545401Appropriate access is not granted to this Workspace.Below workspace perm_member_manage level (updating someone else)
133297406Invalid permissions value. Valid values are: admin, member, guest, view.permissions is not one of those role names
141981406This endpoint does not accept a JSON request body. …The request was sent as a JSON body
127022406You cannot add, update, or delete a membership with a higher permission than your own.The resulting role is above your own

Transfer Workspace Ownership

POST /current/workspace/{workspace_id}/member/{member_id}/transfer_ownership/

POST only — GET, HEAD, and every other method return 405. Transfers ownership to another member, who must be an enabled, non-phantom member of both the workspace and its parent org. The current owner is demoted to admin. The workspace's parent org is never changed.

Auth: JWT required. Owner only.

Fixed behaviour:

Example

curl -X POST "https://api.fast.io/current/workspace/1234567890123456789/member/9876543210987654321/transfer_ownership/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true,
  "ownership": {
    "profile_id": "1234567890123456789", "profile_type": "workspace",
    "previous_owner": "1111111111111111111", "new_owner": "9876543210987654321",
    "transferred_at": "2026-09-23 16:37:29 UTC"
  }
}

Error Responses (error.params.reason)

ReasonHTTPMessageCause
successor_is_self406You cannot transfer ownership to yourself.Target is self
successor_not_member406The membership you specified does not exist. / The new owner must be a member of the parent organization.Target is not a workspace member (or their membership was removed or has expired), or not a member of the parent org
successor_unavailable406The new owner's account is not active, so ownership cannot be transferred to it.Target is closed, suspended, locked, or a phantom member
transfer_in_progress409Another ownership transfer of this workspace is in progress. Please try again shortly.Another transfer of this workspace is running; retry shortly
—401Appropriate access is not granted to this Workspace. / You are no longer the owner of this workspace.Not the workspace owner (the second text: ownership changed while the call was waiting)
scope_admin_required403—The credential is not admin-capable on this workspace (an API key/OAuth token without rwa)
—500The ownership transfer did not finish. Transfer to the same member again to complete it.The transfer did not finish — repeat the call with the same target to complete it
—503Ownership transfer is temporarily unavailable. Please try again shortly.Temporarily unavailable; retry

Event: ownership_transferred (audit log; profile_type, from_user, to_user). The two existing membership_updated events (promotion and demotion) still fire.


Join Workspace

POST /current/workspace/{workspace_id}/members/join/

Self-join a workspace based on org membership. Subject to the workspace's perm_join setting.

Auth: JWT required.

Request Parameters

NameTypeRequiredDescription
notify_optionsstringNotification preference

Example

curl -X POST "https://api.fast.io/current/workspace/1234567890123456789/members/join/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true
}

Error Responses

Error CodeHTTP StatusMessageCause
10619401You do not have the appropriate permissions to join this workspace.User's org role does not meet perm_join
108902413VariesWorkspace member limit reached; params.reason = plan_limit
134599, 181982500Unable to verify workspace member limits. Please try again later.The member limit could not be checked; retry
168208409Another member change for this workspace is in progress. Please try again shortly.Another member add, invitation or join on this workspace is being processed; retry.

A new self-joined member gets the member role; a current (unexpired) member who self-joins keeps their role; an expired membership is restored as member. Only notify_options is read; permissions is ignored. A self-join never sets a membership expiry.


Join Workspace via Invitation

POST /current/workspace/{workspace_id}/members/join/{invitation_key}/{action}/

Join or decline a workspace invitation.

Auth: JWT required.

Path Parameters

ParameterTypeRequiredDescription
{invitation_key}stringYesUnique invitation key
{action}string"accept" (default) or "decline"

Example

curl -X POST "https://api.fast.io/current/workspace/1234567890123456789/members/join/abc123def456/accept/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true
}

Error Responses

Error CodeHTTP StatusMessageCause
165785406Invitation not found.Malformed, unknown or expired invitation key
141811406This invitation is not for this workspace.The key is an invitation to a different workspace (or to an org or share). Nothing is accepted or declined
42500Failed to get invitation.The invitation could not be read; retry
10619401The inviter no longer has appropriate permissions...Inviter lost management permissions
184744413VariesMember limit reached; params.reason = plan_limit. Accept only, checked before the invitation is used, so it stays pending
143712, 181982500Unable to verify workspace member limits. Please try again later.Accept only: the member limit could not be checked; retry. The invitation stays pending
168208409Another member change for this workspace is in progress. Please try again shortly.Accept only: another member add, invitation or join on this workspace is being processed; retry. The invitation stays pending
127286403External invitations are not permitted here by policy. (params.reason)Accept only: re-checked against the collaboration policy at redemption, since the org policy or the inviter's own standing can have changed since the invitation was sent. reason = external_invites_denied or external_invites_object_denied. The invitation stays pending, not failed. decline is never gated. See Collaboration Policy above.
160951500Unable to verify the external invitation policy. Please try again later.Accept only: the collaboration policy could not be evaluated; retry
10628406The invitation carried an unreadable access expiry.Accept only: the invitation's access expiry could not be read

The system validates the inviter still has sufficient permissions at acceptance time.

Pending Members

When a user is invited to a workspace by email but does not yet have a Fastio account, they appear as a pending member in the member list.

How pending members appear in responses:

Example Member List Entry (Pending)

{
  "id": "5566778899001122334",
  "account_type": "human",
  "email_address": "newuser@example.com",
  "first_name": "newuser@example.com",
  "last_name": "",
  "permissions": "member",
  "status": "pending",
  "invite": {
    "id": "aea3wcuan6edcu5vkaexg52gmdacr",
    "created": "2025-01-15 10:30:00",
    "expires": "2025-01-18 10:30:00"
  }
}

Account claim: When the invited user signs up or accepts the invitation with an existing account, their status transitions from "pending" to "active".

Removal: To remove a pending member, delete their invitation using the invitation endpoints (see Workspace Invitations below). Deleting the invitation removes the pending member.

Notifications: Pending members do not receive in-app or email notifications until they claim their account.

Workspace Invitations

List Workspace Invitations

GET /current/workspace/{workspace_id}/members/invitations/list/

Returns all invitations for the workspace.

Auth: JWT required. Any workspace member.

Example

curl -X GET "https://api.fast.io/current/workspace/1234567890123456789/members/invitations/list/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true,
  "invitations": [
    {
      "id": "aea3w-cuan6-edcu5-vkaex-g52gm-dacr",
      "inviter": "Alice Johnson",
      "inviter_actor": {
        "user_id": "1234567890123456789",
        "kind": "human",
        "agent_name": null,
        "name_source": null,
        "credential_type": "session",
        "verified": false
      },
      "invitee_email": "newuser@example.com",
      "invitee_uid": "5566778899001122334",
      "accepted_uid": null,
      "entity_type": "workspace",
      "state": "pending",
      "consumed": false,
      "created": "2025-01-15 10:30:00 UTC",
      "updated": "2025-01-15 10:30:00 UTC",
      "expires": "2025-01-18 10:30:00 UTC"
    }
  ]
}

Response Fields

FieldTypeDescription
invitationsarrayArray of invitation objects
invitations[].idstringInvitation ID
invitations[].inviterstringDisplay name of inviting user
invitations[].inviter_actorobjectWho sent the invitation and whether an agent acted for them: user_id, kind (human, agent, api_key, app, system, unknown), agent_name, name_source, credential_type, verified. Any agent_name other than Fastio’s own verified agent is self-declared. Full reference: Actor Attribution in the Storage reference
invitations[].invitee_emailstringEmail the invitation was sent to
invitations[].invitee_uidstring or nullUser ID (19-digit string) of the invitee's pending-member placeholder; null when there is none
invitations[].accepted_uidstring or null19-digit user ID of the account that accepted, as a string; null until accepted
invitations[].entity_typestringAlways "workspace"
invitations[].statestring"pending", "accepted", "declined"
invitations[].consumedbooleantrue once the invitation has been accepted
invitations[].createdstringCreation timestamp
invitations[].updatedstringLast update timestamp
invitations[].expiresstring or nullDeadline for accepting the invitation

List Invitations by State

GET /current/workspace/{workspace_id}/members/invitations/list/{state}/

Filter invitations by state.

Auth: JWT required. Any workspace member.

Path Parameters

ParameterTypeRequiredDescription
{state}stringYes"pending", "accepted", "declined"

Example

curl -X GET "https://api.fast.io/current/workspace/1234567890123456789/members/invitations/list/pending/" \
  -H "Authorization: Bearer {jwt_token}"

Response: Same format as List Workspace Invitations, filtered by state.

Error Responses

Error CodeHTTP StatusMessageCause
10631406An invalid invitation state was supplied.Unrecognized state

Update an Invitation

POST /current/workspace/{workspace_id}/members/invitation/{invitation_id}/

Update an existing invitation. The {invitation_id} can be the invitation ID or the invitee's email address. The invitation must belong to this workspace; otherwise the request fails with 406 exactly as an unknown invitation does ("Invalid invitation id or Invitation not found." for an ID).

Auth: JWT required. Permission depends on perm_member_manage.

Send the parameters as form fields; a JSON request body is refused with a 406 error.

Request Parameters (all optional)

NameTypeDescription
statestringNew state: "pending", "accepted", "declined"
permissionsstringThe role granted when the invitation is accepted: "admin", "member", "guest", "view". Cannot be "owner" or above your own role; either refusal returns an error and leaves the invitation unchanged
notify_optionsstringNotification preference applied on acceptance
expiresstringNew deadline for accepting the invitation (YYYY-MM-DD HH:MM:SS UTC, must be in the future). It does not set an expiry on the membership the invitation grants. An empty value or null leaves the deadline unchanged

Examples

# Decline by ID
curl -X POST "https://api.fast.io/current/workspace/1234567890123456789/members/invitation/aea3w-cuan6-edcu5-vkaex-g52gm-dacr/" \
  -H "Authorization: Bearer {jwt_token}" \
  -d "state=declined"

# Update by email
curl -X POST "https://api.fast.io/current/workspace/1234567890123456789/members/invitation/user@example.com/" \
  -H "Authorization: Bearer {jwt_token}" \
  -d "permissions=admin"

Response (200 OK)

{
  "result": true
}

Error Responses

Error CodeHTTP StatusMessageCause
10618406An invalid invitation ID or email was supplied.{invitation_id} is missing or empty
10630406Invitation not found for the specified email and entity.{invitation_id} is an email with no invitation to this workspace
10630406Invalid invitation id or Invitation not found.Malformed or unknown invitation ID, or it belongs to a different workspace
10631406An invalid state was supplied.Unrecognized state
133297406Invalid permissions value. Valid values are: admin, member, guest, view.permissions is not one of those role names
141981406This endpoint does not accept a JSON request body. …The request was sent as a JSON body
10675406Adding a member as an owner is not allowedpermissions=owner
127022406You cannot add, update, or delete a membership with a higher permission than your own.The new role is above your own
10666500Failed to update invitation.Internal failure
10545401Appropriate access is not granted to this Workspace.Below workspace perm_member_manage level

Delete an Invitation

DELETE /current/workspace/{workspace_id}/members/invitation/{invitation_id}/

Delete (revoke) an invitation. The {invitation_id} can be the invitation ID or the invitee's email. The invitation must belong to this workspace; otherwise the request fails with 406 exactly as an unknown invitation does ("Invalid invitation id or Invitation not found." for an ID).

Auth: JWT required. Permission depends on perm_member_manage.

Example

curl -X DELETE "https://api.fast.io/current/workspace/1234567890123456789/members/invitation/aea3w-cuan6-edcu5-vkaex-g52gm-dacr/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true
}

Error Responses

Error CodeHTTP StatusMessageCause
10618406An invalid invitation ID or email was supplied.{invitation_id} is missing or empty
10630406Invitation not found for the specified email and entity.{invitation_id} is an email with no invitation to this workspace
10630406Invalid invitation id or Invitation not found.Malformed or unknown invitation ID, or it belongs to a different workspace
10667500Failed to delete invitation.Internal failure
10545401Appropriate access is not granted to this Workspace.Below workspace perm_member_manage level

Service Accounts

A service account is a non-human identity that belongs to exactly one workspace — for a CI pipeline, a backup job, an integration or an automated agent that should keep working when the person who set it up leaves. It signs in only with its own API keys, reaches only its own workspace, and is managed by the workspace's admins and owners.

The model:

Limits:

LimitValue
Service accounts per workspace5 (Enterprise plans, legacy Enterprise plans included: 20) — the plan's limit; limit.max on the list response is authoritative
Active (unexpired) keys per service account10
Name1-64 characters, unique in the workspace (case-insensitive)
Key memo0-100 characters

Disabled accounts count toward the per-workspace limit; deleted accounts do not.

Key expiry presets (key_expires on create, expires on key create): 1w, 30d, 90d, 1y, never. When the field is absent the key expires in 90d; an explicit empty value is refused (400 expires_invalid). An expired key stops working at its expiry and is removed automatically; it stays listed (expired: true) until then.

The secret is shown once. The full key (key.secret) is returned only in the response to the call that created it — account create or key create. No endpoint returns it again; a lost key must be revoked and replaced. Everywhere else a key appears as its id and its hint (fio_sa_… plus the last four characters).

Disable, enable, delete:

Ids. Service-account ids are 19-digit user ids, always JSON strings. Key ids are 20-character opaque strings and are not secrets. All timestamps use Y-m-d H:i:s UTC; null means never / not yet.

Errors. Every refusal below carries error.params.reason. Branch on the HTTP status and params.reason, never on error.code (codes identify call sites). A caller who is not a workspace admin or owner gets the standard workspace permission refusal, 401 (error.code 10545), with no reason. A request sent as application/json has its fields read only from the JSON body (form and query parameters are not consulted); an empty body counts as no body (every field omitted). A malformed JSON body, a JSON body that is not a top-level object (a list, [] included, or a bare value), or a body over 64 KiB (65,536 bytes) is 400 with the reason of the first field the endpoint reads: name_invalid on account create and update, expires_invalid on key create. Endpoints that read no request body — disable, enable, delete and revoke — ignore the body entirely, malformed or not. An object with numeric-looking keys such as {"0":"x"} is still an object. A 503 with no reason is transient — retry it unchanged.

HTTPparams.reasonWhen
400name_invalidname missing, blank, longer than 64 characters, or containing control characters
400role_invalidrole missing or not viewer / editor
400expires_invalidkey_expires / expires is not one of the presets (an explicit empty value included)
400memo_invalidkey_memo / memo longer than 100 characters or containing control characters
404service_account_not_foundno active or disabled service account with that id in this workspace (another workspace's, a deleted one, or a person), or the path has extra segments. Deleting an already-deleted account is not refused (see Delete a Service Account)
404key_not_foundthe key is not this account's, or was already revoked
409name_takenanother service account in the workspace has that name
409service_account_limitthe workspace is at its plan's limit; params.max carries the limit
409key_limitthe account already has 10 active keys; params.max carries the limit
409service_account_disabledkey create on a disabled account
409workspace_unavailablethe workspace was closed while the account was being created
403credential_policy_*the organization's credential policy does not allow API keys with this role's scope (see Org Credential Policy in the Auth reference)
403service_account_not_permitteda service-account key called one of these endpoints
403scope_admin_requiredan admin or owner called with a credential that is not admin-capable on the workspace (a scoped API key or OAuth token without rwa on the workspace or its org)

Each endpoint reads only its own fields, each with its own reason: account create reads name (name_invalid), role (role_invalid), key_expires (expires_invalid) and key_memo (memo_invalid); update reads only name and role; key create reads only expires (expires_invalid) and memo (memo_invalid). Any other field is ignored. A field the endpoint reads that is supplied as anything but a string — a JSON null, number, boolean, array or object, or a form array such as name[]=x — is refused with 400 and that field's reason. An explicit JSON null is never treated as absent: omit the field to take its default. An omitted field falls back to its default: key_expires / expires to 90d, key_memo / memo to none, and on update an omitted name or role is left unchanged. Sending "expires": "never" (or "key_expires": "never") makes the key never expire. Responses still use null in expires to mean "never expires".

The list, details and keys GETs ignore unknown query parameters, including output.

The Service Account Object

{
  "id": "2345678901234567890",
  "workspace_id": "4234567890123456789",
  "name": "Nightly backup",
  "role": "editor",
  "status": "active",
  "created": "2026-10-16 18:04:11 UTC",
  "updated": "2026-10-16 18:04:11 UTC",
  "created_by": { "id": "2123456789012345678", "name": "Dana Admin" },
  "keys_active": 1,
  "next_key_expiry": "2027-01-14 18:04:11 UTC",
  "last_used": null
}
FieldTypeDescription
idstringThe service account's 19-digit user id
workspace_idstringThe workspace it belongs to
namestringDisplay name; shown wherever its activity appears
rolestringviewer or editor
statusstringactive or disabled
created / updatedstringTimestamps
created_byobject/null{id, name} of the admin who created it; null when that user can no longer be resolved
keys_activeintegerNumber of unexpired keys
next_key_expirystring/nullThe soonest expiry among unexpired keys; null when there are none or all never expire
last_usedstring/nullThe latest use of any of its keys

The Key Object

{
  "id": "aB3dE5fG7hJ9kL1mN2pQ",
  "hint": "fio_sa_…Lw8n",
  "memo": "ci runner",
  "created": "2026-10-16 18:04:11 UTC",
  "created_by": { "id": "2123456789012345678", "name": "Dana Admin" },
  "expires": "2027-01-14 18:04:11 UTC",
  "expired": false,
  "last_used": null
}
FieldTypeDescription
idstringOpaque key id (20 characters) — not the secret
hintstringfio_sa_… plus the key's last four characters, to recognise it
memostringThe label given at creation (may be empty)
createdstringWhen it was created
created_byobject/null{id, name} of the admin who created it
expiresstring/nullExpiry; null = never expires
expiredbooleantrue once expires has passed
last_usedstring/nullLast use of the key

The create responses add secret — the full key — to this object. It is never returned again.


List Service Accounts

GET /current/workspace/{workspace_id}/service_accounts/

Lists the workspace's active and disabled service accounts, oldest first, and the plan limit. Deleted accounts are not listed.

Auth: Workspace admin or owner.

Example

curl -X GET "https://api.fast.io/current/workspace/4234567890123456789/service_accounts/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true,
  "service_accounts": [
    {
      "id": "2345678901234567890",
      "workspace_id": "4234567890123456789",
      "name": "Nightly backup",
      "role": "editor",
      "status": "active",
      "created": "2026-10-16 18:04:11 UTC",
      "updated": "2026-10-16 18:04:11 UTC",
      "created_by": { "id": "2123456789012345678", "name": "Dana Admin" },
      "keys_active": 1,
      "next_key_expiry": "2027-01-14 18:04:11 UTC",
      "last_used": null
    }
  ],
  "limit": { "max": 5, "used": 1 }
}

limit.max is the plan's limit for this workspace; limit.used counts every account holding a slot (active, disabled, and a create still in progress), so it can briefly exceed the number of listed accounts.


Create a Service Account

POST /current/workspace/{workspace_id}/service_accounts/create/

Creates the service account and its first key in one call. The response is the only time the key's secret is returned.

Auth: Workspace admin or owner.

Request Parameters (form or JSON body)

ParameterTypeRequiredDescription
namestringYes1-64 characters, unique in the workspace (case-insensitive)
rolestringYesviewer or editor — there is no default
key_expiresstringNo1w, 30d, 90d, 1y or never. 90d when absent; an empty value is 400 expires_invalid
key_memostringNoLabel for the first key, 0-100 characters

Example

curl -X POST "https://api.fast.io/current/workspace/4234567890123456789/service_accounts/create/" \
  -H "Authorization: Bearer {jwt_token}" \
  -d "name=Nightly backup" \
  -d "role=editor" \
  -d "key_expires=90d" \
  -d "key_memo=ci runner"

Response (200 OK)

{
  "result": true,
  "service_account": {
    "id": "2345678901234567890",
    "workspace_id": "4234567890123456789",
    "name": "Nightly backup",
    "role": "editor",
    "status": "active",
    "created": "2026-10-16 18:04:11 UTC",
    "updated": "2026-10-16 18:04:11 UTC",
    "created_by": { "id": "2123456789012345678", "name": "Dana Admin" },
    "keys_active": 1,
    "next_key_expiry": "2027-01-14 18:04:11 UTC",
    "last_used": null
  },
  "key": {
    "id": "aB3dE5fG7hJ9kL1mN2pQ",
    "hint": "fio_sa_…Lw8n",
    "memo": "ci runner",
    "created": "2026-10-16 18:04:11 UTC",
    "created_by": { "id": "2123456789012345678", "name": "Dana Admin" },
    "expires": "2027-01-14 18:04:11 UTC",
    "expired": false,
    "last_used": null,
    "secret": "{service_account_key}"
  }
}

Errors: name_invalid, role_invalid, expires_invalid, memo_invalid (400); name_taken, service_account_limit, workspace_unavailable (409); a credential_policy_* reason (403).

Events: service_account_created and service_account_key_created.


Get Service Account Details

GET /current/workspace/{workspace_id}/service_accounts/{service_account_id}/details/

One service account and all of its keys, expired keys included. Never returns a secret.

Auth: Workspace admin or owner.

Response (200 OK)

{
  "result": true,
  "service_account": { "id": "2345678901234567890", "name": "Nightly backup", "role": "editor", "status": "active", "...": "..." },
  "keys": [
    {
      "id": "aB3dE5fG7hJ9kL1mN2pQ",
      "hint": "fio_sa_…Lw8n",
      "memo": "ci runner",
      "created": "2026-10-16 18:04:11 UTC",
      "created_by": { "id": "2123456789012345678", "name": "Dana Admin" },
      "expires": "2027-01-14 18:04:11 UTC",
      "expired": false,
      "last_used": "2026-10-16 19:30:02 UTC"
    }
  ]
}

Errors: service_account_not_found (404).


Update a Service Account

POST /current/workspace/{workspace_id}/service_accounts/{service_account_id}/update/

Renames the account and/or changes its role. A role change rewrites the scope of every key of the account in the same step, so no key is ever broader than the role; changing to editor must be allowed by the organization's credential policy.

Auth: Workspace admin or owner.

Request Parameters

ParameterTypeRequiredDescription
namestringNoNew name, 1-64 characters, unique in the workspace
rolestringNoviewer or editor

Response (200 OK): { "result": true, "service_account": { ... } } — the updated object.

Errors: service_account_not_found (404), name_invalid / role_invalid (400), name_taken (409), a credential_policy_* reason (403).

Events: service_account_updated (carrying the new name and role) when something changed.


Disable a Service Account

POST /current/workspace/{workspace_id}/service_accounts/{service_account_id}/disable/

Every key of the account is refused from its next request (401), and every download token it obtained (single-file, preview and ZIP) stops working too. Keys are kept. Idempotent.

Auth: Workspace admin or owner.

Response (200 OK): { "result": true, "service_account": { "id": "2345678901234567890", "status": "disabled", ... } }

Errors: service_account_not_found (404). Events: service_account_disabled when the status changed.


Enable a Service Account

POST /current/workspace/{workspace_id}/service_accounts/{service_account_id}/enable/

Re-enables a disabled account; its unexpired keys work again. Idempotent.

Auth: Workspace admin or owner.

Response (200 OK): { "result": true, "service_account": { "id": "2345678901234567890", "status": "active", ... } }

Errors: service_account_not_found (404). Events: service_account_enabled when the status changed.


Delete a Service Account

DELETE /current/workspace/{workspace_id}/service_accounts/{service_account_id}/

Deletes the account permanently: it is refused at once, its keys are deleted, every download token it obtained stops working, its workspace membership is removed and the account is closed. Files, comments and events it produced stay, and still show its name. Its name becomes free for reuse.

Auth: Workspace admin or owner.

Response (200 OK)

{ "result": true }

Idempotent: deleting an account that is already deleted answers 200 again and finishes any cleanup an earlier call left. A 503 means retry: it does not tell you whether the service_account_deleted event was recorded (a call can record it and then fail its cleanup), and a retry emits it while the deletion event is still owed.

Errors: service_account_not_found (404) — no account with that id in this workspace; 503 — retry. Events: service_account_deleted, at least once — never lost, but a duplicate is possible (after a failure between recording the event and marking it recorded, or when a recording call stalls past its 60-second claim and a retry records it again), so treat the event as idempotent by service account id.


List a Service Account's Keys

GET /current/workspace/{workspace_id}/service_accounts/{service_account_id}/keys/

The account's keys, expired ones included. Never returns a secret.

Auth: Workspace admin or owner.

Response (200 OK): { "result": true, "keys": [ { ...key object... } ] }

Errors: service_account_not_found (404).


Create a Key

POST /current/workspace/{workspace_id}/service_accounts/{service_account_id}/keys/create/

Creates another key for the account, scoped to its current role. Use it to rotate: create the new key, switch your integration to it, then revoke the old one.

Auth: Workspace admin or owner.

Request Parameters

ParameterTypeRequiredDescription
expiresstringNo1w, 30d, 90d, 1y or never. 90d when absent; an empty value is 400 expires_invalid
memostringNoLabel, 0-100 characters

Response (200 OK)

{
  "result": true,
  "key": {
    "id": "cD4eF6gH8jK0mN2pQ4rS",
    "hint": "fio_sa_…X9t2",
    "memo": "rotated 2026-10",
    "created": "2026-10-16 20:11:45 UTC",
    "created_by": { "id": "2123456789012345678", "name": "Dana Admin" },
    "expires": null,
    "expired": false,
    "last_used": null,
    "secret": "{service_account_key}"
  }
}

Errors: service_account_not_found (404), expires_invalid / memo_invalid (400), service_account_disabled (409), key_limit (409, params.max), a credential_policy_* reason (403). Events: service_account_key_created.


Revoke a Key

DELETE /current/workspace/{workspace_id}/service_accounts/{service_account_id}/keys/{key_id}/

Deletes the key. It is refused from that moment.

Auth: Workspace admin or owner.

Response (200 OK)

{ "result": true }

Errors: service_account_not_found (404), key_not_found (404 — not this account's key, or already revoked). Events: service_account_key_revoked.


A Service Account's Activity

Use event search, filtered to the workspace and the service account as the actor:

GET /current/events/search/?workspace_id={workspace_id}&calling_user_id={service_account_id}

Each event's actor carries service_account: true and the key that acted (credential_id, credential_hint) — see Event actor for service accounts in the Events reference. The seven lifecycle events above are category workspace, sub-category security, visible to workspace admins and owners.

Creating Shares from Workspaces

Create Share

POST /current/workspace/{workspace_id}/create/share/

Create a new share within a workspace. Shares can use independent storage (isolated portal) or a workspace folder as their storage root (live folder share).

Auth: JWT required. Workspace Guest or above, subject to the Sharing Policy — read capabilities.can_create_share for the effective answer.

For full share management documentation, see Shares reference.

Required Parameters

NameTypeConstraintsDescription
intelligencestring"true" or "false"Enable AI features for the share

Optional Parameters

NameTypeConstraintsDescription
share_typestring"send", "receive", "exchange"Type of share. Optional — falls back to the profile default when omitted. Portal (independent) shares are always send — a receive/exchange value is silently overridden. receive/exchange require storage_mode=workspace_folder.
access_optionsstringSee access options belowAccess control setting. Optional — falls back to the profile default when omitted.
invitestring"owners" or "guests"Who can manage invitations. Optional — falls back to the profile default when omitted.
storage_modestring"independent" (default) or "workspace_folder"Storage isolation mode
folder_node_idstringValid OpaqueIdExisting workspace folder (for workspace_folder mode)
create_folderstring"true" or "false"Create new folder (for workspace_folder mode)
folder_namestring1-255 charactersName for new folder (defaults to "Shared Folder")
titlestring2–80 charsDisplay title
descriptionstring10–500 charsShare description
custom_name / custom_urlstringRefusedNo longer accepted. A request that supplies either (any value, including empty) is refused with 406 ("Custom share URLs are no longer supported."). The share's custom_name is always generated.
passwordstring4–128 charsPassword protection (requires "Anyone with the link" access; dropped if comments_enabled or a registration-requiring notify setting upgrades the access)
expiresstringdatetimeExpiration date (portals only, not for workspace folder shares)
notifystring"never", "notify_on_file_received", "notify_on_file_sent_or_received"Notification preference
comments_enabledstring"true" or "false"Enable comments
download_securitystringhigh, medium, offDownload security level. high: downloads disabled. medium: restricted. off: unrestricted.
guest_chat_enabledstring"true" or "false"Enable guest AI chat
accent_colorstring (JSON)JSON color object {"color":"#RRGGBB","opacity":0-100}Accent color
background_color1string (JSON)JSON color object {"color":"#RRGGBB","opacity":0-100}Background color 1
background_color2string (JSON)JSON color object {"color":"#RRGGBB","opacity":0-100}Background color 2
owner_definedstring (JSON)Valid JSONCustom properties

Access Options (access_options)

ValueDescription
'Only members of the Share or Workspace'Most restrictive (default)
'Members of the Share, Workspace or Org'Includes org members
'Anyone with a registered account'Any authenticated user
'Anyone with the link'Least restrictive; allows password. On Receive/Exchange shares guests must sign in to upload unless anonymous_uploads_enabled is true.

Example

curl -X POST "https://api.fast.io/current/workspace/1234567890123456789/create/share/" \
  -H "Authorization: Bearer {jwt_token}" \
  -d "title=Client Deliverables" \
  -d "share_type=send" \
  -d "intelligence=true" \
  -d "access_options=Anyone with a registered account" \
  -d "invite=owners"

Response (200 OK)

{
  "result": true,
  "share": {
    "id": "9876543210987654321",
    "custom_name": "abc123opaque",
    "storage_mode": "independent"
  }
}

Response — Workspace Folder Share

{
  "result": true,
  "share": {
    "id": "9876543210987654321",
    "custom_name": "def456opaque",
    "storage_mode": "workspace_folder",
    "folder_node_id": "abc123def456"
  }
}

Response Fields

FieldTypeDescription
share.idstring19-digit share profile ID
share.custom_namestringURL name (generated)
share.storage_modestring"independent" or "workspace_folder"
share.folder_node_idstring(Workspace folder shares only) Folder node ID

Error Responses

Error CodeHTTP StatusMessageCause
131979403Sharing is turned off for this workspace.The org or workspace sharing policy denies new shares. params.reason = policy_sharing_disabled. See Sharing Policy above.
192151406Custom share URLs are no longer supported.custom_name or custom_url supplied
10736406Workspace folder shares cannot have an expiration date.expires set on workspace folder share
10721406Password can only be set for shares with "Anyone" access option.Password on non-public share
135791406This folder has already been shared.Folder already has a share
197342409Unable to process share creation request due to concurrent operation.Concurrent folder share creation
181012403Creating a share with this access setting is not permitted here by policy.The final access_options admits people outside the org ('Anyone with a registered account' or 'Anyone with the link') and the org's collaboration policy denies the acting user. params.reason = external_invites_denied. See Collaboration Policy above.
130826, 174004500The policy that governs sharing in this workspace could not be determined. Please try again.The collaboration policy could not be evaluated (transient — retry).

List Shares in Workspace

GET /current/workspace/{workspace_id}/list/shares/

Lists all shares belonging to a workspace.

Auth: JWT required. View or above.

Query Parameters

NameTypeDefaultDescription
archivedstring"false""true" for archived shares, "false" for active
limitinteger100Page size (max 500)
offsetinteger0Number of shares to skip

Example

curl -X GET "https://api.fast.io/current/workspace/1234567890123456789/list/shares/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true,
  "shares": [
    {
      "id": "9876543210987654321",
      "title": "Client Deliverables",
      "share_type": "send",
      "custom_name": "client-deliverables",
      "archived": false,
      "closed": false
    }
  ],
  "pagination": {
    "total": 1,
    "limit": 100,
    "offset": 0,
    "has_more": false
  }
}

Import Share into Workspace

POST /current/workspace/{workspace_id}/import/share/{share_id}/

Transfers a user-owned share into workspace ownership.

Auth: JWT required. Workspace Member or above AND owner of the share.

Path Parameters

ParameterTypeRequiredDescription
{workspace_id}stringYes19-digit workspace ID
{share_id}stringYes19-digit share ID to import

Example

curl -X POST "https://api.fast.io/current/workspace/1234567890123456789/import/share/9876543210987654321/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true,
  "share": {
    "id": "9876543210987654321",
    "parent_type": "workspace",
    "parent_workspace": "1234567890123456789"
  }
}

Error Responses

Error CodeHTTP StatusMessageCause
10714406This share is not owned by you and cannot be imported.Share parent is not the current user
10716401You must be the owner of the share to import it to a workspace.Not the share owner
10717406The share has multiple owners...Remove other owners first

Share must be user-owned (not already in another workspace). User must be the sole owner. Multiple owners must be removed first. Archived shares are auto-unarchived during import.

File Shares (Durable Single-File Links)

A File Share is a durable, link-shareable view of one workspace file — the successor to the deprecated QuickShare. It is durable by default (an optional expiry can be set on create/update) and has no per-link transfer cap (bandwidth is metered to the owning organization). A File Share is bound to a single file node at creation and the binding is immutable. The public read endpoints (details, download, preview, versions) are documented in the Shares and Storage references; the management endpoints below require the caller to be an authenticated member of the workspace.

Comment visibility is one-directional (workspace ⊇ File Share). Because a File Share is just a view of a workspace file, comments left by File Share recipients also surface to workspace members — read-only on the workspace file's comment thread and in workspace comment search. The reverse is never true: a File Share recipient sees only the comments made under that File Share and never the workspace's internal comments.

Create a File Share

POST /current/workspace/{workspace_id}/create/fileshare/

Create a File Share bound to a workspace file node. Auth required. Permission: Member of the workspace named in the path.

Request Body (form-encoded)

NameTypeRequiredDescription
nodestringYesOpaqueId of the file or note node to share (a folder is refused)
titlestringNoDisplay title (max 255 chars)
access_optionstringNoanyone_with_link, any_registered, or named_people (default: named_people)
passwordstringNoOptional link password (1-255 chars). Body-only — never accepted from the query string.
expiresintegerNoOptional expiry, RELATIVE: seconds from now (> 0). Mutually exclusive with expires_at. Omitted = durable (never expires).
expires_atstringNoOptional expiry, ABSOLUTE: a future datetime; a value without a timezone is interpreted as UTC. Mutually exclusive with expires. An expired File Share stops serving immediately (404) and is reaped automatically by the hourly cleanup (grants cascaded, file_share_deleted fires); the bound file is never touched.
comments_enabledstringNo"true" or "false" — allow comments on the File Share (default off)

curl Example

curl -X POST "https://api.fast.io/current/workspace/1234567890123456789/create/fileshare/" \
  -H "Authorization: Bearer {jwt_token}" \
  -d "node=2ltsu-q4mja-cuv7p-gc5yd-lxnsj-wee4" \
  -d "title=Quarterly Presentation" \
  -d "access_option=anyone_with_link"

Response (200 OK)

{
  "result": true,
  "fileshare": {
    "fileshare": "1234567890123456789",
    "id_alt": "adheih5r326qjiqvk4wfamvt4rqeh",
    "title": "Quarterly Presentation",
    "access_option": "anyone_with_link",
    "has_password": false,
    "bound_node_id": "2ltsuq4mjacuv7pgc5ydlxnsjwee4",
    "creator_uid": "9876543210987654321",
    "created": "2026-04-27 16:37:29 UTC",
    "updated": "2026-04-27 16:37:29 UTC",
    "expires": null,
    "comments_enabled": false
  }
}

Error Responses

Error CodeHTTP StatusCause
—406node missing/invalid, the node is not a file, or the password is unusable
10683, 10687401The bound file is not publicly serveable (virus-infected, DMCA-infringed or restricted)
108254, 108574403Org or workspace sharing policy refuses new single-file links. params.reason = policy_sharing_disabled. Read capabilities.can_create_fileshare on the workspace to avoid it.
102338403access_option is any_registered or anyone_with_link and the org's collaboration policy denies the acting user ("Creating a file link with this access setting is not permitted here by policy."). params.reason = external_invites_denied. See Collaboration Policy above.
164532, 100800500The collaboration policy could not be evaluated ("The policy that governs sharing this file could not be determined. Please try again."; transient — retry).

List File Shares in Workspace

GET /current/workspace/{workspace_id}/list/fileshares/

Lists the workspace's File Shares (offset pagination: limit, default 100, 1–500; offset, default 0). Scoped strictly to File Shares — never mixes with the Share list. Only the first 1000 File Shares in a workspace are listed, and pagination.total counts at most 1000. Auth required. Permission: Member.

Each item additionally carries grant_count (the number of live named-people grants on the File Share — revoked / expired grants excluded) and grants_preview (the first few grants, in the same shape as the grants list endpoint, for rendering an avatar stack without a second call). Both are best-effort: if the grant read faults for an item, the two fields are omitted for that item (the rest of the list still returns). The full access list is the GET .../grants/ endpoint below.

Response (200 OK)

{
  "result": true,
  "fileshares": [
    {
      "fileshare": "1234567890123456789",
      "id_alt": "adheih5r326qjiqvk4wfamvt4rqeh",
      "title": "Quarterly Presentation",
      "access_option": "anyone_with_link",
      "has_password": false,
      "bound_node_id": "2ltsuq4mjacuv7pgc5ydlxnsjwee4",
      "creator_uid": "9876543210987654321",
      "created": "2026-04-27 16:37:29 UTC",
      "updated": "2026-04-27 16:37:29 UTC",
      "expires": null,
      "comments_enabled": false,
      "grant_count": 2,
      "grants_preview": [
        {
          "user": "9876543210987654321",
          "name": "Ada Lovelace",
          "email": "ada@example.com",
          "capability": "edit",
          "state": "active",
          "created": "2026-04-27 16:37:29 UTC",
          "expires": null
        },
        {
          "user": null,
          "name": null,
          "email": "pending.invitee@example.com",
          "capability": "view",
          "state": "pending",
          "created": "2026-04-27 16:40:00 UTC",
          "expires": "2026-05-27 16:40:00 UTC"
        }
      ]
    }
  ],
  "pagination": {
    "total": 1,
    "limit": 100,
    "offset": 0,
    "has_more": false
  }
}

Update a File Share

POST /current/fileshare/{fileshare_id}/update/
PATCH /current/fileshare/{fileshare_id}/update/

Update a File Share's mutable settings. The bound file node is immutable here (a rebind is a new File Share); only title, access_option, password, comments_enabled and the expiry change. Auth required. Permission: Member of the File Share's parent workspace.

Send the body with POST. On PATCH only query-string parameters are read (a form body is ignored), so password can only be changed with POST.

Request Body (form-encoded)

NameTypeDescription
titlestringNew title (max 255). Send empty / null to clear.
access_optionstringanyone_with_link, any_registered, or named_people
passwordstringNew link password (max 255). Body-only. Send empty to clear.
expiresintegerNew expiry, RELATIVE: seconds from now (> 0). Mutually exclusive with expires_at.
expires_atstringNew expiry, ABSOLUTE: a future datetime (no timezone = UTC). Send null to clear the expiry (durable again). Mutually exclusive with expires.
comments_enabledstring"true" or "false" — turn commenting on the File Share on or off

Widening access_option (named_people → any_registered or anyone_with_link, or any_registered → anyone_with_link) is governed by the org's collaboration policy exactly like the grants endpoint below — narrowing and every other field are unaffected.

Error Responses

Error CodeHTTP StatusMessageCause
177116403Widening this FileShare's access is not permitted here by policy.params.reason = external_invites_denied. See Collaboration Policy above.
198821500The policy that governs sharing this file could not be determined. Please try again.The policy could not be evaluated (transient — retry).

Returns the updated File Share in the same shape as create.

Delete a File Share

DELETE /current/fileshare/{fileshare_id}/delete/

Delete a File Share. Revokes the link and cascades its grants. Auth required. Permission: Member of the File Share's parent workspace. Response: {"result": true}.

List / Manage Per-User Grants

GET /current/fileshare/{fileshare_id}/grants/
POST /current/fileshare/{fileshare_id}/grants/
DELETE /current/fileshare/{fileshare_id}/grants/

List or manage the named-people access list. GET lists the File Share's live grants; POST grants or raises a user's capability; DELETE revokes (idempotent). A grant raises an individual user's capability regardless of tier; the named_people tier consults this list directly. Auth required. Permission: Member of the File Share's parent workspace (all three methods).

List (GET) Response (200 OK)

Returns the File Share's live named-people grants — revoked and expired grants are excluded. There are no pagination parameters (the access list is small; the first 1000 grants are returned).

{
  "result": true,
  "grants": [
    {
      "user": "9876543210987654321",
      "name": "Ada Lovelace",
      "email": "ada@example.com",
      "capability": "edit",
      "state": "active",
      "created": "2026-04-27 16:37:29 UTC",
      "expires": null
    },
    {
      "user": null,
      "name": null,
      "email": "pending.invitee@example.com",
      "capability": "view",
      "state": "pending",
      "created": "2026-04-27 16:40:00 UTC",
      "expires": "2026-05-27 16:40:00 UTC"
    }
  ]
}

Grant Fields

FieldTypeDescription
userstring | nullThe grantee's 19-digit user profile ID. null for a pending invitee (no account yet).
namestring | nullDisplay name. null when unknown (a pending invitee, or no name set).
emailstring | nullThe grantee's email address (the real invitation email for a pending invitee). null in the rare case a claimed account has no email on record.
capabilitystringview, download, or edit.
statestringactive (a real, claimed user) or pending (an invited address not yet claimed).
createdstringWhen the grant was created (Y-m-d H:i:s UTC).
expiresstring | nullFor an active grant, the grant's own expiry; for a pending invitee, the invitation's expiry. null when it does not expire.

Grant / Revoke (POST / DELETE) Parameters

Where to send them differs by method. On POST, send them as a form-encoded request body (they are also accepted on the query string). On DELETE, send them as query-string parameters — a request body is not read on this DELETE, so a form-encoded DELETE body is silently ignored and the request fails as though you had supplied neither user nor email.

Supply exactly one of user or email (supplying both, or neither, is rejected as invalid input — HTTP 406, error.code 121278 for both, 195525 for neither).

NameTypeRequiredDescription
userstringOne of user/email19-digit user profile ID of the grantee (an existing account)
emailstringOne of user/emailEmail address of the grantee — lets you grant a person who may not have an account yet
capabilitystringYes for POSTview, download, or edit

A view grant can open the link and preview; download can also download the bytes (and historical versions); edit can additionally replace the file's content via an upload session (see the Upload reference). Re-granting the same capability, or revoking a non-existent grant, is a silent no-op. Response (POST by user, or DELETE): {"result": true}.

Collaboration policy. A grant to an external person (not a current member of the File Share's owning org, and not on one of that org's verified SSO domains) is governed by the org's external_invites_shares policy — see Collaboration Policy above. A File Share has no external-invite switch of its own; it follows the org policy only. A new grant or any broadening edit — raising the capability, extending an expiry, or widening access_option — is gated; a pure reduction is always available. This applies to POST (both the email and numeric-user arms) and to a resend that raises the capability, but never to DELETE.

Granting by Email

Revoking by Email (DELETE)

Revokes an active grant for that address, and/or cancels a still-pending invitation for it. Cancelling a pending invitation confers nothing, so it does not emit an access-revoked event. A DELETE that matches neither is an idempotent success.

Response (POST by registered email): { "result": true, "user": { "id": "9876543210987654321" } }

Response (POST by unregistered email — invitation created). The pending grant is returned in the same shape as a grants-list row (user is null for an unclaimed invitee; the internal invitation/account id is never exposed):

{
  "result": true,
  "grant": {
    "user": null,
    "name": null,
    "email": "newperson@example.com",
    "capability": "view",
    "state": "pending",
    "created": "2026-04-27 16:37:29 UTC",
    "expires": "2026-05-27 16:37:29 UTC"
  }
}

Error Responses

Error CodeHTTP StatusCause
—406user is not a valid user id / the user does not exist; email is malformed or cannot receive access; both user and email (or neither) were supplied; or capability is missing on a grant
143671403"External invitations are not permitted here by policy." A new grant, or a broadening of an existing one, to an external person. params.reason = external_invites_denied — see Collaboration Policy above.
184840500The policy could not be evaluated (transient — retry).

Workspace Discovery

List All Workspaces

GET /current/workspaces/all/

Lists all workspaces the user has joined or can access across all organizations. Supports optional offset-based pagination.

Auth: JWT required.

Query Parameters

Query ParameterTypeRequiredDescription
limitintegerNoNumber of results to return per page, max 500. The default of 100 applies only once limit or offset is present; with neither, every result is returned. An invalid value is rejected with HTTP 406.
offsetintegerNoNumber of results to skip. Default 0, must be 0 or greater.

Pagination is opt-in: it activates only when the request includes limit and/or offset (an explicit offset=0 counts as a request). When neither parameter is present, the response is unchanged from before — every accessible workspace, and no pagination key.

Example

curl -X GET "https://api.fast.io/current/workspaces/all/" \
  -H "Authorization: Bearer {jwt_token}"

Example (paginated)

curl -X GET "https://api.fast.io/current/workspaces/all/?limit=50&offset=0" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true,
  "workspaces": [
    {
      "id": "1234567890123456789",
      "name": "Engineering Team",
      "folder_name": "engineering",
      "description": "Main engineering workspace",
      "accent_color": {"color": "#0066CC", "opacity": 100},
      "logo": "https://api.fast.io/current/workspace/1234567890123456789/assets/logo/read",
      "closed": false,
      "archived": false,
      "perm_join": "Member or above",
      "perm_member_manage": "Admin or above",
      "created": "2023-01-15 10:30:00 UTC",
      "updated": "2024-01-20 14:45:00 UTC",
      "user_status": "joined",
      "org_domain": "acme-corp"
    }
  ]
}

Response Fields

FieldTypeDescription
workspacesarrayArray of workspace objects
[].idstring19-digit workspace profile ID
[].namestringDisplay name
[].folder_namestringURL-safe folder identifier
[].descriptionstring or nullDescription
[].accent_colorobject or nullBrand accent color ({color, opacity}) (retired; returns any stored value, can no longer be set)
[].logostring or nullLogo asset URL
[].closedbooleanWhether closed
[].archivedbooleanWhether archived
[].perm_joinstringWho can join
[].perm_member_managestringWho can manage members
[].createdstringCreation timestamp
[].updatedstringLast update timestamp
[].user_statusstring"joined" or "available"
[].org_domainstringParent organization domain
paginationobjectPresent only when the request included limit and/or offset
pagination.totalintegerTotal number of accessible workspaces after filtering, across all pages
pagination.limitintegerThe limit applied to this page
pagination.offsetintegerThe offset applied to this page
pagination.has_morebooleanWhether more workspaces exist beyond this page

Spans all organizations the user belongs to. Workspaces from orgs that are not currently active are filtered out. Pagination uses the same limit/offset parameters and pagination object as the shares listing but, unlike it, applies only when requested. An out-of-range or non-numeric limit (valid 1-500), or a negative or non-numeric offset, is rejected with an invalid-input error (HTTP 406).


List Available Workspaces

GET /current/workspaces/available/

Lists workspaces the user can join but has not yet joined. Useful for discovery UI.

Auth: JWT required.

Example

curl -X GET "https://api.fast.io/current/workspaces/available/" \
  -H "Authorization: Bearer {jwt_token}"

Response: Same structure as List All Workspaces (without user_status or pagination), but only includes un-joined workspaces.


Check Workspace Name

GET /current/workspaces/check/name/{org_id}/{name}/

Checks if a workspace folder name is already in use. Useful for real-time form validation.

Auth: JWT required. Membership (Member or above) of the org in the path required. 2FA required for API keys (a 6-digit token or a live step-up grant — see Step-up for protected actions; browser, OAuth and MCP sessions are not prompted).

Path Parameters

ParameterTypeRequiredDescription
{org_id}stringYes19-digit ID of an org you are a member of
{name}stringYesThe folder name to check

Example

curl -X GET "https://api.fast.io/current/workspaces/check/name/1234567890123456789/engineering/" \
  -H "Authorization: Bearer {jwt_token}"

Response — Name Available (202 Accepted)

{
  "result": true
}

Error Responses

Error CodeHTTP StatusMessageCause
10555406An invalid workspace folder name was supplied.Invalid name format
10073406The supplied workspace folder name is already in use.Name taken
10545401Appropriate access is not granted to this Org.Not an org member

Checks globally across all workspaces, not just the current org. Returns 202 Accepted (not 200 OK) when the name is available.


List Workspaces in Org

GET /current/org/{org_id}/list/workspaces/

Lists workspaces within a specific organization. Paginated.

A workspace is listed when either the caller is a direct member of it, or the caller is an org member whose org permission level satisfies that workspace's join permission (perm_join). These are alternatives, not requirements, so the list contains both the workspaces the caller has joined and the ones they are entitled to join. Users who are not org members see only workspaces where they are a direct member.

Each row reports the caller's own standing in workspace_level (owner, admin, member, guest, viewer, none) at the standard and full output levels; ?output=terse omits it. A row the caller can see but has not joined reports none. Read this field to determine membership — do not infer it by subtracting /current/workspaces/available/ from this list. When the caller's level cannot be determined, workspace_level is omitted rather than reported as none, so none always means an authoritative "not a member".

Auth: JWT required.

Path Parameters

ParameterTypeRequiredDescription
{org_id}stringYes19-digit numeric organization ID

Query Parameters

NameTypeDefaultDescription
limitinteger1001–500, items per page
offsetinteger0Items to skip
archivedstring"false""true" for archived, "false" for active

Example

curl -X GET "https://api.fast.io/current/org/1000000000000000001/list/workspaces/?limit=50&offset=0" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true,
  "workspaces": [
    {
      "id": "1234567890123456789",
      "folder_name": "engineering",
      "name": "Engineering Team",
      "description": "Main project workspace"
    }
  ],
  "pagination": {
    "total": 5,
    "limit": 50,
    "offset": 0,
    "has_more": false
  }
}

Access Levels

RoleVisibility
Org OwnerDirect memberships, plus workspaces whose perm_join admits an owner
Org AdminDirect memberships, plus workspaces whose perm_join admits an admin
Org MemberDirect memberships, plus workspaces whose perm_join admits a member
External UserOnly workspaces where they are a direct member

No role sees a workspace set to No one can join automatically unless they are a direct member of it, and an admin does not see a Only Org Owners workspace unless they are a direct member. A removed or expired org membership confers no visibility.

Workspace Knowledge Map

The Workspace Knowledge Map describes what a workspace holds, without listing it: how many files, of what kinds, how they are classified, which fields extraction has filled in, and how the files group into shelves (sets of similar files) with a short written summary of each. It exists so a person or an agent can learn the shape of a workspace in one call and then read exactly the part it needs, instead of listing every file.

Nothing is computed when you read it. The map is a stored snapshot built in the background: a change usually appears within about 15-20 minutes (a removal sooner), and a nightly pass reconciles anything an event missed. A read returns the last published snapshot. The as_of timestamp of each section says when its inputs were read; a section built from an older snapshot says so with freshness.

MethodPathDescription
GET/current/workspace/{workspace_id}/knowledge/The map: Census, Vocabulary, Shelves and Overview sections
GET/current/workspace/{workspace_id}/knowledge/shelves/{shelf_id}/One shelf: its map entry plus its profile
GET/current/workspace/{workspace_id}/knowledge/shelves/{shelf_id}/nodes/The files on one shelf, one keyset page at a time

Who can read it

All three routes follow the same rules.

CallerResult
Workspace member (Member or above)Allowed
View-level memberRefused (10545, 401)
A share or folder-share guest who is not a workspace memberRefused: not a member (10545, 401). There is no share-level map; a share's files are not described by the workspace's map
API key scoped to a share, or to another workspaceRefused (10560, 403): the key has no grant on this workspace
Service accountRefused (294343, 403, params.reason = service_account_not_permitted)
Organization with no current subscriptionRefused (10639, 402, params.reason = subscription_required)
Workspace whose organization is not on a paid plan, or a workspace that is not owned by an organizationRefused (113677 on the map route, 109402 on the shelf route, 105923 on the nodes route; 402, params.reason = plan_required)
Archived or disabled workspaceRefused (110519 on the map route, 155271 on the shelf route, 123897 on the nodes route; 403, no reason)

The first read of a paid workspace that has no map yet starts building one: that read answers with the Census unavailable and reason = building (the other sections are unavailable too), and the map appears within minutes (a large workspace takes longer). Only workspace admins whose credential may administer the workspace receive the admin-only parts, noted below. The request is throttled like other workspace reads; see Rate Limiting in the overview.

Get the Map

GET /current/workspace/{workspace_id}/knowledge/

Returns the last published map snapshot for the workspace. Takes no query parameters.

Auth: JWT or API key. Workspace member (Member or above) of a paid organization. See Who can read it.

ParameterTypeRequiredDescription
{workspace_id}stringYes19-digit workspace ID, or the workspace's folder_name

curl Example:

curl -X GET "https://api.fast.io/current/workspace/1234567890123456789/knowledge/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK):

{
  "result": true,
  "instance_id": "1234567890123456789",
  "enabled": true,
  "generation": 7,
  "source_revision": 1832,
  "as_of": "2026-12-01 14:02:11 UTC",
  "sections": {
    "census":     { "state": "available", "...": "see Census" },
    "vocabulary": { "state": "available", "...": "see Vocabulary" },
    "shelves":    { "state": "available", "...": "see Shelves" },
    "overview":   { "state": "available", "...": "see Overview" }
  }
}

instance_id is the workspace ID. enabled is true normally and false when the workspace's knowledge setting is off (see When Knowledge is off). generation increases each time a new snapshot is published; source_revision is the revision of the input it was built from; as_of is when the snapshot's inputs were read.

The section envelope

Every section has the same envelope:

FieldTypeDescription
statestringavailable, empty, stale, unavailable, blocked or unreadable
reasonstring or nullWhy the state is not available; null when it is. See Reasons below
generationinteger or nullThe map generation this section belongs to; null if never published
source_revisioninteger or nullThe input revision the section was built from
as_ofstring or nullWhen the section's inputs were read (Y-m-d H:i:s UTC)
freshnessstring or nullfresh, stale or blocked; null when there is nothing to judge
coverageobject or nullWhat the section counted over (differs per section)
dataobject or nullThe payload, or null

States. available: published from a successful read. empty: a successful read found nothing (a real zero, not a failure). stale: a later build failed, so you are served the last good data, flagged freshness: "stale"; reason says why. unavailable: nothing published yet for this section. blocked: not served to this reader or not being generated (reason says which). unreadable: the stored snapshot could not be read; retry later.

Reasons. not_built (the section is not built for this workspace), building (the workspace is enrolled and the first snapshot has not been published), index_pending (the metadata index behind the section is not ready yet; it is built in the background and the section completes without any action from you), read_failed, budget and mirror_drift (a rebuild failed or was cut short, and the last good data is served), unreadable_input, credits (the organization's credits stop AI generation), policy (an organization AI policy does not allow it), knowledge_off (state unavailable: the workspace's knowledge setting is off), deep_indexing_off (state blocked: AI text needs Deep Indexing, which is off for the workspace) and, for withheld AI text only, evidence_changed.

A failed read never publishes a zero: a section is stale or unavailable, never a made-up empty count.

When Knowledge is off

When the workspace's knowledge setting is off, the map route still answers 200. The top level carries enabled: false, and every section has state: "unavailable", reason: "knowledge_off" and generation, source_revision and as_of all null:

{
  "result": true,
  "instance_id": "1234567890123456789",
  "enabled": false,
  "generation": null,
  "source_revision": null,
  "as_of": null,
  "sections": {
    "census":     { "state": "unavailable", "reason": "knowledge_off", "generation": null, "source_revision": null, "as_of": null, "freshness": null, "coverage": null, "data": null },
    "vocabulary": { "state": "unavailable", "reason": "knowledge_off", "generation": null, "source_revision": null, "as_of": null, "freshness": null, "coverage": null, "data": null },
    "shelves":    { "state": "unavailable", "reason": "knowledge_off", "generation": null, "source_revision": null, "as_of": null, "freshness": null, "coverage": null, "data": null },
    "overview":   { "state": "unavailable", "reason": "knowledge_off", "generation": null, "source_revision": null, "as_of": null, "freshness": null, "coverage": null, "data": null }
  }
}

Nothing is computed or billed while it is off, and changes waiting to be folded in are dropped. A workspace without a paid plan still gets the 402 plan_required refusal first. If it is switched back on before the background processor has acted on the off switch, the existing map simply continues; otherwise the workspace is re-enrolled and the map is rebuilt from scratch. Re-enabling Knowledge after it was actually cleared regenerates the AI cards and Overview, and those are billed again. A rebuild takes roughly the normal first-build time: until then the sections read building and index_pending. The switch takes effect within seconds on reads and for new AI calls; an AI call already in progress when it is switched off completes and is billed. See Knowledge Setting for how to change it.

What each part needs

Census and Shelves grouping need only the knowledge switch and a paid plan. Vocabulary additionally needs the organization's metadata feature and policy. AI cards and the Overview additionally need Deep Indexing on, the AI policy for summaries and Deep Indexing, and credits; they do not depend on the Vocabulary row. A background (organization) metadata policy denial stops the shelf layout itself: Shelves is blocked / policy, and then there are no cards. The rows below list what each part needs on top of the switch and paid plan:

LayerAdditionally needsBilled?When the prerequisite is missing
Everythingknowledge on, and a paid, organization-owned workspaceNoknowledge off: every section unavailable / knowledge_off (200); no paid plan: 402 plan_required
Census (storage counts, kinds, folders, changes)Nothing moreFreeNone
Shelves grouping (shelf list, counts, claims, deterministic labels, nodes, shelf profile)Nothing more (the reader's own ai_metadata policy still applies per reader; an organization background metadata policy denial stops the layout)FreeOrganization policy denies: blocked / policy and no cards; reader denied: blocked / policy
VocabularyThe organization's metadata feature and policy (capabilities.can_use_metadata); only the Vocabulary needs thisFreeblocked / policy
AI theme cards and Overview (AI label and sentences)Deep Indexing on (intelligence=true), the organization AI policy allowing summaries and Deep Indexing, and creditsBilled (ordinary AI usage)Deep Indexing off: blocked / deep_indexing_off; policy denies: blocked / policy; credits exhausted: blocked / credits. Nothing is billed in any of these

What is on and what is billed, by workspace settings:

Workspace settingsCensusShelves groupingVocabularyAI cards + OverviewBilled
knowledge=falseoffoffoffoffNothing
knowledge=true, intelligence=falseononon if the metadata feature is availabledeep_indexing_offNothing
knowledge=true, intelligence=true, no metadata featureononpolicyon if the AI policy and credits allowCards and Overview only
knowledge=true, intelligence=true, metadata featureonononon if the AI policy and credits allowCards and Overview only

The per-reader policy rules (see What a reader sees) apply on top of this table: they hide parts from a reader; they never change what is computed or billed.

Deep Indexing off. Every card that exists, or would exist, is blocked with reason deep_indexing_off: it carries its deterministic label and no AI text. The Overview section is blocked / deep_indexing_off, except that an Overview that is empty (an empty workspace, nothing to summarise) stays empty. Nothing is billed. The AI text is withheld immediately, on the next read, but kept stored, so turning Deep Indexing back on with unchanged files and metadata serves it again with no new charge. A card shown for a shelf that never had a card (shelf at the card minimum) carries the deterministic label and no claims (claims: []); cards that had text keep their claims.

Census

census.data counts what the workspace holds, with no AI involved. All counts are of live files (not trashed, not folders, notes or links). Sizes are logical bytes: a file stored once and present in many places counts its bytes in every place.

KeyDescription
files{count, unique_documents, logical_bytes}
kindsOne entry per kind (document, spreadsheet, image, audio, video, other): {kind, files, unique_documents, logical_bytes}
uploaded, modified{earliest, latest} timestamps, or null for an empty workspace
top_folders{folder_count, root_files, truncated, other_folders_files, items[{folder_id, name, files, logical_bytes}]}: the folders directly under the workspace root, largest first
changes{history_since, windows[{days, since, added, updated, removed, changed}]}: distinct files changed in the last 7 and 30 days, counted from the retained event history (history_since says how far back it reaches)
classesThe files' classes (category and sub_category): {state, members, unclassified, items[{category, sub_category, files, current}]}
languagesLanguages of files that have a summary: {state, summarised_files, items[{language, files}], other}
measures{state, pages, media_seconds}. pages and media_seconds are each either {sum, measured_files, stale_measured_files} or the string "not_measured" when no file has that measure, so check each one
preparationPer dimension (summaries, classification, metadata, vectors), an object {state: "available", done, pending, failed, ineligible, unknown, provenance, pending_detail, unknown_detail}: the five counts sum to files.count, and provenance, pending_detail and unknown_detail map a label to a file count (they may be empty); metadata also carries done_detail {partial}. vectors is {"state": "not_enabled"} when Deep Indexing is off, and {"state": "blocked", "reason": "policy"} when the reader's ai_intelligence policy does not allow it

census.coverage is {scope, files_counted, unreachable_files, unresolved_phys}. The parts derived from classification and metadata (classes, measures, the classification and metadata preparation) and from summaries (languages, the summaries preparation) each carry their own state: a part that cannot be computed is {"state": "unavailable", "reason": "index_pending"}, and a part the reader's AI policy does not allow is {"state": "blocked", "reason": "policy"}. The storage counts above are served to every authorized reader on a paid plan.

Vocabulary

vocabulary.data describes the metadata fields in use across the files that have been prepared:

{
  "state": "available", "reason": null, "generation": 9, "as_of": "2026-12-01 10:02:11 UTC", "freshness": "fresh",
  "coverage": { "scope": "prepared_files", "population": 4100, "mirror_drift": 0, "fields_total": 64, "fields_detailed": 64, "fields_omitted": 0, "truncated": false },
  "data": {
    "fields": [
      { "name": "vendor_name", "type": "string", "description": null, "aliases": ["vendor"],
        "filled": 810, "population": 4100, "population_basis": "prepared_files", "kinds": [], "fill_rate": 0.1976,
        "long_values": 0, "values_state": "available", "cardinality": 41,
        "top_values": [ { "value": "Acme Corp", "files": 120 } ] }
    ],
    "entities": ["vendor_name"],
    "filters": { "total": 1, "items": [ { "id": "1234567890123456790", "name": "Open invoices", "description": "", "columns": ["vendor_name"] } ] },
    "health": { "merge_candidates": [], "mostly_empty": [] }
  }
}

fill_rate is filled divided by population, over the prepared files the field applies to (population_basis). Fields with the highest fill carry detail: top_values and cardinality for text fields, range for numbers and dates; a field whose values are long free text reports no values. entities lists up to eight name-like fields. filters lists the workspace's saved metadata filters (name, description and columns only; no filter is run). health (merge candidates and mostly-empty fields) is admin-only: it is omitted for everyone else. mostly_empty is a list of field names. merge_candidates is either a list of {source, target, reason, files, verified} (two field names that look like the same field, the rule that proposed them, how many files hold a source value, and verified: false, since these are unconfirmed suggestions) or the string "not_computed" when the workspace has more than 500 fields; check its type before iterating. The Vocabulary needs the reader's ai_metadata policy; without it the section is blocked with reason policy.

Shelves

A shelf is a set of similar files. Shelves are built from the files' classes: one shelf per class, and one shelf per file kind for files that have no class (or only the fallback class Other). A class with at least 300 files whose two largest top-level folders hold at least 70% of them splits into one shelf per folder that holds at least 20 of its files, plus a rest shelf for everything else of that class. A kind shelf never splits. There are at most 40 shelves; past that, the smallest folder shelves merge back into their class. Every prepared file is on exactly one shelf, so the shelf counts add up to member_total. A shelf's identity is deterministic from its definition, so a shelf keeps its id while its definition is unchanged; a split or merge mints new ids.

{
  "state": "available", "reason": null, "generation": 7, "source_revision": 1832,
  "as_of": "2026-12-01 14:02:11 UTC", "freshness": "fresh",
  "coverage": { "scope": "prepared_files", "population": 4100, "unstamped": 0, "mirror_drift": 0, "shelves": 12 },
  "data": {
    "member_total": 4100,
    "shelves": [
      {
        "id": "ks3f0c9a1b2d4e5f60718a",
        "label": "Supplier invoices",
        "form": "class",
        "class": "Invoice",
        "kind": null,
        "folder": null,
        "count": 412,
        "filter": { "field": "sub_category", "op": "eq", "value": "Invoice" },
        "nodes_path": "/workspace/1234567890123456789/knowledge/shelves/ks3f0c9a1b2d4e5f60718a/nodes/",
        "card": {
          "state": "available", "freshness": "fresh", "reason": null, "detail": null, "withheld": false,
          "ai_written": true, "label": "Supplier invoices", "label_source": "ai",
          "sentences": ["Supplier invoices kept in the Finance folder."],
          "policies": ["metadata", "summaries"],
          "claims": [
            { "id": "kc.card:ks3f0c9a1b2d4e5f60718a.7.1", "type": "count", "text": "412 files", "value": { "n": 412 }, "den": null, "unit": "files", "policy": [] },
            { "id": "kc.card:ks3f0c9a1b2d4e5f60718a.7.2", "type": "share", "text": "10% of prepared files", "value": { "num": 412 }, "den": 4100, "unit": "files", "policy": [] }
          ],
          "sample": { "size": 25, "population": 412 },
          "sample_text": "Based on a sample of 25 of 412 files",
          "generated_at": "2026-12-01 13:40:09 UTC"
        }
      }
    ]
  }
}

coverage is {scope: "prepared_files", population, unstamped, mirror_drift, shelves}: shelves cover the files that have been prepared (classified or extracted); unstamped and mirror_drift count files the latest build could not place yet.

Shelf fieldDescription
idThe shelf ID (ks plus 20 hex characters). Pass it to the nodes route
labelWhat to show. The AI-written label when one is served, otherwise the deterministic label (built from the class, kind or folder name)
formclass (all files of a class), class_folder (a class within one top-level folder), class_rest (the rest of a split class) or kind (a file kind, for files with no class)
class, kindThe class and/or kind the shelf is about; null when not applicable
folder{id, name} of the top-level folder for a class_folder shelf, else null
countThe number of files on the shelf. It is exactly the number of files the nodes route pages through while nothing has changed
filterFor a class shelf, a filter naming the class ({field, op, value}) you can use with metadata search. It is not an exact equivalent of the shelf; see the nodes route. null for the other forms
nodes_pathThe path (below /current) of the nodes route for this shelf
cardThe shelf's theme card, or null when the shelf has none (a shelf of fewer than 20 files has no card unless it had one earlier)

The card. A card is the server's description of a shelf: counts and facts the server computed (claims), plus, when the organization's AI is allowed and has credits, a short AI-written label and sentences.

Card fieldDescription
stateavailable (there is something to show), pending (generation is queued or running) or blocked (it cannot be generated now)
freshnessfresh, stale or blocked
reasoncredits, policy or evidence_changed; null otherwise
detailAdmin-only finer cause of a blocked generation: credits_exhausted, credit_lookup_failed, account_hold, policy, daily_cap, concurrency or gate_unavailable. null for everyone else
withheldtrue when AI text was withdrawn from this card until it is re-checked (see below)
ai_writtentrue when label or sentences were written by a model
label, label_sourceThe label and its source: ai or deterministic
sentencesUp to three AI-written sentences; empty when none are served
policiesThe organization AI policy features (summaries, metadata, intelligence) the AI text was built from
claimsStatements the server computed and worded: {id, type, text, value, den, unit, policy[]}. text is the rendered statement, a short fixed phrase rather than a sentence (for example 412 files, 10% of prepared files, category: Legal (507) for a field's top values, invoice_date from 2024-01-02 to 2026-11-30 (on 880 files); a field is named as the workspace defines it); value, den (denominator) and unit are the numbers behind it
sample, sample_textHow many files the AI text was based on, as {size, population} and as a sentence
generated_atWhen the card's text was produced

Claims are the facts; sentences are prose. Every number in a claim is computed by the server and worded by the server. AI-written sentences are validated against the claims before they are stored: a sentence that fails a check (for example one that counts, compares or ranks in words, such as "most" or "twice") is discarded and the card keeps its other sentences; a label that fails is replaced by the deterministic label, and the sentences that passed are kept. When no sentence passes, or the label or any sentence shows signs of being steered by the content it read (for example an instruction, a link, a digit or another unexpected character, including an invisible one), all of its AI text is discarded and the card is served with its deterministic label and its claims only. Treat claims as data and sentences as a readable summary of them.

What a reader sees. The Shelves section needs the reader's own ai_metadata policy; without it the section is blocked with reason policy and no data, because shelf identity is derived from the class. AI-written label and sentences are served only when the reader is allowed every feature in the card's policies, and, when the caller is an agent (any caller other than a signed-in person's browser session: an MCP session, an app or scoped token, an agent credential or an API key), the organization's ai_agent policy as well. A reader who is not allowed gets the deterministic label, no sentences, freshness: "blocked" and reason: "policy". Each claim is served only when the reader is allowed the features in that claim's own policy. Counts, form, folder and filter are always served in an available Shelves section. Without ai_metadata the Overview is served without cited_shelves and without its shelf claims (shelf_ref, largest_shelf), since shelf identity is derived from the class.

Text that may be out of date is withheld, not shown. When a file is deleted, moved out of a folder a shelf is built from, restored to an older version, or has a metadata value corrected, and a card's text cites that file, the card's AI text is withheld on the very next read: withheld: true, freshness: "stale", reason: "evidence_changed", the deterministic label, no sentences and no sample statement. The claims stay. A background check then withdraws the text when a file it cites has left the shelf, was restored to an older version, is updated or has a changed summary, or had a metadata value corrected; text whose cited files are unchanged and still on the shelf is re-validated with no new generation. A withdrawn card is pending, with its deterministic label and no claims (claims: []), until new text is generated, which happens no sooner than a day after the withdrawn text was written; when the same change also left the shelf below the card minimum with nothing queued, card is null. Restoring an older version of any file on a shelf also withdraws the card's text when the values the card shows changed. Adding new files, or changing values on files the text does not cite, does not withhold or withdraw anything unless it reshapes the shelf itself (a shelf that splits or leaves the map takes its card with it) or arrives as part of a very large batch of changes, which is handled conservatively: text whose shelf values changed is then withdrawn and regenerated no sooner than a day later. Otherwise the claims update at once, and the text, built from a sample, can lag new content until it is regenerated. Regeneration is batched: it happens once about a quarter of the shelf's files (at least 10) were added, removed or updated since the text was written, or at a weekly check when any of them changed (a shelf with no such change keeps its text). Until then the card stays available and fresh.

Billing. The deterministic sections (Census, Vocabulary, shelf counts, claims) carry no AI charge. Card and overview text is billed as ordinary AI usage to the organization's credits. Generation needs Deep Indexing on for the workspace and the organization's background ai_summaries and ai_intelligence policies. When credits run out or a policy blocks it, the card or overview is blocked (credits or policy) and the last text, if any, stays until it is withdrawn. When Deep Indexing is off the card or overview is blocked (deep_indexing_off) and the text is withheld immediately (it is kept stored and served again when Deep Indexing is back on); generation resumes on its own once Deep Indexing, credits or policy allow, with no action required.

Overview

overview.data is an AI-written summary of the whole workspace, with the same text fields as a card but no label: {state, freshness, reason, detail, withheld, ai_written, sentences, policies, claims, sample, sample_text, cited_shelves, generated_at}. It is written from a sample of up to 20 of the workspace's files that have a summary (each file's title and the start of its summary, spread across the shelves in proportion to their size), the shelf labels and their cards' text, and workspace facts (the file count, the file kinds, the modified range, recent changes, the shelves and the most common field values). Its sentences say what the workspace is for, name its main subjects, and describe how its files are grouped. label and label_source are always null; cited_shelves lists the shelf IDs whose cards the summary draws on (up to four sentences; the claims are the facts); sample and sample_text say how many files it was based on (both are null when no AI-written sentence is served, and for an overview written before file samples were used). The same reader rules apply: AI text needs every feature in policies (plus ai_agent for an agent), and it is billed exactly as card text is. Deleting, trashing or moving a sampled file out of the workspace withholds the Overview on the next read, and the next background pass then withdraws it (it reads unavailable with building and is regenerated, and billed, no sooner than a day later), even if the file is restored from the trash in between. A new version, a restore to an older version, or a re-summary that changes the text sent to the model (its title or the start of its summary) withdraws it at the next background pass; an identical re-summary, or a change beyond that excerpt, does not. If no sampled file had a summary when it was written, it is regenerated once new summarized files appear, no sooner than three days after it was written. Other changes (new files, fact edits, copies) keep it, but a withdrawn card it read still withdraws it (a card that was simply regenerated does not), and anything that withholds every card's text also withholds the Overview's. The overview is also withdrawn on its own when a metadata correction, a restored older version or a field merge changes the workspace values it describes. A changed set of shelves, a renamed shelf, a regenerated card it read or a large change in the workspace's file count regenerates the overview no sooner than three days after its text was written; a withdrawn overview is regenerated no sooner than a day after, and reads unavailable with building until then. While there is nothing to show, the section is unavailable (not_built or building) or blocked (credits or policy); a blocked overview's detail sits next to freshness on the section and is admin-only. A workspace with no shelves and no overview queued, such as an empty workspace, has an empty Overview.

Automatic workspace description. When a workspace has no description, the first Overview with AI-written sentences fills it in, so workspace lists show what the workspace is for: the sentences joined into one paragraph, cut at a sentence boundary to fit the 1,000-character limit (a single longer sentence is cut at a word and ends with “…”). While the description is still the automatic one, each newer Overview refreshes it. Once a user changes or clears the description through the workspace update endpoint, it is never changed automatically again; resending the same value is not a change. A description that existed before (one a user wrote) is never replaced. A withdrawn Overview, or one with no AI-written sentences, leaves the description as it is. The automatic description is an ordinary workspace field, readable by anyone who can read the workspace. Filling it is not a workspace update: it sends no workspace-updated event or notification.

{
  "state": "available", "reason": null, "generation": 7, "source_revision": 1832,
  "as_of": "2026-12-01 14:02:11 UTC", "freshness": "fresh", "coverage": null,
  "data": {
    "state": "available", "freshness": "fresh", "reason": null, "detail": null, "withheld": false,
    "ai_written": true, "label": null, "label_source": null,
    "sentences": ["This is a finance and contracts workspace of invoices and agreements."],
    "policies": ["intelligence", "metadata", "summaries"],
    "claims": [ { "id": "kc.overview.7.1", "type": "count", "text": "4,100 files", "value": { "n": 4100 }, "den": null, "unit": "files", "policy": [] } ],
    "sample": { "size": 20, "population": 4100 }, "sample_text": "Based on a sample of 20 of 4,100 files",
    "cited_shelves": ["ks3f0c9a1b2d4e5f60718a"],
    "generated_at": "2026-12-01 13:55:30 UTC"
  }
}

Errors

Error CodeHTTP StatusMessageCause
10545401Appropriate access is not granted to this Workspace.View-level member, or a share or folder-share guest who is not a workspace member
10560403Your token does not have sufficient scope for this Workspace.An API key scoped to a share or to another workspace
294343403This service account is not permitted to make this request.Service account; params.reason = service_account_not_permitted
10639402The organization does not have an active subscription.No current subscription; params.reason = subscription_required
113677402The Knowledge Map requires a paid plan.params.reason = plan_required
110519403The workspace is not currently active.Archived or disabled workspace
188554503The Knowledge Map is temporarily unavailable. Try again shortly.The plan or workspace state could not be read; retry
114007500Unable to read the Knowledge Map.Unexpected failure; retry

A snapshot that cannot be read is not an error: the request succeeds and every section is unreadable. Neither is a workspace with Knowledge switched off: the request succeeds with enabled: false and every section unavailable / knowledge_off. A missing Deep Indexing prerequisite is a blocked / deep_indexing_off state, never an HTTP error.

Get One Shelf

GET /current/workspace/{workspace_id}/knowledge/shelves/{shelf_id}/

Returns one shelf of the published map: the entry the map's Shelves section serves to you for that shelf, plus the shelf's profile. Nothing is computed when you read it. Takes no query parameters.

Auth: The same as the map route. See Who can read it. The same reader rules apply as on the map route (see What a reader sees): the reader's ai_metadata policy for the shelf, the card's AI text only when the reader is allowed its policies, and admin-only parts left out for everyone else.

ParameterTypeRequiredDescription
{workspace_id}stringYes19-digit workspace ID, or the workspace's folder_name
{shelf_id}stringYesA shelf id from the map's Shelves section

curl Example:

curl -X GET "https://api.fast.io/current/workspace/1234567890123456789/knowledge/shelves/ks3f0c9a1b2d4e5f60718a/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK):

{
  "result": true,
  "instance_id": "1234567890123456789",
  "state": "available",
  "reason": null,
  "generation": 7,
  "source_revision": 1832,
  "as_of": "2026-12-01 14:02:11 UTC",
  "freshness": "fresh",
  "shelf": {
    "id": "ks3f0c9a1b2d4e5f60718a", "label": "Supplier invoices", "form": "class", "class": "Invoice",
    "kind": null, "folder": null, "count": 412,
    "filter": { "field": "sub_category", "op": "eq", "value": "Invoice" },
    "nodes_path": "/workspace/1234567890123456789/knowledge/shelves/ks3f0c9a1b2d4e5f60718a/nodes/",
    "card": {
      "state": "available", "freshness": "fresh", "reason": null, "detail": null, "withheld": false,
      "ai_written": true, "label": "Supplier invoices", "label_source": "ai",
      "sentences": ["Supplier invoices kept in the Finance folder."],
      "policies": ["metadata", "summaries"],
      "claims": [
        { "id": "kc.card:ks3f0c9a1b2d4e5f60718a.7.1", "type": "count", "text": "412 files", "value": { "n": 412 }, "den": null, "unit": "files", "policy": [] }
      ],
      "sample": { "size": 25, "population": 412 },
      "sample_text": "Based on a sample of 25 of 412 files",
      "generated_at": "2026-12-01 13:40:09 UTC"
    },
    "profile": {
      "folder_concentration": { "folder_id": "{folder_id}", "folder_name": "Finance", "files": 300 },
      "kind_mix": [ { "kind": "document", "files": 398 }, { "kind": "image", "files": 14 } ],
      "modified_range": { "min": "2024-01-03 10:00:00 UTC", "max": "2026-11-28 09:14:02 UTC" },
      "fields": [
        { "name": "vendor_name", "type": "string", "filled": 398, "population": 412, "values_state": "available",
          "entity": true, "top_values": [ { "value": "Acme Corp", "files": 120 } ] }
      ]
    }
  }
}
FieldDescription
instance_idThe workspace ID
state, reason, generation, source_revision, as_of, freshnessThe map's Shelves section envelope (see The section envelope). stale with freshness: "stale" means a later shelf build failed and these are the last good shelves
shelfThe map's entry for the shelf (id, label, form, class, kind, folder, count, filter, nodes_path, card; see Shelves), plus profile. null when the Shelves section has no data (see below)
shelf.profileFacts the server computed about the shelf's files, or null when the shelf has none. No AI-written text. folder_concentration: {folder_id, folder_name, files}, the top-level folder holding most of the shelf's files (null for a class_folder shelf, or when every file is directly in the root). kind_mix: up to three {kind, files}. modified_range: {min, max}, or null. fields: the best-filled metadata fields (up to three, plus a date field and a name-like field when the Vocabulary has them), each {name, type, filled, population, values_state, entity}, where filled counts the shelf's files that have a value and population is the shelf's count; a text field can add top_values ([{value, files}], up to five), a number or date field can add range ({min, max}), and a field of long free text has values_state long_text and no values

When the Shelves section has no data. When Knowledge is off, the answer is 200 with state unavailable, reason knowledge_off and shelf: null, whatever shelf_id you send (a workspace without a paid plan is still refused with plan_required first). Likewise, when the map's Shelves section is blocked (policy), unavailable, unreadable, or stale before any shelves were built, the answer is 200 with that section's state, reason and freshness and shelf: null, whatever shelf_id you send. Otherwise a shelf_id the current map does not hold is refused with the not-found error below: read the map again, because shelf IDs can change between generations. As with the map, the first read of a paid workspace with no map yet starts building one. For the shelf's files, follow shelf.nodes_path (List the Files on a Shelf).

Errors:

Error CodeHTTP StatusMessageCause
187374404The shelf is not in the current Knowledge Map. The map was regenerated: read the map again.shelf_id is not in the current map, or is malformed
109402402The Knowledge Map requires a paid plan.params.reason = plan_required
155271403The workspace is not currently active.Archived or disabled workspace
166125503The Knowledge Map is temporarily unavailable. Try again shortly.The plan or workspace state could not be read; retry
154367500Unable to read the shelf.Unexpected failure; retry

Access refusals are the ones listed under Who can read it.

List the Files on a Shelf

GET /current/workspace/{workspace_id}/knowledge/shelves/{shelf_id}/nodes/

Lists the files on one shelf, one keyset page at a time, using the same rule the shelf's count was published with.

Auth: The same as the map route. See Who can read it. The reader's ai_metadata policy is checked on every request.

ParameterTypeRequiredDescription
{workspace_id}stringYes19-digit workspace ID, or the workspace's folder_name
{shelf_id}stringYesA shelf id from the map's Shelves section
limitintegerNoPage size, 1 to 100. Default 50
cursorstringNoThe next_cursor of the previous page. Opaque; do not build or edit one

curl Example:

curl -X GET "https://api.fast.io/current/workspace/1234567890123456789/knowledge/shelves/ks3f0c9a1b2d4e5f60718a/nodes/?limit=50" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK):

{
  "result": true,
  "state": "available",
  "reason": null,
  "map": { "generation": 7, "source_revision": 1832, "as_of": "2026-12-01 14:02:11 UTC", "freshness": "fresh" },
  "shelf": { "id": "ks3f0c9a1b2d4e5f60718a", "form": "class", "label": "Invoice", "map_count": 412,
             "filter": { "field": "sub_category", "op": "eq", "value": "Invoice" } },
  "changed_since_map": false,
  "nodes": [
    { "id": "2ltsu-q4mja-cuv7p-gc5yd-lxnsj-wee4", "name": "inv-0042.pdf", "size": 48211, "updated": "2026-11-28 09:14:02 UTC",
      "parent_id": "2ik5q-a43cm-uixi2-van5r-3eolo-7mue", "top_folder_id": "2ik5q-a43cm-uixi2-van5r-3eolo-7mue",
      "mimetype": "application/pdf", "changed_since_map": false },
    { "id": "2qk7d-kri4y-yievb-q5hri-eq4io-hij5", "name": "inv-0001.pdf", "size": 30120, "updated": "2026-11-20 16:40:00 UTC",
      "parent_id": "root", "top_folder_id": null, "mimetype": "application/pdf", "changed_since_map": false }
  ],
  "next_cursor": "{opaque_cursor}"
}
FieldDescription
stateavailable; empty for a shelf with no files; or unavailable (reason not_built, building, index_pending or knowledge_off), blocked (reason policy) or unreadable (reason unreadable_input). In every state except available and empty, map, shelf and changed_since_map are null and nodes is empty
map{generation, source_revision, as_of, freshness} of the shelves the page was read against. freshness is stale when a later shelf build failed and these are the last good shelves
shelf{id, form, label, map_count, filter}. form is class, class_folder, class_rest or kind, as on the map route. label is the deterministic label (AI-written labels are on the map route). filter is set for class shelves only. It names the class but is not an exact equivalent: the shelf recognizes the class after collapsing and trimming spaces, while the filter compares the stored value as written (ignoring case and accents), so a report on it can count slightly differently from map_count when values were written by hand
changed_since_maptrue when anything may have changed since the map's as_of (see below)
nodesThe page. Each node: id, name, size (bytes), updated (last modified), parent_id ("root" for a file directly in the workspace root), top_folder_id (the top-level folder holding it; null for a file directly in the root), mimetype and its own changed_since_map. Node ids are spelled as in storage and metadata report responses
next_cursorPass as cursor for the next page; null on the last page

Counts match pages. The shelf's count in the map and the files this route pages through come from the same rule, so walking every page of a shelf returns exactly map_count files, provided changed_since_map is false on every page.

changed_since_map. The page-level flag is true when the workspace has changes still waiting to be folded in, when a removal or correction has happened since the map was built, or when any file on the page is flagged. A file is flagged when it was re-evaluated after the map's as_of. The flag can be a false positive (the page may still be right); it is never a false negative. When it is true, the page may differ from map_count: re-read the map when you need exact counts.

Pagination. Keyset: next_cursor is null on the last page. Pages are in a stable order, and a page never repeats or skips a file while the map generation is unchanged. A cursor is bound to the workspace, the shelf and the map generation. When a newer map generation is published, every older cursor expires: the request is refused with the cursor-expired error below, and you restart from the first page (no cursor). Shelf IDs can change between generations too; after a restart read the map again.

Errors:

Error CodeHTTP StatusMessageCause
152670404The shelf is not in the current Knowledge Map. The map was regenerated: read the map again.shelf_id is not in the current map, or is malformed
103927406The cursor was issued for an older Knowledge Map. Restart from the first page.The cursor belongs to an older map generation
103382406The cursor is not valid for this shelf.A cursor that was edited, or issued for another workspace or shelf
111576406The limit must be between 1 and 100.limit out of range
137909406A validation message naming limit (details in error.params)limit is not a whole number (digits only, at most three)
125003406A validation message naming cursor (details in error.params)cursor is not a single string, or is longer than 2048 characters
130008503The Knowledge Map is temporarily unavailable. Try again shortly.Retry
105923402The Knowledge Map requires a paid plan.params.reason = plan_required
123897403The workspace is not currently active.Archived or disabled workspace
164754500Unable to read the shelf.Unexpected failure; retry

The two 406 cursor errors have the same status; tell them apart by error.code (103927: issued for an older map; 103382: not valid for this shelf), and treat both the same way: restart from the first page. Access refusals are the ones listed under Who can read it. A reader whose organization policy does not allow ai_metadata is not refused: the answer is 200 with state blocked, reason policy and no nodes. A workspace with Knowledge switched off is not refused either: the answer is 200 with state unavailable, reason knowledge_off and nodes: [] (a workspace without a paid plan is still refused with plan_required first).

Reading the Map Before Listing Files

  1. Read the map once. Look at sections.census.data.files, kinds and top_folders for scale, and sections.vocabulary.data.fields for the fields you can filter on.
  2. Read sections.shelves.data.shelves and the cards. Choose the shelf whose label, class or folder matches the task. Trust claims for numbers; use sentences only as a summary.
  3. Page the shelf's nodes with the shelf's id. For a class shelf you can also send its filter to metadata search to narrow further: a filter naming the class (not an exact equivalent of the shelf; see the nodes route).
  4. Check changed_since_map on every page. If it is true and you need exact counts, read the map again. If a cursor is refused as expired, restart from the first page.
  5. Branch on state, freshness and reason, never on the presence of text. A blocked or stale section is still a valid answer; it is the server telling you why it is not fresh.

The map describes prepared files (those the workspace has classified or extracted). A file that has not been prepared yet is counted in the Census but is on no shelf; use storage listing or search for those.


Cloud Sync

Enable Cloud Sync

POST /current/workspace/{workspace_id}/cloud-import/enable/

Enables cloud sync features for a workspace. If already enabled, returns success with a message indicating the current state.

Auth: JWT required. Admin or Owner required. Requires the cloud sync billing feature.

Path Parameters

ParameterTypeRequiredDescription
{workspace_id}stringYes19-digit numeric workspace ID or folder_name

Example

curl -X POST "https://api.fast.io/current/workspace/1234567890123456789/cloud-import/enable/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true,
  "message": "Cloud import features enabled",
  "cloud_import": true
}

Error Responses

Error CodeHTTP StatusMessageCause
10545401Appropriate access is not granted to this Workspace.Not admin or owner
274701402Access to cloud_import requires an upgraded plan.Cloud import not available for this organization; params.reason = plan_required. Surface the error to the user
182343401Cloud import features are not enabled for this workspaceCloud import is not available in this environment
107200500Failed to enable cloud import featuresInternal failure

Disable Cloud Sync

POST /current/workspace/{workspace_id}/cloud-import/disable/

Disables cloud sync features for a workspace. If already disabled, returns success with a message indicating the current state.

Auth: JWT required. Admin or Owner required. Requires the cloud sync billing feature.

Path Parameters

ParameterTypeRequiredDescription
{workspace_id}stringYes19-digit numeric workspace ID or folder_name

Example

curl -X POST "https://api.fast.io/current/workspace/1234567890123456789/cloud-import/disable/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true,
  "message": "Cloud import features disabled",
  "cloud_import": false
}

Error Responses

Error CodeHTTP StatusMessageCause
10545401Appropriate access is not granted to this Workspace.Not admin or owner
274701402Access to cloud_import requires an upgraded plan.Cloud import not available for this organization; params.reason = plan_required. Surface the error to the user
125898500Failed to disable cloud import featuresInternal failure

List Cloud Sync Providers

GET /current/cloudsync/workspace/{workspace_id}/providers/

Lists the cloud providers this workspace's plan may connect, plus what each one can do.

Auth: JWT required. Any access to the workspace (Viewer or above).

Path Parameters

ParameterTypeRequiredDescription
{workspace_id}stringYes19-digit numeric workspace ID or folder_name

Example

curl -X GET "https://api.fast.io/current/cloudsync/workspace/1234567890123456789/providers/" \
  -H "Authorization: Bearer {jwt_token}"

Response (200 OK)

{
  "result": true,
  "providers": ["google_drive", "box", "onedrive_business", "dropbox"],
  "capabilities": {
    "google_drive": { "connect_method": "oauth", "supports_drive": true, "requires_drive": false, "read_only": false },
    "box": { "connect_method": "oauth", "supports_drive": false, "requires_drive": false, "read_only": false },
    "onedrive_business": { "connect_method": "oauth", "supports_drive": true, "requires_drive": true, "read_only": false },
    "dropbox": { "connect_method": "oauth", "supports_drive": false, "requires_drive": false, "read_only": false }
  }
}

providers is unchanged — a plain list, in the order the plan grants them. capabilities is a sibling object keyed by the same provider ids, always present (an empty object when no provider is available), so a client can index it without a type check:

FieldTypeMeaning
connect_methodstringoauth — the user signs in through a browser (Google Drive, Box, OneDrive for Business, Dropbox); credentials — the connect form takes a key pair instead (s3; see Connect S3-Compatible Storage below)
supports_driveboolThe provider has a drive catalog a source may pick from (see List Identity Drives below). true for Google Drive and OneDrive for Business; false for Box, Dropbox and S3
requires_driveboolA source on this provider must name a drive — drive_id cannot be omitted. true for OneDrive for Business only: Google Drive supports a drive (a Shared Drive) without requiring one, since no drive selected is My Drive
read_onlyboolEvery source of this provider is read-only (one-way import). true for s3, false for the others — and a specific SOURCE of another provider can still be read-only by what it connects to (a Google Shared Drive; see Google Workspace Shared Drives below), which is a property of the source, not the provider

Error Responses

Error CodeHTTP StatusMessageCause
10545401Appropriate access is not granted to this Workspace.No access to the workspace
147688412Your plan does not include cloud connections.The organization permits zero sync sources; params.reason = plan_required. See An Organization With No Cloud Connections Refuses at the Door below

When Cloud Sync Stops Being Available

A workspace whose organization no longer has cloud sync available keeps everything it has already imported. Its sources move to suspended_plan at their next scheduled check: the imported files, the import folder and the link to the remote folder are all kept, and only scheduling stops — nothing syncs in and nothing writes back while a source sits there.

Nothing has to be repaired. A source in suspended_plan resumes on its own at the next check once cloud sync is available to the workspace again; there is no call to make and no reconnect to redo.

Read it as its own state rather than as an idle healthy source: it is reported in the source's status like any other value, and a source that has stopped syncing for this reason looks identical to a quiet one in every other field.


When the Workspace Is Deleted

Deleting a workspace — or closing the org that owns it — does not disconnect its cloud-sync sources, because a deleted workspace can be restored for a while. Instead each source moves to suspended_workspace at its next scheduled check: the imported files, the import folder and the link to the remote folder are all kept, and only scheduling stops — nothing syncs in and nothing writes back while a source sits there. The check that found the workspace deleted is recorded once as a failed job; no further jobs run for the source while it is suspended.

If the workspace is restored, the source resumes on its own within about a day: it goes back to synced and syncs at the next opportunity, with the same files and the same connection — nothing is re-imported. There is no call to make and no reconnect to redo. If the workspace is never restored, its sources are removed together with the rest of the workspace when the deletion becomes permanent.

Deleting a workspace never revokes a connected account that serves the rest of the organization. A connected account belongs to its owner within the organization (see Connected Accounts per Organization below), so it stays connected even when the workspace it was first connected from is deleted, and its sources in the organization's other workspaces keep syncing. When the deletion becomes permanent, only accounts that served this workspace alone are revoked — those connected in a workspace with no organization. Closing the organization revokes every account connected in it once the organization's own deletion becomes permanent, after its workspaces.

A source in suspended_workspace cannot be resumed or refreshed by hand (update/ with action: resume and refresh/ both answer 409); it can still be paused, or disconnected.


When the Org or Workspace Policy Restricts Cloud Sync

See Cloud Sync Policy above for the org cloud_sync envelope and the workspace cloud_sync_mode ceiling. Two outcomes, driven by the two halves of that policy:

Every cloud-sync source object (list, details, and the sources/create/ and details/{source_id}/update/ responses) carries effective_access_mode and effective_access_mode_reason beside access_mode / enforced_access_mode: the actual behavior for the calling principal once the policy is applied, in the source's own read_only / read_write vocabulary (not the policy's read / read_write vocabulary — the two are never conflated). It is the caller's own resolved policy met with the policy of the member who owns the source's connected account (the write-back runs under that account), then capped by the source's own access_mode — so a read_only source is never reported read_write, and a permissive caller still sees read_only when the owner's policy is read. effective_access_mode_reason is null, cloud_sync_disabled or cloud_sync_read_only. Both fields are null when the answer could not be determined (the policy could not be read, or the caller or the account's owner could not be resolved); null is never permissive.

Timestamp format change. The cloud-sync source object's last_sync_at, next_sync_at, created and updated are now emitted as YYYY-MM-DD HH:MM:SS UTC — the canonical API datetime format. They previously omitted the UTC suffix. A client that parses these fields with a fixed pattern must accept the suffix.


An Organization With No Cloud Connections Refuses at the Door

An organization can have cloud sync as a feature but allow no cloud connections at all. In that case the whole connect flow is refused up front — the providers listing, identities/provision/, and the OAuth completion endpoint all answer:

Error CodeHTTP StatusMessageCause
147688412Your plan does not include cloud connections.The organization permits zero sync sources; params.reason = plan_required

This is a settled answer; do not retry. Surface the error to the user. It is deliberately raised before an identity is created and before a consent screen is shown, so a user is never asked to hand a cloud credential to an account that could not use it. On the OAuth completion it is raised before the authorization code is redeemed, so an entitlement that lapsed while the consent screen was open leaves nothing stranded at the provider — start again from provision once connections are available to the organization.

Do not confuse it with 134248 → 503 on the same endpoints, which means the organization's entitlements could not be determined right now and the request is worth retrying shortly. Gate on the HTTP status first: 412 is the settled answer, 503 is "ask again".


Connected Accounts per Organization

A provider identity (a connected cloud account) belongs to a user within an organization, not to the workspace it was first connected from, and it can be used in every workspace of that organization where the user is a Member — connect Dropbox once, then browse, estimate and create sources from it in any of those workspaces, each through that workspace's own /current/cloudsync/workspace/{workspace_id}/... routes. A user may hold several identities of one provider in an organization — a personal and a work account, say — one per cloud account: two live identities can never point at the same account. See Connecting Several Accounts of One Provider below. Always address an identity by its id, never by its provider. A different organization has its own set: an identity is never usable from another organization's workspace, and naming one there is refused with the same error that route gives an identity that does not belong to the workspace (for example 178568 → 401 on identities/{identity_id}/). A workspace with no organization is its own scope, so its identities serve that workspace only.

Fail-closed errors. When the workspace's organization, or the identities its sources use, cannot be read, these calls refuse rather than guess — retry shortly:

Error CodeHTTP StatusMessageEndpoint
174500500Import operations temporarily unavailableidentities/provision/
199242500Import operations temporarily unavailableidentities/
138123 / 136456500Failed to retrieve provider identitiesidentities/ — the identities this workspace's sources use could not be read
123152500Import operations temporarily unavailableidentities/{identity_id}/ — the workspace's sources could not be read

When a Member Leaves or Is Removed

Leaving a workspace and being removed from it by an admin have the same effect on cloud sync, and so do leaving and being removed from the organization.


Listing Sources by Connector Owner

GET /current/cloudsync/workspace/{workspace_id}/sources/ accepts an optional owner query parameter that narrows the list to the sources whose connected account belongs to one member — exactly the sources that member's removal from this workspace would disconnect. Use it to warn a member before they leave, or an admin before they remove someone.

ValueWho may send it
owner=meAnyone who can list the workspace's sources
owner={user_id}The caller's own id behaves like me; another member's id needs workspace admin

Ownership fields on every source. Each source in the list response — filtered or not — carries:

FieldTypeDescription
ownerobject or nullThe member who owns the connected account the source syncs through: { "user_id": string, "name": string }. name is the member's given and family name and can be an empty string. null when that user no longer exists or the connected account cannot be read
account_email_maskedstring or nullThe connected account's address, masked for every caller including its owner (the first three characters of the local part, then ***@ and the domain, e.g. cas***@contoso.com). The owner sees the full address on identities/. null when the connected account has no address or cannot be read
{
  "id": "{source_id}",
  "status": "synced",
  "is_owner": false,
  "owner": { "user_id": "{user_id}", "name": "Casey Jordan" },
  "account_email_masked": "cas***@contoso.com"
}

Errors:

Error CodeHTTP StatusMessageCause
166464406The owner filter must be "me" or a user idowner is empty, repeated as an array, or not me or a user id
129298403Only a workspace admin can list another member's sourcesowner names another member and the caller is not a workspace admin
115708500Failed to retrieve import sourcesThe filtered list could not be read — retry shortly

Provision Provider Identity

POST /current/cloudsync/workspace/{workspace_id}/identities/provision/

Starts a connection for the specified cloud provider and returns immediately. All four browser providers (Google Drive, Box, Dropbox, OneDrive for Business) behave identically: the connection is completed by the person signing in to their OWN cloud account. S3-compatible storage is the exception: it connects with an access key pair and no browser, and the key is checked in the background — see Connect S3-Compatible Storage below. There is no longer a robot-account family.

Browser providers — connected by the user, in a browser. The response carries status: "provisioning" plus an authorize_url, and the identity becomes "active" only once the user completes the consent screen and your app posts the result back — see Complete a Browser OAuth Connect below. There is no address to share a folder with. S3-compatible storage also answers status: "provisioning", with no authorize_url: the key pair is checked in the background and the identity moves to active or error on its own — poll the identity. Google Drive and Box previously created a robot account inside Fastio's own Google and Box tenants; that model has been removed entirely.

Provisioning requires workspace Member on every provider. A Viewer is refused: the resulting grant is only ever usable by someone who can create a source, so issuing one to a Viewer would mint a live credential its owner could never use.

Three ways to call it — pick by what the user asked for:

An identity in error or revoked state can be re-provisioned. A provisioning OAuth identity is returned as-is, without a fresh authorize_url, while its consent could still be live — so a user who abandoned the browser tab cannot immediately retry. That row is reclaimable: provision it again after about 15 minutes (once its sign-in link can no longer be completed) and a new authorize_url is issued, or revoke it and provision to recover sooner.

Such an identity carries properties.oauth_pending: true, and that marker is part of this contract — it is set by every provider, it is visible to non-owner callers, and it is cleared when the connect completes. It exists so a client can tell "waiting for a person to finish a consent screen" apart from "the server is still working", which otherwise look identical: both report status: "provisioning".

Read it together with authorize_url — authorize_url is issued only on the provision response and never appears when polling the identity afterwards. So provisioning + oauth_pending: true + no authorize_url is terminal by construction: no amount of polling will produce a link, and the connection must be restarted rather than waited on.

connect_abandoned (boolean) is on every identity returned by the list, detail and provision endpoints. It is true when such a provisioning identity has sat unfinished past that ~15-minute window: the consent was abandoned and will never complete, so show a reconnect action rather than a "connecting" state. To reconnect it, call identities/provision/ with the same provider and identity_id set to that identity’s id (no intent): the response carries a fresh authorize_url for that same identity — no revoke is needed. Send the identity_id: a provider-only call returns the user’s main connection for the provider, which may be a different identity, and never one started with intent=new. It is false for every other identity, including a provisioning one whose consent may still be in progress.

An abandoned identity nobody returns to is closed out once it has gone 24 hours without a change. It ends revoked when it was a new connection (intent=new), was reconnecting a revoked connection, or never held a connected account or sync source; otherwise — when it was reconnecting a connection already in error, or it holds a connected account or sync source — it ends error. Either way it carries properties.connect_error_code: "abandoned", and provisioning again starts a fresh sign-in.

Auth: JWT required. The identity is owned by the caller, and the floor is Member on every one of the four providers — there is no per-provider carve-out, and a Viewer who could connect before is refused now. See Provisioning requires workspace Member above.

Request Body (JSON)

Send Content-Type: application/json. This endpoint parses a JSON body and rejects a form-encoded one with 127872 Invalid JSON in request body.

FieldTypeRequiredDescription
account_typestringNoOneDrive only. work (default) or personal. Selects which kind of Microsoft account the consent screen accepts, and sizes the permissions requested to it: a personal Microsoft account has no SharePoint and cannot consent to any Sites.* permission, so requesting one would fail the whole consent. Ignored by the other providers; omit it and you get work, which is the previous behaviour. A new connection (intent=new) uses the value sent with it, never one from another connection
identity_idstringNoReconnect exactly this identity. It must be yours, of this provider, and in this workspace's organization. Cannot be combined with intent
intentstringNonew starts a new connection of the provider (another account). Omit it for the single-connection behaviour
providerstringYesgoogle_drive, box, onedrive_business, dropbox, or s3 (S3 takes the extra fields in Connect S3-Compatible Storage below). Which of these a workspace may actually connect varies, and the organization's features are only part of what decides it — a provider can be unavailable to a workspace even when cloud connections are available to it — read the workspace's providers endpoint rather than assuming all four
separate_fromstringNoWith intent=new only: the id of one of your revoked identities of this provider. A new connection to that identity's account is created beside it instead of being refused as parked_connection_match, and the revoked identity keeps its paused sources

Response (200 OK)

{
  "result": true,
  "identity": {
    "id": "abc123...",
    "profile_id": "1234567890123456789",
    "provider": "google_drive",
    "identity_email": "provisioning-pending",
    "status": "provisioning",
    "created": "2026-07-23 16:37:29 UTC",
    "updated": "2026-07-23 16:37:29 UTC"
  },
  "authorize_url": "https://accounts.google.com/o/oauth2/v2/auth?...",
  "instructions": "Open the authorization link to sign in and connect your own account."
}

Error Responses

Error CodeHTTP StatusMessageCause
172420406Unsupported provider: <provider>Invalid provider name
197845, 122987 or 108624401This action requires workspace member permissionsCaller is below Member — on any of the four providers. One message, three call sites: 197845 when the permission level is below Member, 122987 when the caller has no user id, 108624 when the permission lookup itself failed
147688412Your plan does not include cloud connections.The organization permits zero sync sources; params.reason = plan_required — settled; do not retry, surface the error to the user
144236412You have reached the maximum of N cloud connections in this organization.The plan's total connection cap is reached; params.reason = connection_limit_total. Checked before any consent screen. Reconnecting an identity that already counts is never refused for this
147288412You have reached the maximum of N {Provider} connections in this organization.The plan's per-provider cap is reached; params.reason = connection_limit_provider
147989406intent must be: newintent is something other than new
112063406intent=new starts a new connection and cannot be combined with identity_idBoth were sent
148066406separate_from is only accepted with intent=newseparate_from without intent=new
165191406separate_from must name one of your disconnected connections of this providerseparate_from is not one of the caller's revoked identities of this provider in this organization
126991404Provider identity not foundidentity_id names no identity
183289401Identity does not belong to this workspaceidentity_id names an identity of another organization
116384403Only the owner of the connected cloud account can reconnect itidentity_id names someone else's identity
146474406identity_id names a connection of a different provideridentity_id and provider disagree
111451409This connection cannot be reconnected. Create a new connection instead.identity_id names a revoked identity that can never come back
111783409That {Provider} account is already connected as another connection.Reconnecting identity_id would make a second live connection to its account; params.reason = account_already_connected, params.connected_identity_id = the identity that holds it
147146409Adding another {Provider} account is not available yet.intent=new on a provider the caller already holds, or an identity_id reconnect while another identity of that provider is live, where several accounts per provider are not enabled yet; params.reason = multi_account_not_enabled. Show a generic message
163435503That {Provider} account's other connection is being disconnected. Try again in a moment.An identity_id reconnect collided with a connection to its account that has just been disconnected; params.reason = account_busy — retry shortly
179470503Identity provisioning in progress, please retryAnother provision for this owner is still in progress — retry shortly
174500500Import operations temporarily unavailableThe workspace's organization could not be determined — retry shortly
105962403Cloud sync is turned off for this organization.The org or workspace cloud-sync policy resolves to enabled: false for the caller. params.reason = cloud_sync_disabled. See Cloud Sync Policy
178934, 178341503Cloud sync policy is temporarily unavailable. Please try again shortly.The cloud-sync policy could not be read — retry shortly

Connect S3-Compatible Storage

POST /current/cloudsync/workspace/{workspace_id}/identities/provision/

provider: "s3" connects one bucket on an S3-compatible object store with an access key pair instead of a browser sign-in. It uses the same endpoint, the same intent / identity_id rules, the same per-owner connection limits and the same Member floor as every other provider — a Viewer is refused. Check the providers endpoint first: capabilities.s3.connect_method is "credentials" and capabilities.s3.read_only is true.

S3 connections are read-only. Every source created from one imports only — access_mode must be omitted (it defaults to read_only) or read_only; read_write is refused at source create and update (see the error table below). The folder to import is chosen per source as remote_path (a key prefix in the bucket), exactly as for any other provider — browse it with sources/discover/. To import the whole bucket, use remote_path: "/". A leading / on any other path is dropped (/photos and photos are the same folder). A whole-bucket source has no folder name, so send remote_name (the bucket name, say). The keys need permission to list the bucket itself (ListBucket on the bucket, not only on a prefix): the connection check lists the bucket.

Known limitations. Object keys that begin with / are not addressable: leading slashes are ignored, so such objects cannot be imported. Google Cloud Storage (gcs) bucket names must follow the S3 naming rules in the table below (no underscores), even where Google Cloud Storage itself allows them.

Request body (JSON) — flat keys:

FieldTypeRequiredDescription
providerstringYess3
s3_presetstringYes (new connection)The storage vendor: aws (Amazon S3), r2 (Cloudflare R2), wasabi, b2 (Backblaze B2), digitalocean (DigitalOcean Spaces), or gcs (Google Cloud Storage, HMAC keys). Custom endpoints are not supported
s3_regionstringaws, wasabi, b2, digitaloceanaws: an AWS region code such as us-east-1. wasabi / b2 / digitalocean: the vendor's region label, exactly one DNS label (us-east-2, us-west-004, nyc3). Ignored for r2. Optional for gcs (defaults to auto)
s3_account_idstringr2 onlyYour Cloudflare account id — 32 lowercase hex characters
bucketstringYes (new connection)The bucket name: 3–63 lowercase letters, digits, dots or hyphens, starting and ending with a letter or digit, no .., not an IP address
access_key_idstringYesThe access key id. 1–256 printable characters, no spaces
secret_access_keystringYesThe secret key. 1–256 printable characters, no spaces. Never returned by any endpoint
intentstringNonew — another connection (a different bucket). See Three ways to call it above
identity_idstringNoReconnect exactly this S3 connection with new keys. See Reconnect below

The connection is identified by its vendor endpoint and bucket: connecting a bucket you already have connected answers that connection, and a different bucket is a different connection.

Response (200 OK) — no authorize_url; there is nothing for the user to open:

{
  "result": true,
  "identity": {
    "id": "abc123...",
    "provider": "s3",
    "identity_email": "my-bucket · aws",
    "status": "provisioning",
    "properties": {
      "s3_preset": "aws",
      "bucket": "my-bucket",
      "s3_region": "us-east-1",
      "access_key_id": "{access_key_id}"
    },
    "created": "2026-11-08 16:37:29 UTC",
    "updated": "2026-11-08 16:37:29 UTC"
  },
  "instructions": "This connection is still being set up. Once it reports as active, read the connection for its setup instructions."
}

identity_email is a display label for an S3 connection (<bucket> · <preset>), not an address. properties carries the non-secret settings (s3_preset, bucket, s3_region where the preset uses one, s3_account_id for r2, and access_key_id); the secret key is never returned.

Then poll the identity — GET /current/cloudsync/workspace/{workspace_id}/identities/{identity_id}/ — until identity.status leaves provisioning. The key is checked against the bucket in the background with one listing request; this usually takes seconds.

connect_error_codeMeaningWhat to do
bad_credentialsThe access key id or secret key was refusedReconnect with the right keys
bucket_not_found_or_deniedThe bucket does not exist, or the key may not list it (the storage service does not always say which)Check the bucket name and the key's permissions
region_mismatchThe bucket could not be reached in the region givenConnect again with the bucket's region
credential_store_failedThe stored key could not be readReconnect with your keys
missing_fieldThe connection's stored settings are incompleteConnect again
probe_failedThe storage service could not be reached after retriesTry again later
provision_failedThe check could not be completedConnect again
not_permittedThe connection is no longer allowed here (workspace closed, membership, or organization policy)Nothing to retry

Reconnect (new keys). Send provider: "s3", identity_id, access_key_id and secret_access_key, and omit intent, s3_preset, s3_region, s3_account_id and bucket — those name the connection and cannot change. Sending one with a different value is refused (field_locked); sending the same value is accepted. This works on an active connection as well as on an error or disconnected one: the identity moves to provisioning, the new keys are checked, and every source already bound to it keeps syncing the same bucket. To connect a different bucket, create a new connection instead.

Error Responses (in addition to the provision errors above):

Error CodeHTTP StatusMessageCause
187005406"{field} is required"A required field is absent or empty. params[0] = {"name": "{field}", "kind": "missing", "reason": "missing_field"}
169382406Names the rule the field brokeA field is present but not acceptable (preset not offered, region not valid for the preset, malformed account id, bucket name, or key). params[0] = {"name": "{field}", "kind": "invalid", "reason": "invalid_field"}
157668406"{field} cannot change on a reconnect; omit it, or create a new connection"A reconnect sent a bucket setting that differs from the connection's. params[0] = {"name": "{field}", "kind": "invalid", "reason": "field_locked"}
110637409"This connection's bucket settings could not be read. Create a new connection instead."A reconnect of a connection whose stored settings are unreadable
194584409"That bucket is already connected. Reconnect that connection instead." / "That bucket's connection is being set up or disconnected. Try again in a moment."intent=new for a bucket you already connect. params.reason = account_already_connected (or account_busy while it is being set up or disconnected); params.connected_identity_id names it
108790409"This bucket matches a disconnected S3-compatible storage connection that still has paused syncs. Restore that connection, or keep the new one separate."intent=new for the bucket of a disconnected connection that still owns paused sources. params.reason = parked_connection_match, params.conflict_identity = {identity_id, identity_email, disconnected_at, parked_source_count}. Restore it with identity_id, or resend with separate_from
147146409"Adding another S3-compatible storage account is not available yet."A second bucket where several connections per provider are not enabled yet; params.reason = multi_account_not_enabled
132109500"Failed to start S3-compatible storage connection"The connection could not be saved — retry shortly
172028, 104667500"Import operations temporarily unavailable"Your existing connections could not be read — retry shortly
126879406"Sources from S3-compatible storage are read-only. Use access_mode \"read_only\"."sources/create/ or details/{source_id}/update/ with access_mode: "read_write" on an S3 source. params[0] = {"name": "access_mode", "kind": "invalid", "reason": "provider_read_only"}
175979500"Import operations temporarily unavailable"details/{source_id}/update/ with access_mode: "read_write" could not read the source's connection — retry shortly

Connecting Several Accounts of One Provider

A user can connect more than one account of the same provider in an organization — for example a personal and a work OneDrive, or two Google accounts. Each is its own identity with its own id; every source, browse and revoke names the identity by id.

  1. Start it with intent=new. POST .../identities/provision/ with provider and intent=new returns a new provisioning identity and an authorize_url. The consent screen lets the user pick the account: Google Drive shows its account chooser; Dropbox asks the user to sign in again; OneDrive already asks which account to use; Box has no account chooser — to add a second Box account, the user must sign out of Box in the browser first, then start the connection.
  2. Complete it as usual (Complete a Browser OAuth Connect), then poll the identity you started. A different account becomes active. Otherwise the new identity ends revoked with one of account_already_connected, account_busy, reconnect_existing_first or parked_connection_match in properties.connect_error_code, and a pointer to the identity to act on. A new connection that is declined or fails (declined, exchange_failed, activation_failed, …) also ends revoked, with that reason. A revoked new identity never counts against the cap. Two exceptions when two new connections to one account finish at the same moment: the one that loses can end account_busy without connected_identity_id (the other connection was already gone), and if the loser cannot be re-read at all the response is activation_failed while the new identity stays provisioning until it is abandoned (about 15 minutes) — start again.
  3. A matching disconnected connection is the user's choice. When the account belongs to a disconnected identity that still has paused sources (parked_connection_match), nothing is merged silently. Restore reconnects that identity with identity_id, and its sources resume. Keep separate sends intent=new with separate_from naming it: a new identity is created and the disconnected one keeps its paused sources. Both need one more consent screen.
  4. Reconnect a specific identity with identity_id — for example one that is in error. While the identity still has sources, the user must sign in to the SAME account; a different account is refused with account_mismatch. An identity with no sources can switch accounts after it is disconnected (revoked); an identity in error is reconnected to the same account only.

Calling provision with only provider keeps the single-connection behaviour: it returns the user's existing identity for that provider.


Complete a Browser OAuth Connect

POST /current/cloudsync/oauth/{provider}/complete/

Finishes a connection started by provision. {provider} is dropbox, onedrive, box or google_drive — all four use this endpoint.

After the user consents, the provider redirects the browser to a route on the app origin — https://go.{host}/imports/oauth/{provider}/callback — which is a front-end route, not an API one. That route reads code and state out of its own URL and posts them here, on the signed-in user's session. All four providers work exactly this way; there is deliberately no public callback endpoint for any of them, and the previous Dropbox one (GET /current/cloudsync/oauth/dropbox/callback/) has been removed.

The session is what binds the flow to a person. A state token identifies the connection, not the human holding it, so an authorize_url that gets forwarded to a colleague would otherwise attach their cloud account to your identity — whose owner could then read, and on a read_write source write, their files. Requiring the completion to arrive on the originating user's session closes that: anyone else gets HTTP 401.

Post the decline, too. When the user refuses consent the provider sends back an error instead of a code; post { "state": …, "error": … } so the identity is marked. Without it the identity sits provisioning with nothing coming to finish it.

Authentication is checked before the state is consumed, so a session that lapsed during a slow consent returns 401 with both the state and the code still redeemable — refresh the session and post the same pair once more. State tokens are single-use and short-lived (about ten minutes, matched to the provider's own code lifetime); a replayed, expired, tampered or unknown one is rejected.

Auth: JWT required. The caller must BE the user who started the connection.

Request Body (JSON)

FieldTypeRequiredDescription
statestringYesThe state value the provider handed back
codestringConditionalThe authorization code. Required unless error is sent
errorstringConditionalThe provider's error value when the user declined. Required unless code is sent

Response (200 OK)

{
  "result": true,
  "identity": {
    "id": "abc123...",
    "profile_id": "1234567890123456789",
    "provider": "onedrive_business",
    "identity_email": "casey@contoso.com",
    "status": "active",
    "created": "2026-08-09 16:37:29 UTC",
    "updated": "2026-08-09 16:38:04 UTC"
  },
  "connected": true,
  "connect_error_code": null
}

connected and connect_error_code report the outcome directly, so the result does not have to be discovered by polling the identity afterwards.

connect_error_codeMeaning
nullConnected; identity is active
declinedThe user refused consent
exchange_failedThe provider would not exchange the code
account_read_failedThe code was exchanged, but the follow-up call asking the provider which account just connected failed. Distinct from exchange_failed because the sign-in itself worked; retrying is still the right suggestion
credential_store_failedThe credential could not be stored
activation_failedThe identity could not be activated
insufficient_scopeOneDrive only. The tenant withheld a permission the importer cannot work without, so the signed-in user cannot fix it by retrying. The response also carries an admin_consent_url a tenant administrator can open
scope_not_grantedConsent completed but omitted a permission the connection needs, and the user can fix it — for example, on Google Drive the user approved sign-in but left Drive access unticked. Reconnecting and approving that permission is the fix; no consent URL is returned
account_mismatchThe consent was completed with a different cloud account than the one this identity was set up with. The connection is not switched to the other account: a disconnected identity goes back to revoked and its paused sources never resume against the other account, and an identity in error stays error. The only reconnect that switches account is one of a disconnected (revoked) identity with no sources, or of one with no recorded account. properties.mismatch_signed_in_email (owner only) names the account the user actually signed in with. To use another account, create a new connection with intent=new
account_already_connectedNew connection. That account is already one of the user's identities: identity.properties.connected_identity_id names it — use that one; if it is in error, reconnect it with identity_id. Nothing is stored on either identity. The new identity ends revoked. Also returned by a reconnect (identity_id, or provider alone) that signed in to an account another of the user's live identities already holds: the reconnected identity keeps its own account and goes back to revoked or error, and connected_identity_id names the one that holds the account
account_busyNew connection. That account's identity (properties.connected_identity_id) is being set up or disconnected right now — retry shortly. The new identity ends revoked
reconnect_existing_firstNew connection. Another identity of this provider (properties.reconnect_identity_id) has no recorded account, so a new one cannot be proven to be a different account. Reconnect that one with identity_id first. The new identity ends revoked
parked_connection_matchNew connection. The account belongs to a disconnected identity that still has paused sources — properties.conflict_identity = {identity_id, identity_email, disconnected_at, parked_source_count}. Nothing was stored. Ask the user: restore (provision with identity_id = that id) or keep separate (provision with intent=new and separate_from = that id). The new identity ends revoked
legacy_app_onlyThe identity predates per-user sign-in and can no longer be used. It was created under the old model, where Fastio held a robot account in its own tenant. No path can give such a row a per-user credential, so it fails closed rather than erroring deep inside a sync. Clients should surface a reconnect prompt: disconnect and provision again to authorize your own account. Sources bound to it stop syncing until then
sign_in_policyOneDrive only. Recorded on an existing identity, not returned by this completion call: the organization’s Microsoft sign-in policy (conditional access or multi-factor authentication) refused a background token refresh, so the connection cannot renew itself until someone signs in interactively. The identity moves to error and its sources stop syncing. Clients should surface a reconnect prompt: reconnect and complete the Microsoft sign-in prompt; if it keeps failing, the organization’s Microsoft administrator has to review the sign-in policy

Request faults — a bad state, the wrong caller, an unknown identity — are ordinary 4xx errors, not a connect_error_code.

Error Responses

Error CodeHTTP StatusMessageCause
—406Invalid JSON in request bodyBody is not valid JSON
—406Missing or invalid connection stateNo state field
—406This connection link has expired or was already used. Start the connection again.Unknown, replayed, expired or tampered state
—406Missing authorization codeNeither code nor error was sent
—401This connection was started by a different user.The caller is not the user the state was issued to
—401This connection state does not match the connection it names.The state and the identity it names disagree
—404The connection being completed no longer exists.The identity was removed while consent was open
—500Failed to load the connection being completed.The identity could not be read, before the authorization was redeemed
—500The connection could not be verified after authorization; start a new connection.The identity could not be read after the authorization was redeemed
147688412Your plan does not include cloud connections.The organization permits zero sync sources; params.reason = plan_required. Raised before the authorization code is redeemed, so the code is unspent and nothing is stranded at the provider — settled; once connections are available to the organization, start again from provision
—500This connection is no longer waiting to be completed.The identity is no longer provisioning
105962403Cloud sync is turned off for this organization.The cloud-sync policy was switched off while consent was open. params.reason = cloud_sync_disabled. Raised before the authorization code is redeemed. See Cloud Sync Policy
178934, 178341503Cloud sync policy is temporarily unavailable. Please try again shortly.The cloud-sync policy could not be read — retry shortly

Three outcomes, and the MESSAGE tells them apart — the HTTP status alone does not. Each also carries its own error.code, but those codes differ per provider. The 404 is settled: the identity is genuinely gone, and reposting the same code and state cannot bring it back — start again from provision. A 500 reading “Failed to load the connection being completed.” happens before the authorization is redeemed: the grant is still good and the code is unspent, so post the same code and state again. A 500 reading “The connection could not be verified after authorization; start a new connection.” happens after the authorization has already been redeemed — the code is spent and reposting it will fail, so start again from provision. Reposting a spent authorization does not just fail; it marks the pending connection as failed, which is worse than doing nothing.

A completion that arrives for an identity already active is treated as success and returns the identity rather than an error — a double-posted callback is safe.


Revoke Provider Identity

POST /current/cloudsync/workspace/{workspace_id}/identities/{identity_id}/revoke/

Begins revocation of a provider identity. The provider-side deletion happens in the background; the endpoint returns immediately with status: "revoking". Poll the identity detail or list endpoint until status is "revoked". If a revocation is already in progress for this identity, the endpoint returns an error.

It reaches every workspace of the organization. One identity serves all of the organization's workspaces, so revoking it stops every source that syncs through it, wherever it lives: each is parked in error with the message "Provider identity revoked" (a paused source stays paused). {workspace_id} may be any workspace of the organization the owner can open — not only the one the identity was first connected from. To stop one folder in one workspace, disconnect that source instead.

Auth: JWT required. The identity's owner only — a workspace admin is refused (196524); admins can still disconnect or delete the sources in their workspace. The credential must also cover the whole organization: a sign-in session, or an API key or token scoped to the organization with write access. A credential scoped to a single workspace is refused even for the owner (175899), because the revoke reaches the organization's other workspaces. In a workspace with no organization, a credential scoped to that workspace qualifies.

Response (200 OK)

{
  "result": true,
  "identity": {
    "id": "abc123...",
    "profile_id": "1234567890123456789",
    "provider": "google_drive",
    "identity_email": "member@example.com",
    "status": "revoking",
    "created": "2026-07-23 12:00:00 UTC",
    "updated": "2026-07-23 16:37:29 UTC"
  }
}

Error Responses

Error CodeHTTP StatusMessageCause
176936 / 145733503Identity revocation already in progressRevoke already running for this identity — retry shortly
168196503This connection is busy. Try again in a moment.Another operation on this identity (e.g. a concurrent OAuth completion) is still in progress — retry shortly
117111 / 126939409Identity is already revokedSettled — this identity is already revoked, and retrying will never change that
181176, 173357, 115804404Provider identity not foundUnknown identity ID
144363401Identity does not belong to this workspaceThe identity belongs to another organization
196524403Only the owner of the connected cloud account can disconnect itThe caller is not the identity's owner (workspace admins included). Settled — route the request to the owner
175899403This connected account is shared across the organization. Use a session or an organization-scoped API key to disconnect it.The credential does not cover the organization — a workspace-scoped API key or token, or an organization-scoped one without write access. Settled for this credential — retry with a session or an organization-scoped key

Identity Statuses

StatusDescription
provisioningBrowser providers: the user has not finished the browser consent yet. Polling will not advance it on its own — a person has to complete a consent screen. S3-compatible storage: the key pair is being checked in the background (usually seconds) — poll until it leaves provisioning
activeIdentity is ready. On all four browser providers identity_email is the connected account's own address (on S3-compatible storage it is the label <bucket> · <preset>). OneDrive has one fallback: a Microsoft account that reports no address at all gets a synthetic label of the form onedrive-user:{16 hex characters} instead, so an active identity is never left showing a pending placeholder. Treat the value as a display label, not an address to route mail to
errorProvisioning or the browser connect failed; the identity can be re-provisioned
revokingRevocation is in progress; poll until revoked
revokedIdentity has been revoked; the identity can be re-provisioned

List Identity Drives

GET /current/cloudsync/workspace/{workspace_id}/identities/{identity_id}/drives/

Lists the drives this identity can reach — for OneDrive for Business, the connected user's own OneDrive plus the SharePoint libraries their account has access to; for Google Drive, the account's Shared Drives. OneDrive for Business and Google Drive only — Box and Dropbox return an error, because neither provider makes the caller choose a drive.

A OneDrive identity is one connected Microsoft account — work or school, or personal. A work or school account can usually reach several libraries with no meaningful default among them; a personal account has exactly one drive and no SharePoint. Which library an import uses is therefore a per-source choice, made from this catalog and fixed when the source is created.

Google Drive's “My Drive” is never a row in this catalog. A Google source with no drive_id selected syncs My Drive, exactly as before this catalog existed. Only a Shared Drive needs to be picked from here — see Google Workspace Shared Drives below.

This endpoint answers from stored rows and never contacts the provider. To rebuild the catalog, call the refresh endpoint below.

Auth: JWT required. The identity owner only — on every provider. Every catalog enumerates the connecting person's own cloud account, so a workspace admin browsing one would be reading that member's personal account; there is no admin override on any of the four. Admins keep the power to disconnect or delete a source in their workspace (revoking the identity itself is the owner's alone); what they cannot do is browse it. The owner must also be a Member of the workspace in the URL. The same gate covers the discovery RESULT — polling a discovery job returns the folder listing, so it is owner-only too.

Query Parameters

ParameterTypeRequiredDescription
site_pathstringNoReturn only the libraries discovered through this SharePoint site path
limitintNoPage size (default 100, max 500)
offsetintNoPage offset (default 0)

Response (200 OK)

{
  "result": true,
  "identity_id": "abc123...",
  "provider": "onedrive_business",
  "drives": [
    {
      "drive_id": "b!X9tKqL3mEkO7nQfR2sVwYzA1bCdEfGhIjKlMnOpQrStUvWxYz0123456789AbCdEf",
      "drive_type": "documentLibrary",
      "name": "Documents",
      "site_name": "Marketing",
      "web_url": "https://contoso.sharepoint.com/sites/Marketing/Shared%20Documents",
      "is_default": false,
      "site_path": null
    }
  ],
  "drives_state": "ready",
  "drives_refreshed_at": "2026-08-03 16:42:11 UTC",
  "drives_error": null,
  "requires_site_path": false,
  "site_path": null,
  "pagination": { "limit": 50, "offset": 0, "total": 1 }
}

site_name is worth rendering: nearly every SharePoint site has a library called “Documents”, so the library name alone is often ambiguous.

A Google Shared Drive row looks like this — site_name and site_path are always null (Google has no SharePoint-style site concept), and web_url points at the Shared Drive's own folder view:

{
  "result": true,
  "identity_id": "xyz789...",
  "provider": "google_drive",
  "drives": [
    {
      "drive_id": "0AIl2zXUjlaGZUk9PVA",
      "drive_type": "google_shared_drive",
      "name": "Design Team",
      "site_name": null,
      "web_url": "https://drive.google.com/drive/folders/0AIl2zXUjlaGZUk9PVA",
      "is_default": false,
      "site_path": null
    }
  ],
  "drives_state": "ready",
  "drives_refreshed_at": "2026-11-08 09:12:40 UTC",
  "drives_error": null,
  "requires_site_path": false,
  "site_path": null,
  "pagination": { "limit": 50, "offset": 0, "total": 1 }
}

Branch on drives_state, not on the length of drives. An empty catalog is the NORMAL state on a first connection — nothing is enumerated until a refresh is asked for — so drives: [] on its own cannot say whether nobody has looked yet, an enumeration is running, access was refused, or the account genuinely reaches no libraries.

drives_stateMeaningWhat the caller does
never_refreshedNobody has enumerated this identity yetCall the refresh endpoint
refreshingAn enumeration is queued or runningPoll until it changes
readyThe catalog holds at least one libraryLet the user pick one
emptyThe enumeration completed and found no librariesThe connected account reaches none; check the account, or name a site
requires_site_pathThe enumeration could not prove it saw everything reachable, and found nothing to offerRefresh again with site_path
permission_deniedSomething the enumeration NAMED was refusedA site path will not fix this; the account needs access, or reconnect with fuller consent
failedThe enumeration itself failed (provider outage, token error)Retry; drives_error carries the detail

requires_site_path is a SharePoint-only state and never applies to Google Drive. There is no delegated API that lists every site a Microsoft user can reach, which is the gap this state exists to describe; Google's Shared Drives listing has no such gap, so a Google refresh only ever resolves to ready, empty, permission_denied or failed.

requires_site_path is not a permission error. There is no Microsoft API that lists every site a signed-in user can reach — only a search that is permission-trimmed and not guaranteed exhaustive. The state means “we cannot prove this list is complete, and it is empty; name a site and we will look there”. It is raised only when nothing was refused, so it is genuinely distinct from permission_denied, which is always a refusal of something specific and is not fixed by supplying a path. A scoped refresh never produces it.

requires_site_path is a convenience alias of drives_state === "requires_site_path".

A partial consent is not an error. If the user grants access to their files but withholds the SharePoint permission, the connection succeeds and the identity becomes active — the catalog simply covers their own OneDrive and no site libraries. Treat that as a working connection with a smaller catalog, not a failed one.

drives_error is normally null on success, with ONE exception: a ready catalog that was cut off at an internal ceiling carries a truncation note. Those libraries are real and selectable — the list is merely incomplete — so show it as a warning beside a usable list rather than as a failure.

Note that ready and empty are derived from the rows returned in the same response, so the state and the list can never disagree. The other five describe how the last enumeration ENDED and are reported as recorded.

Error Responses

Error CodeHTTP StatusMessageCause
102272406<Provider> does not use drive selectionProvider is Box, Dropbox or S3; params[0].reason = "drive_not_supported"
108498404Provider identity not found for this workspaceUnknown identity, or one that belongs to another organization
164577401Only the owner of the connected cloud account can import its foldersNot the identity owner (a workspace admin is also refused)

Refresh Identity Drives

POST /current/cloudsync/workspace/{workspace_id}/identities/{identity_id}/drives/refresh/

Re-enumerates the drive catalog from the provider. OneDrive for Business and Google Drive only. For OneDrive it rebuilds the SharePoint/OneDrive library catalog; for Google Drive it rebuilds the account's Shared Drive list (see Google Workspace Shared Drives below) — My Drive is never enumerated, because it is never a catalog row.

Asynchronous, and it returns no job id. The response comes back immediately with drives_state: "refreshing"; poll GET .../drives/ until the state leaves refreshing. The state is recorded before the work is queued, so a client that reloads mid-refresh still sees refreshing on a cold read.

One refresh at a time per identity: a second call while one is genuinely in flight is rejected. That block expires on its own, so an interrupted refresh cannot lock the catalog permanently.

A refresh scoped with site_path replaces only the libraries belonging to that site and leaves the rest of the catalog alone, so an account whose sites have to be named one at a time can build its catalog across several calls. An unscoped refresh looks at the connected account's own OneDrive first, then the SharePoint sites it can find; it replaces only what it actually covered, so a run that found no sites does not delete the site libraries an earlier scoped refresh recorded.

An enumeration that fails part-way — a provider outage rather than a denial — leaves the previous catalog in place rather than replacing it with a partial one.

Auth: JWT required. The identity owner only — same rule as the list endpoint above, and for the same reason.

Request Body (optional, OneDrive for Business only — ignored for Google Drive)

{ "site_path": "contoso.sharepoint.com:/sites/Marketing" }
ParameterTypeRequiredDescription
site_pathstringNoEnumerate one named SharePoint site instead of everything the account can find. Wins over site_search when both are sent
site_searchstringNoSearch SharePoint sites for this term and add the matching sites' libraries to the catalog. Max 128 characters, no control characters. See SharePoint Site Search below

A Google refresh ignores both keys — an empty body (or any JSON body) re-lists the account's Shared Drives.

Response (200 OK)

{
  "result": true,
  "identity_id": "abc123...",
  "provider": "onedrive_business",
  "drives_state": "refreshing",
  "drives_refreshed_at": "2026-08-03 16:40:02 UTC",
  "requires_site_path": false,
  "site_path": null,
  "site_search": null,
  "message": "Drive refresh started. Poll GET .../identities/abc123.../drives/ until drives_state leaves \"refreshing\"."
}

site_search echoes back the (trimmed) search term that was sent, or null when none was — the same field carried on this response for both providers, always null for Google.

drives_refreshed_at is the PREVIOUS refresh's timestamp — this one has not finished — or null if none has ever completed. Use drives_state to detect a never-refreshed identity, not a null timestamp.

Error Responses

Error CodeHTTP StatusMessageCause
162466406<Provider> does not use drive selectionProvider is Box, Dropbox or S3; params[0].reason = "drive_not_supported"
146898404Provider identity not found for this workspaceUnknown identity, or one that belongs to another organization
164577401Only the owner of the connected cloud account can import its foldersNot the identity owner (a workspace admin is also refused)
142434503A drive refresh is already in progress for this identityA refresh is in flight — retry shortly
184311500Provider identity is not activeIdentity is provisioning, revoked, or errored
114239406site_search is too longsite_search over 128 characters
110648406site_search contains invalid characterssite_search carries a control character
181660406site_search must be a stringsite_search sent as a number, boolean, array or object

Google Workspace Shared Drives

A Google Drive identity's drive catalog holds Shared Drives only — the account's own My Drive is never a row, and a source created with no drive_id always means My Drive, exactly as it did before this catalog existed.

Shared Drive sources are read-only. A source created or updated against a Shared Drive — that is, any Google source whose drive_id is not empty — must use access_mode: "read_only". Sending access_mode: "read_write" on one is refused with:

Error CodeHTTP StatusMessageCause
145949406Sources on a Google Shared Drive are read-only. Use access_mode "read_only".access_mode: "read_write" on a Shared Drive source. params[0] = {"name": "access_mode", "kind": "invalid", "reason": "drive_read_only"}

A My Drive source (no drive_id) is unaffected and may still be read_write, exactly as before.

Changes in a Shared Drive are picked up on the regular sync schedule — a Shared Drive source does not get a longer polling interval than any other source.


POST .../identities/{identity_id}/drives/refresh/ accepts an optional site_search term (OneDrive for Business only — see Refresh Identity Drives above) that searches SharePoint sites for the term and adds the matching sites' document libraries to the catalog, each under its own site's site_path. Nothing already in the catalog is removed: searching "Finance" after an earlier "Marketing" search keeps Marketing's libraries in place alongside Finance's.


Selecting a Drive on a Source

drive_id is required when creating or discovering against a OneDrive for Business identity. It is optional against a Google Drive identity — omitted or empty means My Drive, and a value must name a Shared Drive from that identity's own catalog (see Google Workspace Shared Drives above). It is not accepted at all for Box, Dropbox or S3-compatible storage, which have no drive concept. The same rule applies on sources/discover/ and sources/estimate/ as on sources/create/.

Pass drive_id exactly as the drives endpoint returned it — it is an opaque provider string, not a Fastio id, and must not be reformatted or validated client-side.

Watching progress. A single import job is at GET /current/cloudsync/details/{source_id}/jobs/{job_id}/, and one source's history at GET /current/cloudsync/details/{source_id}/jobs/. For a workspace-wide view — every sync running right now, alongside the other async work — poll GET /current/workspace/{workspace_id}/jobs/status/, whose import_sync list reports the same progress fields. Discovery and estimate jobs appear only under /cloudsync/, never in the workspace-wide view: browsing your own cloud account is not workspace activity.

Live progress of a running sync. While a job's status is running, GET /current/cloudsync/details/{source_id}/jobs/{job_id}/ adds a progress object to job, for connected folders and one-time imports alike. It is null whenever the job is not running. It is best-effort, so it can also be null while a job runs, for example just after the job starts; show the job's status in that case. It is refreshed each time the run moves to the next phase or batch, and about every 30 seconds while a long batch is copied or added, so it can lag the transfer by that much and polling every 5-10 seconds is enough. Use updated_at to tell how fresh it is.

"progress": {
  "phase": "transferring",
  "files_total": 1800,
  "files_done": 640,
  "bytes_total": 5368709120,
  "bytes_done": 1932735283,
  "current_batch": 3,
  "batches_total": 8,
  "updated_at": "2026-10-09 16:41:07 UTC"
}
FieldTypeMeaning
phasestringlisting (reading the cloud folder and comparing it with the workspace), transferring (copying a batch of files), or applying (adding a copied batch to the workspace)
files_totalinteger | nullFiles this run will copy. null while listing. 0 when nothing has changed. It can grow during the run when a second set of files is planned after the first
files_doneintegerFiles copied so far in this run, across all of its batches
bytes_totalinteger | nullTotal declared size of those files, in bytes. null while listing. Files whose size the provider does not report in advance (for example Google Docs) are not counted, so bytes_done can be larger
bytes_doneintegerBytes copied so far in this run
current_batchintegerThe batch being copied or added, counting from 1. 0 before the first batch
batches_totalinteger | nullBatches this run will copy. null while listing. Like files_total, it can grow during the run
updated_atstringWhen this progress was last refreshed, YYYY-MM-DD HH:MM:SS UTC

The counts cover this job only. A run can stop before files_total, on a time or size limit or a stop request, and a follow-up job then continues with its own counts. For a one-time import's overall progress, use import.files_copied and import.listed_files on the source.

Search indexing in that same view. The upsert_file entry of GET /current/workspace/{workspace_id}/jobs/status/ is an object (or null) carrying active, status (queued · processing · completed · failed), node_id, node_name, file_count, processed_count, failed_count, current_file, current_file_units_indexed, current_file_units_total, progress_percent, started_at, updated_at and completed_at. The two current_file_units_* fields are WITHIN-FILE progress in the units the indexer measured that file in (pages, for a document): a large document is ONE file indexed over several passes, so those two move while processed_count and progress_percent stand still. Both are always present and are null when nothing was measured and once the file is finished or failed. See the AI & Chat reference for the full field table and an example.

Who may do this. Creating a source is restricted to the identity owner for every provider, with no workspace-admin override: only the person whose cloud account is connected may graft its folders into a workspace, and they must hold Member on that workspace. Discovery is owner-only as well, on every provider — it browses that person's own cloud account. Admins are refused here on purpose, and keep the power to remove a source: disconnecting or deleting a source remains owner-or-admin. Revoking the identity itself is owner-only (see Revoke Provider Identity). The identity may have been connected from any workspace of the organization; what matters is that the caller owns it and is a Member of this workspace.

Error CodeHTTP StatusReasonCause
100125406drive_requiredOneDrive source without a drive_id
159439406drive_unknowndrive_id is not in this identity's catalog
192640406drive_not_supporteddrive_id sent for a provider that does not use one
170775406drive_immutabledrive_id sent to the update endpoint
112719406drive_invaliddrive_id sent as something other than a string or integer (an array, object, boolean or decimal); null means no drive
143457500drive_lookup_failedThe catalog could not be read ("Import operations temporarily unavailable"); retry

Browsing Below the Provider Root

POST .../sources/discover/ accepts an optional remote_path: the remote folder to enumerate. Omit it — or send an empty string, or null — to enumerate the provider root, which is the historical behaviour and stays the default.

ParameterTypeRequiredDescription
remote_pathstringNoRemote folder to enumerate, e.g. /Clients/Northwind. Omit for the provider root. Maximum 2048 characters, 4096 bytes overall, and 255 bytes for a single path component

Discovery returns folders only, one level down. It does not walk the tree: a client expands a level at a time, passing the folder it wants to open back as remote_path on the next call. The response shape, the job id, and the polling endpoint are unchanged.

Two paths are two different questions, and they do not collide. A discovery already in flight blocks only another discovery of the same workspace, provider, drive and path — so /Clients and /Clients/Northwind can be browsed at the same time, while asking the same question twice is still deduplicated into the first.

If the same scope was tried recently and failed, and is still within its short retry window, the call answers 503 ("A recent discovery for this folder has not finished retrying. Try again shortly.") rather than 200. This is distinct from the in-flight case above — no job is currently running to hand back — and it is a normal, expected retry signal: wait briefly and call discover again.

The shape of the path is checked before the call is accepted; whether the folder exists is not. Characters, directory traversal and the length limits below are all applied synchronously, so a malformed remote_path comes back as HTTP 406 (error.code 154032) straight away. Only the provider-side question — does this folder exist, and can it be listed — is deferred: that is reported by the discovery job, not by this endpoint, so the call returns 200 with a job id and that job finishes failed with the reason in its error_message. Check the job, not just the HTTP status.

Some folders exist in a cloud account but cannot be listed at all. When discovery can confirm one of these on a root listing, it leaves it out of the results rather than offering a dead end — OneDrive's "Personal Vault" is the known case. That check is best-effort, so an unconfirmed unlistable folder can still be offered like any other. Either way — offered and then chosen, or named directly with remote_path — the discovery job for that folder fails immediately, without retrying, and its error_message says the provider refused to list it. Such a folder cannot be imported. On Google Drive, a shortcut whose target has since been deleted is omitted from listings the same way.

remote_path is also an input on POST .../sources/create/, where it names the remote folder the source imports. On discover it names the folder to browse; the two are separate calls and neither implies the other.

What remote_path accepts, on BOTH calls. The two endpoints apply the same rule, so the picker can never offer a folder that create then refuses. A remote_path may be any name the provider can hold — Sales & Marketing, John's Files, Q3 Reports (Final), #general, 100% Done, emoji, and any script, in either Unicode normal form — except the characters providers themselves reject: *, ?, |, <, >, the null byte, and control characters. Directory traversal (.. as a whole component, in either slash direction) is refused. Length limits are 2048 characters overall, 4096 bytes overall, and 255 bytes for a single path component.

It is stored exactly as sent, including leading and trailing spaces. remote_path is an address, not a label: providers permit edge whitespace in a folder name, so trimming it would name a different folder than the one the listing offered. Post back the remote_path a discovery entry gave you, byte for byte. A value that is only whitespace counts as not given — on discover that enumerates the provider root, and on create it is refused as a missing field. remote_name, which is a display label rather than an address, is still trimmed.

Error CodeHTTP StatusMessageCause
120648, 154032406Validation errorremote_path is longer than 2048 characters, longer than 4096 bytes overall, or has a single path component longer than 255 bytes. A missing, empty or whitespace-only remote_path is an error on sources/create/ only — on discover it is not an error at all, it enumerates the provider root
120648, 154032406Invalid remote pathremote_path contains a directory-traversal sequence, or one of * ? | < >, a null byte or a control character
159263406remote_path must not contain "." or ".." path segmentssources/create/ only: remote_path has a . segment (for example /./ or /./Photos), which would name another folder by a different spelling. A .. segment is refused earlier as an invalid remote path
151157503A recent discovery for this folder has not finished retrying. Try again shortly.A discovery attempt for the same scope is already within its retry window

Estimating Folders Before Connecting Them

POST /current/cloudsync/workspace/{workspace_id}/sources/estimate/ counts how many files and how many bytes up to 10 remote folders hold, so a picker can show whether each one fits the workspace's limits before a source is created. It runs as a job, like discovery. It is not metered: no credits are charged for an estimate.

The estimate counts past the workspace's own caps. Counting goes up to a fixed ceiling for the requested sync_kind that is at least as high as any workspace's caps, whatever the workspace's own limits are, so a folder over the current limits still gets its real count. Deciding whether a folder fits the workspace's current limits is the client's job: compare file_count and total_size with the workspace's caps for that sync kind.

Auth: JWT required. The same rules as sources/discover/: the caller must be a member of the workspace and the owner of the chosen identity — there is no workspace-admin override. The identity must be active, cloud sync must be enabled for the workspace, and the endpoint is rate limited.

ParameterTypeRequiredDescription
provider_identity_idstringYesThe identity whose cloud account holds the folders. Hyphenated or not
remote_pathsarray of stringYes1 to 10 folder paths, e.g. ["/Clients", "/Archive/2025"]. A string holding a JSON array is also accepted. Each path is checked exactly like remote_path on discover and create (same characters, traversal and length rules, not trimmed). Exact duplicates are collapsed, first one kept. The whole list, JSON-encoded, may be at most 16 KB
drive_idstringOneDrive for Business; optional for Google DriveSame rule as discover and create: required for OneDrive for Business, optional for Google Drive (empty/omitted = My Drive, otherwise a Shared Drive from the identity's catalog), not accepted for Box, Dropbox or S3-compatible storage
sync_kindstringNoongoing (default) or once. With once the folders are counted up to the one-time import caps instead of the connected-folder caps (see One-Time Imports)
source_idstringNoPreview exclusion rules for an existing source in this workspace; the identity, drive and folder come from the source (see Excluding Folders and Files From a Source)
exclusion_rulesarrayNoRules to leave out of the counts, in the source rule format. Requires exactly one remote_paths entry
exclude_system_filesbooleanNoLeave the built-in system files out of the counts. Default true (with source_id, the source's own setting)

Response (200):

{
  "result": true,
  "job_id": "{job_id}",
  "status": "estimating",
  "message": "Estimate job created. Poll for results: GET /cloudsync/details/estimate/jobs/{job_id}/",
  "drive_id": null,
  "drive_type": null,
  "drive_name": null,
  "site_name": null
}

The drive fields are filled in for OneDrive for Business. Sending the same request again (same identity, same drive, same folders in the same order) while an estimate is still running returns that same job, in the same shape, with the message "An estimate for these folders is already running. Poll for results: GET /cloudsync/details/estimate/jobs/{job_id}/". A different order is a different request. If the workspace's AI settings (Deep Indexing, metadata extraction) changed since that estimate started, the request starts a new estimate priced with the current settings instead.

Polling. GET /current/cloudsync/details/estimate/jobs/{job_id}/ — the job endpoint with the fixed segment estimate where a source id would go, exactly as discovery uses discovery. Connector owner only, and the caller must still be a Member of the workspace the job ran for, like discovery polling. A discovery job id asked for under estimate, or an estimate job under discovery, answers not found. The response is { "result": true, "job": { ... } } with the standard job object: job_type is discovery with properties.discovery_kind set to estimate (that is how an estimate is told apart from a folder discovery), status is pending · running · completed · failed · canceled, and import_source_id is null. job.properties also carries provider, identity_id, drive_id (OneDrive for Business, or a Shared Drive id for Google Drive — null for My Drive), estimate_paths (the folders asked about) and, once the job has completed, estimate_results, estimate_totals and estimate_completed_at (YYYY-MM-DD HH:MM:SS UTC).

If the job as a whole cannot run — the identity was revoked, the workspace was closed, the organization's policy turned cloud sync off, or the organization's limits could not be determined — it ends failed with the reason in error_message. Estimate jobs cannot be canceled, and they never appear in the workspace-wide jobs view.

estimate_results holds one row per folder, in the order requested:

{
  "remote_path": "/Clients",
  "file_count": 1250,
  "total_size": 734003200,
  "complete": true,
  "stopped": null,
  "counted_at": "2026-10-04 12:00:00 UTC",
  "error": null,
  "credits_estimate": 41200,
  "too_large_files": 2,
  "credits_breakdown": {
    "summaries": 6900,
    "metadata_extraction": 12650,
    "document_pages": 21500,
    "index_vectors": 150
  },
  "credits_estimate_low": 24720,
  "bulk_available": true,
  "credits_estimate_bulk": 21213,
  "credits_breakdown_bulk": {
    "summaries": 3450,
    "metadata_extraction": 6325,
    "document_pages": 11288,
    "index_vectors": 150
  },
  "credits_estimate_low_bulk": 12728
}
FieldTypeMeaning
remote_pathstringThe folder, as requested
file_countintegerFiles found anywhere under the folder. Folders themselves are not counted
total_sizeintegerBytes, the sum of each file's size. A file whose provider reports no size (Google Docs, Sheets and Slides files) counts as 10 MiB
completebooleantrue when the whole folder was counted and the numbers are exact
stoppedstring | nullWhy counting stopped early: limit or timeout. It means counting stopped, not that the folder does not fit. null when complete or on error
counted_atstringWhen the folder was counted, YYYY-MM-DD HH:MM:SS UTC
errorstring | nullWhy this folder could not be counted. null otherwise
credits_estimateinteger | nullA high-end estimate of the credits the workspace's AI features would use on the counted files once they are in the workspace. It covers whichever of these apply to the workspace: AI summaries, Deep Indexing (intelligence), and automatic metadata extraction — extraction counts only when the workspace has intelligence on, its automatic metadata extraction setting is on, the organization has metadata extraction available, and the organization's AI policy allows it (exactly when an upload would be extracted) — plus the estimated cost of Deep Indexing parsing and embedding the counted documents and text-like files, which counts only when Deep Indexing would index them; HTML and spreadsheet files carry no indexing cost. Features that do not apply are not counted. Information only: nothing is charged or reserved because of it, and actual usage depends on the files' content. null when none of these apply to the workspace. On an error row it is 0 when at least one of them applies (credits are being estimated for the workspace), and null when none do
too_large_filesintegerCounted files over the organization's per-file upload size limit. They are skipped when the folder syncs and are left out of credits_estimate
credits_breakdownobject | nullcredits_estimate split by what the credits are for (below). null exactly when credits_estimate is null
credits_estimate_lowinteger | nullThe low end of the same estimate, so the credits can be shown as a range from credits_estimate_low to credits_estimate. Never above credits_estimate. Actual usage depends on how much content the files hold and is not guaranteed to fall inside the range. null exactly when credits_estimate is null; 0 on an error row where credits_estimate is 0
bulk_availablebooleantrue when bulk AI processing is available for the organization and the folder has more than 20 files the import would bring in. Files left out by exclusion rules and files counted in too_large_files do not count toward the 20. false on an error row. When it is false, the three bulk fields below are null. The count is of the folder's files, not of new ones: for a consolidate, or a folder already connected, files the import adopts are counted too. So bulk_available: true can still end in a normal-speed import.
credits_estimate_bulkinteger | nullThe high end of the same estimate if the source is created with ai_processing: "bulk" (see Choosing Bulk or Priority AI Processing). Never above credits_estimate. null when bulk_available is false, and when credits_estimate is null
credits_estimate_low_bulkinteger | nullThe low end of the bulk estimate, so it can be shown as a range like the priority one. Never above credits_estimate_bulk. null exactly when credits_estimate_bulk is null
credits_breakdown_bulkobject | nullcredits_estimate_bulk split the same way as credits_breakdown: the same four keys, each null in the same cases. null exactly when credits_estimate_bulk is null

credits_breakdown has four keys, each an integer, or null when that charge does not apply to the workspace:

KeyMeaningnull when
summariesAI summaries of the filesAI summaries are off for the workspace
metadata_extractionAutomatic metadata extractionExtraction would not run on the workspace's new files (see credits_estimate)
document_pagesThe expected cost of Deep Indexing parsing and embedding the counted documents and text-like files, in credits; 0 when Deep Indexing would not index themNone of AI summaries, Deep Indexing or automatic metadata extraction applies (the whole breakdown is then null)
index_vectorsIndexing the files for AI search and chat (first month)No files would be indexed: AI summaries are off, or the organization's AI policy has intelligence paused

Each part is a high-end figure rounded up to a whole credit on its own, so the non-null parts always add up exactly to credits_estimate. On an error row every part that applies is 0. The estimate does not include storage, cloud sync scanning of the folder, or preview conversions.

Two quotes from one estimate. credits_estimate, credits_estimate_low and credits_breakdown are the priority quote: AI work at normal speed, exactly as before. The *_bulk fields are the bulk quote for the same files: bulk processes eligible AI work at a lower rate, and its AI results (summaries, metadata, Deep Indexing) arrive later. Bulk lowers summaries, metadata_extraction and document_pages; index_vectors is the same in both quotes. Each part of credits_breakdown_bulk is therefore never above the same part of credits_breakdown. The bulk parts are rounded the same way as the priority parts, so the non-null parts of credits_breakdown_bulk add up exactly to credits_estimate_bulk. The estimate request takes no choice: both quotes come from the same count, so a client that lets the user switch between bulk and priority never estimates again.

estimate_totals sums the rows of the request:

{
  "file_count": 1250,
  "total_size": 734003200,
  "credits_estimate": 41200,
  "too_large_files": 2,
  "credits_breakdown": {
    "summaries": 6900,
    "metadata_extraction": 12650,
    "document_pages": 21500,
    "index_vectors": 150
  },
  "summaries_forced_by_plan": false,
  "deep_indexing": true,
  "credits_estimate_low": 24720,
  "bulk_available": true,
  "credits_estimate_bulk": 21213,
  "credits_breakdown_bulk": {
    "summaries": 3450,
    "metadata_extraction": 6325,
    "document_pages": 11288,
    "index_vectors": 150
  },
  "credits_estimate_low_bulk": 12728
}

credits_estimate is the sum of the rows' values, or null when none of AI summaries, Deep Indexing, or automatic metadata extraction apply to the workspace. Each credits_breakdown part is the sum of that part across the rows (null only when it is null on every row), so the totals' parts also add up exactly to credits_estimate; credits_breakdown is null when credits_estimate is.

Two flags, on the totals only, explain which features the estimate assumed:

FieldTypeMeaning
summaries_forced_by_planbooleantrue when AI summaries always run on the workspace's new files, whatever the workspace's own setting
deep_indexingbooleantrue when Deep Indexing (intelligence) applies to the workspace's new files — the workspace setting, as allowed by the organization's AI policy

credits_estimate_low is the sum of the rows' values, and null exactly when credits_estimate is.

bulk_available on the totals is true when it is true on any row. Show the bulk or priority choice only when estimate_totals.bulk_available is true and the workspace's AI features are on (credits_estimate is not null). The totals' credits_estimate_bulk, credits_estimate_low_bulk and credits_breakdown_bulk are what the request would cost if bulk is chosen: each row adds its bulk figure when its own bulk_available is true, and its priority figure when it is false, because a folder that does not qualify runs at normal speed even when bulk is chosen. They are null when the totals' bulk_available is false or when credits are not estimated, and the totals' bulk parts add up exactly to credits_estimate_bulk. The totals are a quote: a row that reports bulk_available: true but whose import then runs at normal speed (see the row field) was quoted at its bulk figure and is charged at its priority figure.

A completed estimate is not recomputed. Whether bulk is available can change after an estimate completes; request a new estimate for a current bulk_available.

credits_estimate, credits_estimate_low, credits_breakdown, the bulk fields, too_large_files and the flags are returned for connected folders and one-time imports (sync_kind: "once") alike.

Files and bytes are counted the same way the first sync counts a newly connected folder against the workspace's limits. The folder can change at the provider between the estimate and that sync.

Error CodeHTTP StatusMessageCause
178916406Invalid JSON in request bodyThe body is not a JSON object
162806406provider_identity_id is requiredMissing or empty provider_identity_id
135552406remote_paths must be a non-empty array of folder pathsremote_paths missing, empty, or not a list
142495406remote_paths accepts at most 10 foldersMore than 10 entries
101510406Each remote_paths entry must be a non-empty folder pathAn entry is not a string, or is empty or whitespace only
191592406The path validation messageAn entry fails the remote_path rules above
165485406remote_paths is too long; estimate fewer folders per requestThe encoded list is over 16 KB
179221404Provider identity not found for this workspaceNo such identity, or one that belongs to another organization
113609500Provider identity is not activeThe identity is revoked or not yet connected
129651500Import operations temporarily unavailableThe identity could not be read — retry
114242503A recent estimate for these folders has not finished retrying. Try again shortly.The same estimate failed recently and is still inside its retry window
176964503Other estimates for this connection are still running. Try again shortly.Two estimates on this identity are already running (for other folders); an identical request is answered with its running job instead
139528503The workspace AI settings could not be read right now. Try again shortly.The workspace's AI settings, which the estimate is priced with, could not be read; retry
178716503Another estimate for this connection is being started. Try again shortly.Another estimate request for the same identity was being submitted at the same moment; retry shortly
148256500Failed to create estimate jobThe job could not be queued — retry
139908500Failed to resolve workspace profileInternal failure
189504406sync_kind must be "ongoing" or "once"sync_kind is neither value
102963412Your plan does not include one-time imports.sync_kind: "once" for an organization without one-time imports — same refusal as sources/create/; params.reason = plan_required

drive_id errors are the same as on discover (see Selecting a Drive on a Source), and so are the owner-only refusal and the cloud-sync-disabled refusals.


Choosing Bulk or Priority AI Processing

POST .../sources/create/ and POST .../sources/consolidate/ take an optional ai_processing that sets how the AI work on the source's initial import runs: AI summaries, metadata extraction and Deep Indexing of the files that import brings in. sources/estimate/ does not take it; it returns both quotes (see Estimating Folders Before Connecting Them).

ParameterTypeRequiredDescription
ai_processingstringNobulk (the default when omitted or null): cost savings. Bulk processes eligible AI work at a lower rate, and the AI results arrive later. priority: AI work at normal speed

Every source object carries ai_processing at the top level (create, list, details, update, and the source of a consolidate response): "bulk", "priority", or null for a source created before this setting existed. The import job object carries top-level ai_processing too, null when the job has none.

Error CodeHTTP StatusMessageCause
112997406ai_processing must be "bulk" or "priority"sources/create/: ai_processing is not a string, or is neither value
129130406ai_processing must be "bulk" or "priority"sources/consolidate/: the same refusal

Choosing Where an Import Lands

Two concurrent POST .../sources/create/ calls for the same workspace can briefly collide. If another source-creation request for this workspace is still in progress, the call answers 503 rather than creating a source or naming a field problem — wait briefly and send the same request again.

Error CodeHTTP StatusMessageCause
131035503Import source creation is temporarily unavailable. Please try again.Another source-creation request for this workspace is still in progress — retry shortly

POST .../sources/create/ accepts an optional destination_node_id: the workspace storage folder the source's imported folder is created under. Omit it — or send an empty string, or null — and the import lands in the Imports system folder at the storage root, which is the historical placement and unchanged for every existing caller. Send root to place the import directly at the top level of the workspace instead, with no Imports folder. A client that always sends the key can therefore leave it null here — but not on the update endpoint below, which rejects the key whatever its value.

ParameterTypeRequiredDescription
destination_node_idstringNoStorage node id of an existing folder in this workspace, or root for the workspace's top level. Omit for the Imports system folder

Pass the node id exactly as a storage endpoint returned it; the formatted (dashed) form is accepted.

Reading the destination back. Every source object — from create, list, and details alike — carries two top-level fields, alongside drive_id. Both are also present inside properties.

FieldTypeMeaning
destination_node_idstring | nullThe folder the caller chose at create; root means the workspace's top level. Null means the default Imports folder
destination_fallback_atstring | nullUTC Y-m-d H:i:s. Set when the chosen folder could not be used at graft time and the import landed in Imports instead. Null means no fallback happened

Read them as a pair. destination_node_id on its own is the folder the user asked for, and it reads as a successful placement — which is exactly the wrong conclusion when the import actually fell back. A non-null destination_fallback_at beside it means "you asked for that folder, you got the default, at this time". A client that renders only the first will tell the user their choice was honoured when it was not.

destination_fallback_at describes placement at graft time, not current location. The imported folder is freely movable afterwards, so treat it as a record of what happened when the import landed, not as a live assertion about where it is now. It is written once and never cleared.

A destination that does not resolve is deliberately indistinguishable from one that is not yours. A malformed id, a node that does not exist, a trashed node, and a node in another workspace all answer with the same message, the same code and the same reason — "The chosen destination folder was not found in this workspace" — so the endpoint cannot be used to probe which node ids exist elsewhere. Only "the node is a file, not a folder" answers differently, and that branch is reachable only for a node the caller can already list.

Error CodeHTTP StatusReasonCause
146652406destination_unknownThe id is malformed, or names a node that is missing, trashed, or in another workspace
129517406destination_unknownThe node is a file, not a folder ("The chosen destination must be a folder, not a file")
146652406destination_unknownThe value is not a string (an array or object was sent)
106713406destination_nestedThe folder is itself part of an import ("That folder is already part of an import. Choose a folder outside it.")
117404406destination_immutabledestination_node_id sent to the update endpoint
138825500(none)The nesting check could not complete ("Could not verify the chosen destination; please try again"). Undetermined, not nested — retry

Every HTTP 406 rejection above is field-scoped: the response carries a detail naming destination_node_id, with kind: "invalid", the human message, a support code, and the stable reason. Branch on reason, never on the message text. The HTTP 500 case is the one exception — it is a plain error with no field detail and no reason, because it reports that the destination could not be evaluated, not that it was bad. For that branch alone the numeric code 138825 is the discriminator, and it is contract-stable — it will not be merged into another call site. Treat it as retry the same request, never as pick a different folder.

Linking to the Folder at the Provider

Every source object — from create, list, details and update alike — carries remote_folder_web_url: a browser link to the folder the source mirrors, at the provider.

FieldTypeMeaning
remote_folder_web_urlstring | nullBrowser URL for the grafted folder at the provider. Null when no link can be built

Null means exactly one thing: no valid stored ID-to-URL mapping can be built. Treat it as do not render the affordance — never as a broken or unhealthy source. Several unrelated situations produce it, and the field deliberately does not distinguish them, because none of them is something a user can act on:

The link is built from the folder's id, never from remote_path. That is what makes it survive the folder being renamed or moved at the provider — a path-derived link would quietly open the wrong folder afterwards, which is worse than opening none. For the same reason, do not build your own provider URL out of remote_path: if this field is null, there is no link to show.

Do not parse the URL, and do not assume its shape is stable per provider. It is for opening, not for extracting ids from.

Recognising a Folder That Was Renamed or Moved

POST .../sources/discover/ returns one entry per folder, and each entry carries an already_imported flag. Compute nothing yourself: the flag needs every source in this workspace on the same cloud account, which the discovery response does not carry and the caller may not be entitled to enumerate. An absent flag does not read as unknown, it reads as false, and the picker then offers a folder that is already connected.

FieldTypeMeaning
remote_idstringThe provider's own id for the folder, or "" when the provider publishes none
namestringThe folder's name — post this back as remote_name
remote_pathstringAbsolute remote path — post this back as remote_path
typestringfolder or file
sizeinteger | nullNull when the provider reports no size, which is normal for folders
already_importedbooleanTrue when this workspace already has a source for this folder
overlaps_graftbooleanTrue when this folder is not itself connected but contains, or sits inside, a folder that is. sources/create/ would refuse it (165964). Always false when already_imported is true

already_imported follows the folder, not the path. Two keys are checked and a match on EITHER sets the flag — it is not an id check with a path check behind it. An entry is already imported when its remote_id matches the folder id of a source on the same drive, or when its remote_path matches a source's remote path. Both are proof, and neither absence disproves the other: a source that has an id can still be matched by path, and an entry whose remote_id is "" must still be matched by path. An empty value never matches an empty value on either key.

Renaming or moving a connected folder at the provider therefore keeps it marked as already imported, at its new path — which it previously did not, and a second source for the same folder could be created as a result.

The id key is scoped to the drive being listed; the path key is not. Provider item ids are unique within a drive rather than across drives, so an id is only compared against sources on the same drive — otherwise a folder in one library could be reported as already imported because an unrelated folder in another library happens to share its id, and you would be blocked from importing a folder you never imported. The path key is unscoped, which is long-standing behaviour: the same path on two libraries can mark each other as already imported even though sources/create would accept the second one.

Sources with no recorded id — everything created before the id existed, and everything on a provider that publishes none — are still matched by path exactly as before. Nothing that used to be recognised stopped being recognised.

Pass remote_id back when you create a source.

ParameterTypeRequiredDescription
remote_idstringNoThe remote_id of the discovery entry the user chose

It is optional and advisory: it can only make POST .../sources/create/ refuse a duplicate it would otherwise have admitted, never the other way round. Sending it lets the duplicate check recognise a folder that has been renamed or moved since it was connected — the case a path comparison alone cannot see. Omitting it leaves the check exactly as strict as it was, and sending one that matches nothing does not weaken the path check: the two keys are OR-ed there too, so a wrong value cannot be used to slip a duplicate past the refusal. The id is only compared against sources on the same drive, as on discovery — but the two are not otherwise identical: this endpoint scopes its path key to the drive as well, while discovery's path key is unscoped. So the same path in two libraries can read as already imported in a discovery response and still be accepted here. This endpoint is the authority on what is actually refused.

The value is not stored on the source and is not what the source is identified by. The server records the folder's id itself, from the provider, on the first sync.

A folder this workspace has already connected is refused. Two sources for one remote folder would each mirror it and each write back into it. Disconnected sources do not reserve their folder, so reconnecting a folder you previously removed keeps working. The same folder connected on a different drive is a different folder and is not refused.

The refusal spans the whole workspace, scoped to the connected cloud account. Each member who connects a provider gets their own connection, so two members can be looking at the same cloud account through two of them — even when they connected it from different workspaces of the organization. A folder one member has already connected in this workspace is refused for the other, because it is one folder and two sources would each mirror and write back into it. Two different cloud accounts are not compared: if two members connect two separate Dropbox accounts, each may connect its own /Photos — those are different folders that happen to share a name.

A folder is reserved per workspace, not per organization. Only sources in the workspace you are creating in count. The same folder can be connected once in each workspace of the organization — connecting /Clients in workspace B succeeds while workspace A already syncs it, and a second /Clients in B is then refused. already_imported and overlaps_graft in discovery answer the same way, for the workspace the discovery was started from.

A folder that contains, or sits inside, a connected folder is refused too. Connecting /Clients while /Clients/Northwind is already connected — or the other way round — would sync the same files into two places, and on a two-way source each would write back into the other's folder. The candidates are the same as for the duplicate check above: sources in this workspace on the same connected cloud account (and, for OneDrive for Business, the same library) that still hold their folder; a disconnected source does not count. Paths are compared ignoring letter case and leading or trailing slashes, one whole folder name at a time — /Foo does not overlap /Foobar. A source connected at the account root overlaps every folder. An exact match keeps the duplicate refusal (268832); only a strict ancestor or descendant gets 165964. Discovery flags these folders in advance with overlaps_graft.

Error CodeHTTP StatusMessageCause
268832409"This folder is already connected to this workspace"A live source anywhere in this workspace, on the same connected cloud account, already has this folder — matched on the folder's id or on remote_path. Settled — disconnect the existing source or pick another folder
165964409"This folder overlaps a folder already connected to this workspace."The folder contains, or sits inside, a folder a live source on the same cloud account (and library) already has. Settled — disconnect that source or pick a folder outside it
160255503"Import source creation is temporarily unavailable. Please try again."The already-connected folders could not be read, so neither check could be made. Retry

Connecting a Whole Drive

POST .../sources/discover/ is asynchronous: the folder list is read from the discovery job, GET /current/cloudsync/details/discovery/jobs/{job_id}/, in job.properties.discovery_results (with discovery_truncated, discovery_total_count and related keys). When the discovery listed the root of the drive or bucket (no remote_path, or /), job.properties also carries discovery_root. It is absent for a nested browse. It is a separate key — never an element of discovery_results — and it is kept when the folder list is trimmed.

"discovery_root": {
  "remote_path": "/",
  "root_graftable": false,
  "root_graftable_reason": "provider_unverified",
  "overlapping_grafts": [
    { "source_id": "axk7q-5ljws-dv2eb-z4aux-dsrpd-ki5u", "remote_path": "/Clients", "remote_name": "Clients" }
  ],
  "overlapping_graft_count": 1,
  "overlapping_grafts_truncated": false
}
FieldTypeMeaning
remote_pathstringAlways /
root_graftablebooleanWhether the whole drive may be connected as one source. A picker signal: it does not block sources/create/, with one exception (a personal OneDrive, below)
root_graftable_reasonstring | nullWhy root_graftable is false; null when it is true. provider_unverified: whole-drive sync is not yet verified for this provider or drive type. Today every supported drive is verified: Google My Drive and Shared Drives, S3 buckets, a user's own OneDrive for Business, SharePoint document libraries, Dropbox and Box. Treat this reason as "not offered" for any provider added later. personal_vault: a personal (consumer) OneDrive, whose Personal Vault cannot be read, so the whole drive cannot be synced. overlap_unknown: the connected sources could not be read, or the workspace holds more connected sources than can be checked — treat it as "could not be verified". root_graftable is false, overlapping_grafts is empty and the count is null; browse again to retry
overlapping_graftslistThe sources in this workspace on the same connected account and drive that a whole-drive source would overlap. Every folder source on that drive overlaps its root, by the same rule as the 165964 refusal. Each entry is { "source_id": string, "remote_path": string, "remote_name": string }, with source_id in the same format as id on source objects. At most 50 entries are listed (fewer when their paths are very long)
overlapping_graft_countinteger | nullThe full number of overlapping sources, even when the list is shorter. null when root_graftable_reason is overlap_unknown
overlapping_grafts_truncatedbooleantrue when overlapping_grafts lists fewer entries than overlapping_graft_count

A personal OneDrive cannot be connected as a whole drive. sources/create/ with remote_path of / on a personal OneDrive drive is refused, because its Personal Vault cannot be read. Choose a folder instead. A whole-drive source on a personal OneDrive that was connected before this refusal no longer syncs: each run fails before contacting the provider and the source shows status: "error" with the same message (disconnect it and connect a folder instead).

A whole-drive request must send a non-empty remote_name: the server cannot derive a display name from /, and omitting it is refused with 186911. For example:

POST /current/cloudsync/workspace/{workspace_id}/sources/create/
{
  "provider_identity_id": "{provider_identity_id}",
  "remote_path": "/",
  "remote_name": "Engineering",
  "drive_id": "{drive_id}"
}

remote_name is the display name of the drive, library or bucket. Send drive_id where the provider needs one (OneDrive, SharePoint, Google Shared Drives).

Error CodeHTTP StatusMessageCause
161802406"A personal OneDrive cannot be synced as a whole drive, because its Personal Vault cannot be read. Choose a folder instead."remote_path: "/" on a personal OneDrive drive. params[0] = {"name": "remote_path", "kind": "invalid", "reason": "personal_vault"}

Whole-drive behavior. A whole-drive Google My Drive source created from now on skips Google Drive shortcuts, as a Shared Drive source already does; a My Drive folder source still follows them, and a whole-drive My Drive source that already existed keeps following shortcuts (previously imported shortcut content is not removed). Whole-drive OneDrive and SharePoint sources refresh incrementally instead of listing the whole drive each time. Whole-drive Box sources do not use change notifications and refresh on the polling schedule.

Source objects carry sync_reason. Every source object (create, list, details and update) has sync_reason: a string or null saying why a source is syncing outside its normal schedule. rules_changed means the sync is applying a change to the source's exclusion rules (see Excluding Folders and Files From a Source). consolidating means the source is a new whole-drive connection whose files are still being moved into place (see Consolidating Folder Connections into a Whole-Drive Connection); it comes before rules_changed. Treat an unknown value as informational.

Source details carry progress while a sync runs. GET /current/cloudsync/details/{source_id}/ returns progress as { "phase": "listing" | "applying", "files_done": integer, "files_total": integer | null } while a sync job is running, and null otherwise. During listing the total is not yet known, so files_total is null — show "Scanning…". Once the listing completes the phase becomes applying with the total, for example "6,240 of 18,420".


Excluding Folders and Files From a Source

A source can skip parts of its connected folder. Excluded items are never downloaded, never written back to the provider, and do not count toward the source's file or size limits — so exclusions are also how a whole drive that is over its limit becomes connectable. Excluding something never deletes it at the provider.

Every source object (create, list, details, update) carries:

FieldTypeMeaning
exclusion_ruleslistThe source's rules, normalized (see below). Returned only to the member who connected the source and to workspace admins using an admin-capable credential (folder rules name folders in the cloud account); every other caller gets []
exclude_system_filesbooleanWhether the built-in system files are skipped
exclusion_rules_pendingbooleantrue from a rules change until a sync has applied it
exclusion_rules_updated_atstring \| nullWhen the rules were last changed, YYYY-MM-DD HH:MM:SS UTC; null if never
exclusion_rules_revisionintegerIncreases whenever the rules are saved or a rescan is requested. Send it back as expected_exclusion_rules_revision on a rules update/ (below)
rescan_pendingbooleantrue after a change that stopped excluding something, until a full rescan has run (newly included items appear after it)
sync_reasonstring \| nullrules_changed while the source is syncing and that sync applies a pending rules change or an owed rescan; null otherwise. Rules saved while a sync is already running leave that sync null: the next sync applies them. consolidating while a consolidation is still moving files into a new whole-drive connection, whatever its rules

GET /current/cloudsync/details/{source_id}/ also returns system_file_patterns (the fixed built-in list: .DS_Store, Thumbs.db, desktop.ini, ~$*, ._*), excluded_folder_count (the number of folder rules, active or missing) and detached_count (files the last applied sync kept in the workspace but stopped syncing; 0 until a sync has applied rules).

Rules. Two kinds, at most 200 per source:

"exclusion_rules": [
  { "type": "folder", "remote_id": "{remote_id}", "path": "Archive/2019" },
  { "type": "pattern", "pattern": "*.tmp" }
]

Setting rules.

What a rule does to items already in the workspace.

Two-way sources. Edits and new files inside excluded scope are never uploaded, and nothing there is deleted at the provider; a new file added to an excluded folder stays a workspace-only file. Moving an item into or out of an excluded folder moves it at the provider too; it then follows the rules of where it lands (excluded there → kept and detached; synced there → re-attached after a rescan, with no copy and no duplicate). Pushing, retrying or resolving a write-back for an excluded item is refused with 175118. Moves are the exception: a move between synced and excluded scope is an ordinary move and is not refused, while a move whose source and destination are both inside excluded scope is.

Previewing. sources/estimate/ accepts exclusion_rules and exclude_system_files (default true, or the source's value with source_id) and leaves excluded items out of file_count, total_size and the credit estimates. Rules describe one folder, so send exactly one remote_paths entry. With source_id (a source in this workspace whose connector you own), the provider identity, drive and folder come from the source (remote_paths may be omitted, or must name the source's own folder), omitted exclusion_rules previews the source's current rules, and the completed job carries covered_files and covered_folders in estimate_totals (and at the top level of properties): how many items the source holds now that the previewed rule list would cover — every rule in it, including rules already in place. This is not the number remove_excluded would trash: removal trashes only files covered by the rules a save adds, never folders, and keeps everything under a folder that holds content a workspace member added. An estimate with source_id counts against the source's own kind: omit sync_kind or send that kind; a different one is refused with 167200. Exclusions do not reduce the cloud sync scanning charge for a folder. The estimate returns both the priority and the bulk credit quotes and takes no ai_processing (see Choosing Bulk or Priority AI Processing).

Browsing a source's folders. sources/discover/ with source_id browses inside that source: remote_path is relative to the connected folder ("" for its top level; .. is refused), the identity and drive come from the source, and read-only sources can be browsed. Each entry in discovery_results then carries excluded: true|false (true for a folder the current rules exclude, or every entry when the browsed folder is itself excluded). Returned remote_path values stay absolute.

Error CodeHTTP StatusMessageCause
102405406(varies)The rule list is not a list of folder / pattern objects (a JSON object is refused too), a folder path is not printable text of at most 1,024 characters, or a boolean field is not a boolean. params[0].reason = malformed
199869406"A source may have at most 200 exclusion rules."More than 200 rules after duplicates are dropped (reason = too_many)
105284406(varies)An invalid pattern, including one made only of wildcards that match every name (reason = invalid_pattern)
169655406"A folder rule must name a folder inside the synced folder."A folder path with a . or .. segment (reason = folder_not_in_graft)
160336406"That folder was not found in the synced folder. Pick it from the folder tree."The folder is not one the source has synced, a supplied remote_id the source has not synced, a path that more than one synced item shares (message varies), or a new source's folder rule has no remote_id (reason = folder_not_found)
149629406(varies)The rules would exclude the connected folder itself or everything in it, including when an update/ only turns exclude_system_files on. A remove_excluded save that would trash items is also refused when that check cannot run (the source has not synced yet, or holds too many top-level items to check); save without remove_excluded instead (reason = excludes_everything)
175118406"This item is excluded from sync by the source's exclusion rules, so it cannot be written back. Remove the rule to sync it again."writebacks/push/{node_id}/, writebacks/{id}/retry/ or writebacks/{id}/resolve/ on an excluded item, except a move between synced and excluded scope (reason = path_excluded)
164899406"These folders and exclusion rules are too long to estimate in one request; estimate with fewer or shorter rules"sources/estimate/ only: the folders and rules together are too long to queue as one estimate, even though the rules themselves are valid (reason = too_large)
167200406"With source_id, sync_kind must be omitted or match the source's own kind"sources/estimate/ with source_id and a sync_kind other than the source's own
118117409(varies)details/{source_id}/update/ with expected_exclusion_rules_revision that is no longer the source's exclusion_rules_revision: the rules changed since they were read. The rules are not saved; read the source again and resend
125077406(varies)details/{source_id}/update/ with remove_excluded: true and any change other than exclusion_rules / exclude_system_files. Nothing is saved; send the rules change on its own

The same code is returned for the same reason by sources/create/, details/{source_id}/update/ and sources/estimate/.


Consolidating Folder Connections into a Whole-Drive Connection

POST /current/cloudsync/workspace/{workspace_id}/sources/consolidate/ combines every connected folder of one drive in this workspace into a single whole-drive connection. The files already synced are adopted in place: nothing is downloaded again and nothing is duplicated, and the files keep their ids, share links, comments and metadata. Only a drive that can be connected as a whole can be consolidated (see Connecting a Whole Drive), and only connected folders that sync one way (read_only, ongoing) can be combined.

Who may call it. The same as sources/create/: a workspace Member who owns the connected cloud account. The caller must also own the connected account of every folder connection being combined; being a workspace admin is not enough. The call also needs the delete tool, because it ends the folder connections it combines.

ParameterTypeRequiredDescription
provider_identity_idstringYesThe connected cloud account that owns the folder connections
drive_idstring | nullNoWhich drive, selected exactly as on sources/create/
remote_namestringNoDisplay name of the new whole-drive folder. Defaults to the drive's name; required when the drive has none. If the name is taken at the destination, a free name is chosen
source_idslist of stringsYesExactly every folder connection on that drive in this workspace: non-empty, no repeats
destination_node_idstringNoWhere the whole-drive folder is placed, with the same meaning as on sources/create/. Must be a string when present
ai_processingstringNobulk (default) or priority, for the new whole-drive connection's first sync. Only files new in that sync count; files adopted from the folder connections never do (see Choosing Bulk or Priority AI Processing)
POST /current/cloudsync/workspace/{workspace_id}/sources/consolidate/
{
  "provider_identity_id": "{provider_identity_id}",
  "drive_id": "{drive_id}",
  "remote_name": "Engineering",
  "source_ids": ["{source_id_1}", "{source_id_2}"]
}

All or nothing. The request is checked completely before anything changes, and then committed in one step: either every folder connection is combined, or nothing changed at all. Each refusal has its own code:

Error CodeHTTP StatusCause
184366406Invalid input: malformed JSON, a field of the wrong shape (provider_identity_id, remote_name, drive_id and destination_node_id must be strings), a missing provider_identity_id, an invalid remote_name, an empty, oversized or repeated source_ids, or no remote_name when the drive has no name to use instead
129130406Invalid ai_processing: “ai_processing must be "bulk" or "priority"” when it is not a string, or is neither value
132935404Provider identity not found for this workspace
175061409The provider identity is not active
112802409This drive cannot be connected as a whole yet. error.params.reason carries the reason, for example provider_unverified or personal_vault
191410409Folders in Google My Drive cannot be combined (error.params.reason my_drive_shortcuts): My Drive folder connections follow Drive shortcuts and a whole My Drive connection skips them, so shortcut content would drop out. My Drive can still be connected whole in a workspace without these folders
199706404A listed source id is not a folder connection of this drive in this workspace, or (when sending a finished request again) the folders are no longer connected and its record has expired (see Sending it again)
154351401The caller does not own the connected account of every folder connection, or is sending again a consolidation another member started
152992409source_ids is not exactly the drive's full set of folder connections, the drive already has a whole-drive connection, or some of the folders were already consolidated as part of a different set
169553409A folder connection is busy. error.params.reason says why: syncing, job_in_flight (a sync or other job has started, or another request holds the folder right now), owed_writes (see below), local_edit (a file edited in the workspace that is being kept apart from the cloud copy), rules_pending (an exclusion rules change has not finished applying), binding (the folder is being re-verified), access_mode_settling ("A folder connection is still applying its access mode to its files"; retry when that has finished), access_mode_unconfirmed ("A folder connection's access mode has never been confirmed on its synced files, so it cannot be combined yet. Change that folder's access mode and then change it back to re-apply it, then try again"; this applies only on a provider or drive that also allows read_write connections, such as Dropbox, Box or OneDrive (Google My Drive folders are refused earlier with 191410): a read-only connection to an S3 bucket or a Google Shared Drive is never refused this way), uncatalogued (its first sync has not finished), disconnecting_sibling (another connection on the drive is being disconnected) or changed (something changed while the request was being checked). Retry once it is idle
159760409The set cannot be combined. error.params.field names why: access_mode (a connection syncs changes back to the cloud, or the modes are mixed), once (a one-time import is in the set), exclusion_rules (see Exclusion rules below), path_length (a path would be too long once combined), catalog_size, record_size or properties_size (the set is too large to combine in one step), destination (the destination is inside a connected folder), or provider_account (the cloud connection has no confirmed provider account, so it cannot be proven that no other connection to the same drive holds folders outside the set)
101580409Two of the folder connections share or overlap one folder, or the same cloud item is synced through two of them
104501409Name collision inside the new whole-drive folder. error.params.consolidate_conflicts is a list of { "source_id", "target_path" }, with target_path relative to the whole-drive folder, for example /Data
160137503Temporarily unavailable, including a commit whose outcome could not be confirmed. Send the same request again: it is answered from what was actually committed

A caller who does not own the connected account gets the same owner-only refusal as sources/create/.

owed_writes. A folder connection is refused while it still owes the cloud account a change: an upload, folder creation or move that is waiting, held, failed or canceled; a removal of a file or folder that is waiting, held or failed (a canceled removal no longer counts); or a rename that was interrupted. Let its pending changes finish (retry, resolve or cancel them, see Write-Back Queue), or disconnect that folder with keep and leave it out, then send the request again. A failed or canceled upload, folder creation or move keeps counting until it is retried or cleared.

Exclusion rules carry over. Each folder connection's folder rules move to the whole-drive connection unchanged, re-rooted under that folder's path, and keep excluding exactly what they excluded before. Pattern rules must be the same on every folder connection, and are carried once; otherwise the request is refused with exclusion_rules. It is refused the same way when a carried pattern, or one of the built-in system-file names, matches part of a folder connection's own path (for example Pro* and a folder connected at /Projects), and when the combined list would be too long. The whole-drive connection always skips system files (exclude_system_files: true); a folder connection that synced them keeps its existing system files in the workspace, no longer synced. The carried rules read as pending (exclusion_rules_pending: true) until the whole-drive connection's first sync applies them, and that sync only keeps items: it never removes any.

Response (200 OK). { "result": true, "source": { ... }, "job": { ... } }. source is the new whole-drive connection. The folder connections are ended by the time this answers: they no longer appear in source lists, and requests against them answer not found. Poll GET /current/cloudsync/details/{source_id}/jobs/{job_id}/ with the new source id and the returned job id. For this job the job object also carries:

"consolidate": {
  "step": "needs_repair",
  "stalled": false,
  "members": [
    { "source_id": "{source_id_1}", "placement": "placed", "reason": null, "target_path": "/Projects", "actions": [] },
    { "source_id": "{source_id_2}", "placement": null, "reason": "occupied", "target_path": "/Clients/Acme", "actions": ["retry"] }
  ],
  "actions": ["retry", "keep_all"]
}
FieldMeaning
stepcommitted, placing, restamping, needs_repair, opened, done or abandoned. Poll until done or abandoned
stalledtrue when the operation has been retrying a temporary failure for a long time. It keeps retrying
members[].placementplaced once that folder's files are inside the whole-drive folder, otherwise null
members[].reasonWhy the folder could not be placed, or null: occupied (something else is already at its place in the whole-drive folder), cycle (its place is inside the folder itself), trashed (the folder, or a folder above it, is in the trash), missing (the folder no longer exists), drive_folder_lost (the whole-drive folder was deleted after part of the drive was placed in it), node_metadata (the folder's stored details cannot be updated), owed_writes (a change still waiting to reach the cloud account turned up inside the folder while the connection was being opened; let it finish, then retry) or unplaceable (the folder, or the whole-drive folder, cannot be put in place)
members[].target_pathWhere the folder goes inside the whole-drive folder
members[].actions, actionsThe repairs available right now (see below); empty except while the operation waits for one. A blocked folder offers retry; the operation offers retry and keep_all

What happens. The whole-drive connection reads status: "syncing" with sync_reason: "consolidating" while the files are moved into place. Until the job reaches opened it is closed: it does not sync, its settings cannot be changed, it cannot be disconnected or deleted (those answer the usual busy refusal), and its job cannot be canceled. A folder connection that was renamed locally gets its cloud name back, and missing intermediate folders are created. At opened the connection becomes an ordinary connection: sync_reason clears, and a connection still reading syncing changes to synced and starts its first sync, a full listing of the drive that finds the files already in place. A connection that something else stopped meanwhile (for example error after its cloud account was revoked) keeps that status and gets no first sync. The job then finishes some housekeeping and reaches done. abandoned means the operation ended through keep_all: every file stays as ordinary workspace content and the whole-drive connection is disconnected. It also ends that way when the whole-drive connection is disconnected or deleted before it opens. Nothing is ever trashed or deleted by the operation.

When a folder cannot be placed (needs_repair). The whole-drive connection stays closed, so nothing in it syncs, and no file is changed. The blocked folders are tried again automatically about once an hour, so fixing the cause (for example renaming or moving the item that occupies the place, or restoring a folder from the trash) clears it on its own. To clear a block, free the folder's place, then send retry (or wait for the automatic retry). To give up instead, send keep_all. Both act on the whole consolidation; there is no per-folder repair. The owner sends:

POST /current/cloudsync/details/{source_id}/consolidate/repair/ with the whole-drive connection's id.

ParameterTypeRequiredDescription
actionstringYesretry: try the blocked folders again now, typically after freeing their place. keep_all: stop, and keep every file where it is as ordinary workspace files; the whole-drive connection ends disconnected and nothing is trashed. In rare cases an item cannot be released: it stays where it is but keeps showing as synced from the ended connection and stays read-only, and nothing syncs it again

The same people may call it as may call sources/consolidate/. It records the request and answers at once with the same { source, job } shape; the repair runs in the background, so keep polling the job. One repair can be pending at a time.

Error CodeHTTP StatusCause
157404406Invalid input: an action other than retry or keep_all, or a source_id (not accepted)
162311404The connection was not found
139538401The caller does not own the connected account of the whole-drive connection and of every folder it combines
190366409There is no consolidation waiting for a repair on this connection (it was never consolidated, has finished, or already has a repair pending). Read the job again
107476503Temporarily unavailable. Retry

Sending it again. Re-sending the same request, while the operation runs or after it reached done, returns the same source and job, for the member who started it and only for exactly the same set of folders. This works for a limited time after the operation, and only while the whole-drive connection exists: disconnecting it does not end this, deleting it does. After that, or once the whole-drive connection has been deleted (an abandoned operation deletes it), the ended folder connections answer as not found.


One-Time Imports

A one-time import copies a cloud folder into the workspace once and then disconnects on its own, leaving the copied files as ordinary workspace files. Use it for a bulk upload or a migration, where the folder should not stay connected. It uses the same routes as a connected folder. Create it with sync_kind: "once" on POST .../sources/create/, follow it on the source object, stop it with disconnect/, and retry a failed one with refresh/. There is no separate endpoint.

When it is available. The organization must have one-time imports available. Four keys in the limits.cloud_import object (GET /current/org/billing/plan/list/, see the billing reference in the organizations docs) govern them. They are separate from the limits on connected folders:

KeyMeaning
import_once_concurrent_orgHow many one-time imports may be active at the same time across all of the organization's workspaces
import_once_concurrent_userHow many one-time imports one person (the member whose cloud account is connected) may have active at the same time, across every organization
import_once_objectsFiles per import
import_once_sizeBytes per import

Where these are 0, one-time imports are not available. A one-time import does not use one of the workspace's connected-folder slots, and the connected-folder file and size caps do not apply to it. The caps above apply instead while the import runs, and an estimate with sync_kind: "once" counts up to a fixed ceiling at least as high as any organization's one-time caps. An import counts as active until it reaches disconnected. That includes while it has failed (error) and while it is finishing (disconnect_pending).

Creating a one-time import

POST /current/cloudsync/workspace/{workspace_id}/sources/create/ takes one extra parameter. Every other parameter, rule and refusal is the same as for a connected folder, including ai_processing (see Choosing Bulk or Priority AI Processing).

ParameterTypeRequiredDescription
sync_kindstringNoongoing (default, a connected folder) or once (a one-time import). With once, access_mode must be omitted or read_only, and sync_interval is ignored

The response is the source object, with sync_kind: "once" and an import object (described below). While the import runs, the imported folder is read-only in the workspace.

Error CodeHTTP StatusMessageCause
182703406sync_kind must be "ongoing" or "once"Any other sync_kind value
196422406"One-time imports are read-only; access_mode must be read_only."sync_kind: "once" with access_mode: "read_write"
126879406"Sources from S3-compatible storage are read-only. Use access_mode \"read_only\"."access_mode: "read_write" on a source of a read-only provider (capabilities.{provider}.read_only: S3). Also refused by details/{source_id}/update/. params[0] = {"name": "access_mode", "kind": "invalid", "reason": "provider_read_only"}
101850412Your plan does not include one-time imports.One-time imports are not available for this organization; params.reason = plan_required — settled; do not retry, surface the error to the user
173522412"Your organization has reached its limit of concurrent one-time imports."import_once_concurrent_org imports are already active. Wait for one to finish, or stop one; params.reason = plan_limit
154245412"You have reached your limit of concurrent one-time imports."The caller already has import_once_concurrent_user active imports, counted across every organization; params.reason = plan_limit
169102 / 185577503"Import source creation is temporarily unavailable. Please try again."The limits could not be checked safely just now. Nothing was created. Send the same request again shortly

Estimate first. POST .../sources/estimate/ takes the same optional sync_kind. With once, each folder is counted up to a fixed one-time import ceiling (in the units of import_once_objects and import_once_size) at least as high as any organization's caps, so stopped: "limit" means the folder is too large for a one-time import; compare a complete count with the organization's own one-time caps to decide whether it fits now. An invalid value answers 189504 → 406, “sync_kind must be "ongoing" or "once"”. With sync_kind: "once" for an organization without one-time imports, the estimate is refused 412 (one-time imports not available) — the same refusal as sources/create/. An organization that has one-time imports still counts up to the same fixed ceiling, unchanged. The estimate is still not metered. It returns the bulk quote and bulk_available for a one-time import exactly as for a connected folder.

The import object

Every source carries sync_kind (ongoing or once) and import. import is null for a connected folder. For a one-time import it reads:

"import": {
  "phase": "copying",
  "outcome": null,
  "listed_files": 1234,
  "files_copied": 1200,
  "skipped": { "too_large": 2, "name_collision": 1, "type_conflict": 0, "invalid_content": 0, "remote_replaced": 0, "provider_refused": 0 },
  "skipped_sample": [ { "path": "Folder/big.mov", "reason": "too_large" } ],
  "stop_requested": null,
  "teardown_refused": false,
  "started_at": "2026-10-09 16:37:29 UTC",
  "completed_at": null
}
FieldTypeMeaning
phasestringcopying, stopping (a stop was requested and is being honoured), finalizing (copying is over and the files are being released), completed, or failed (retry with refresh/). Derived from status
outcomestring | nullHow it ended: completed, completed_with_warnings (some files were skipped, see skipped), stopped_kept or stopped_deleted. null until the import has finished copying
listed_filesinteger | nullFiles found in the most recent complete listing of the cloud folder. null until a listing has completed. Use files_copied / listed_files for a progress bar once it is a number
files_copiedintegerFiles copied so far. Updated after each pass, not continuously. For live progress while a pass runs, poll GET .../jobs/{job_id}/ and read its progress
skippedobjectFiles left out on purpose, by reason. Every reason is always present (0 when none): too_large (larger than the workspace can store as one file), name_collision (clashes with an item already in the folder), type_conflict (a file and a folder share a name), invalid_content (could not be stored), remote_replaced (the file was replaced in the cloud folder by a different file at the same path after the import started; the copy already imported is kept), provider_refused (a file the cloud provider refused to let us download, for example because its owner turned off downloading; the rest of the import still completes)
skipped_samplelist | nullUp to 10 {path, reason} examples, paths relative to the imported folder. Only too_large, remote_replaced and provider_refused files are sampled. Only the member who connected the account, or a workspace admin, sees it. For everyone else it is null
stop_requestedstring | nullkeep or delete once a stop has been requested (it stays set after the import finishes); null if no stop was requested
teardown_refusedbooleantrue when an automatic teardown could not proceed — either a delete whose ownership could not be proven, or 3 consecutive failed automatic teardown attempts on a finished or stopped import (see Stopping a one-time import). Needs a person to act
started_atstringWhen the import started, YYYY-MM-DD HH:MM:SS UTC
completed_atstring | nullWhen it finished, YYYY-MM-DD HH:MM:SS UTC. null until disconnected

How status reads for a one-time import:

statusimport.phaseWhat is happening
pending, discovering, syncingcopying / stoppingThe import is copying files, or a requested stop is being honoured
disconnect_pending, disconnectingfinalizingCopying is over. The imported files are being released to the workspace
disconnectedcompletedFinished. outcome says how
error, suspended_workspacefailedIt stopped on a failure. error_message says why (advisory text). Retry with refresh/

How an import runs

Stopping a one-time import

POST /current/cloudsync/details/{source_id}/disconnect/ with action stops a one-time import. The access rules are the same as for any disconnect.

While the import is running or queued, the call answers 202 and the stop takes effect before the next group of files is transferred, usually within seconds to a few minutes:

{
  "result": true,
  "status": "stopping",
  "action": "keep",
  "message": "Stopping the import. Poll source status for completion."
}

import.phase reads stopping and import.stop_requested the action. The import then finishes on its own: disconnect_pending → disconnected, with outcome stopped_kept or stopped_deleted.

When nothing is working on it (it has failed, is waiting on its workspace, or an earlier delete was refused), the call answers 200 and the rest happens in the background:

{
  "result": true,
  "status": "disconnect_pending",
  "action": "keep",
  "message": "The import was stopped and is finishing in the background. Poll source status for completion."
}

Poll the source until it reads disconnected. A one-time import is never disconnected inside the request, so neither answer carries data_deleted.

A refused delete leaves the import waiting for a person. If the files could not all be proven to be this import's own, nothing is trashed. The source stays disconnect_pending with import.teardown_refused: true and the reason in error_message. It is not retried automatically, and it still counts as an active import. The same flag is also set after 3 consecutive failed automatic teardown attempts on a finished or stopped import, for any other reason. Either way, to clear it, send disconnect/ again: keep, or delete after moving the blocking item out of the folder (see Disconnecting a Source for what blocks a delete).

A stop that arrives after copying has finished is answered like a disconnect already in progress, and the import completes normally: 102628 or 158130 → 406 while its finishing step is queued, 184326 → 503 while it is running, otherwise 175633 → 409, "Source is already being disconnected". Only an import marked teardown_refused (above) — a refused delete, or repeated failed teardown attempts — can be re-decided.

A stop while the import is not copying but something else is working on it (it has failed or is waiting on its workspace, and a retry that has not started yet, or another operation, holds it) answers 158130 or 102628 → 406. Nothing was recorded. Retry shortly; once nothing is working on it, the stop is applied as above.

A stop on an import whose finishing step was interrupted while running (the source still reads disconnecting, but nothing is working on it) restarts that step with the action the import already recorded and answers 200 disconnect_pending with that action. The action in the request is ignored. If the source reads disconnect_pending instead, its finishing step is restarted automatically and a stop answers 175633 → 409 as above.

A stop that could not be recorded answers 156471, 189762 or 183455 → 503, "The import could not be stopped right now; please retry". Nothing was changed. Send the same request again.

Retrying a failed import

POST /current/cloudsync/details/{source_id}/refresh/ on a one-time import with status: "error" resumes it, and files already copied are not copied again. The access rules are the same as for any refresh. A one-time import fails for one of these reasons: the cloud provider refused or failed, the organization's limits or policy stopped allowing it, the cloud folder listed as empty, or it stopped making progress several times in a row. error_message names the reason. Fix the cause first where there is one, such as an org admin changing a limit or policy. An import whose workspace was deleted reads suspended_workspace. If the workspace is restored, the import moves to error and can then be retried.

On a one-time import, refresh/ is refused in two cases:

Changing or deleting a one-time import

The finish is also an event. import_source_import_completed fires once when a one-time import reaches disconnected, carrying the outcome and the counts. See the events reference. The event is best-effort and can, rarely, be missed entirely, so treat the source's import object — poll the source — as the authoritative record of the outcome, not the event.


Disconnecting a Source

POST /current/cloudsync/details/{source_id}/disconnect/ ends a source's sync relationship permanently. On a one-time import it stops the import instead, and the responses differ — see One-Time Imports. Owner-or-admin: the member who owns the connected cloud account, or a workspace admin (a workspace admin needs a sign-in session or an rwa credential on the workspace or its org — an unscoped API key does not qualify). The permission check runs before the “already disconnected” check below, so a caller without access learns nothing about the source's status from the answer.

ParameterTypeRequiredDescription
actionstringYes (No when dry_run is true)keep leaves every imported file in the workspace as ordinary content; delete moves the files this source imported to the trash
dry_runbooleanNotrue only checks what a delete would do and changes nothing; see Checking before you delete below. Must be a JSON boolean when present

Checking before you delete. POST /current/cloudsync/details/{source_id}/disconnect/ with dry_run: true changes nothing: no lock is taken, the source's status is not written and no work is queued. action is optional in this mode. It answers:

{
  "result": true,
  "trash_allowed": false,
  "user_item_count": 3
}

user_item_count is the number of items found inside the connected folder that this connection did not create; a folder someone added counts as one item, whatever it holds. trash_allowed says whether a disconnect with action: "delete" would currently be allowed to trash the folder: it is true only when the whole folder was checked and every item in it is this connection's own. When trash_allowed is false the check may have stopped early (the folder could not be listed in full, it ran out of time on a very large folder, or it hit a structure it cannot check), so user_item_count is then only a lower bound and can read 0; treat false as "not confirmed". The real delete checks again. Show the member how many of their own items are inside before they confirm a delete. The usual not-found, already-disconnected and busy refusals still apply.

Neither action changes any FILE in the connected cloud account. Disconnecting ends the connection and delete trashes the workspace copies only. Nothing in the connected account's contents is added, changed or removed either way. Change notifications are registered per connected cloud ACCOUNT, not per folder — one registration serves every folder connected from that account, so disconnecting one folder does not tear it down, and the account's other connected folders keep receiving changes. The disconnected source simply stops: it reads disconnected, and nothing syncs or writes back for it again.

Response (200 OK)

A source of 1000 files or fewer is disconnected before the call returns:

{
  "result": true,
  "status": "disconnected",
  "message": "Source has been disconnected successfully.",
  "action": "delete",
  "data_deleted": true
}

data_deleted is null on keep and true on delete. It is never false. A delete that did not happen is an error response — the endpoint does not answer 200 and then report in a field that it changed nothing.

A source with more than 1000 files disconnects in the background instead, answering status: "disconnecting" with a message and no action or data_deleted. Poll the source until it leaves disconnecting.

delete is REFUSED rather than guessing. The imported folder is checked in full before anything moves, and the delete is refused unless every item in it is proven to be this source's own import. How that refusal reaches you depends on which path ran. On a source of 1000 files or fewer the request itself is refused with 403 — nothing changes and the source is left connected exactly as the call found it, so the cause can be fixed and the same request sent again. On a source of more than 1000 files the call has already answered 200 with disconnecting, so the same refusal surfaces on the source instead: it parks at disconnect_pending carrying the reason, as described below. That check is a snapshot taken before any trashing begins, so it cannot speak for content added or moved into the folder while the operation is already running; on a folder being changed concurrently, disconnect once the changes have settled.

WhyWhat to do
The folder holds an item somebody added or moved into it, which did not come from this connectionMove that item out of the imported folder, then retry
The folder holds an item belonging to a different connected folderDeal with that connection separately, or move the item out
The folder holds an imported item whose connection cannot be identifiedMove it out, or disconnect with keep
The imported folder itself is not this connection's, or no longer reads as importedNothing the API can fix — this connection cannot claim that folder. Read the keep caveat below before falling back to it
The folder is nested deeper than the check walks, or its structure loops back on itselfFlatten the folder, or disconnect with keep

A 403 here is settled: the same request refuses identically until the folder changes, so never put it in a retry loop. The message names the item that blocked it where it can, but the wording is advisory text for a person — branch on the status.

keep is not a universally safe fallback from a refusal. It releases every imported item in the folder, including items belonging to another connected folder — those stop being imported too, and the connection that owns them stops tracking them. It is clean for content the user added themselves, which carries no import state to release. Offer it knowing that, rather than as an automatic retry.

A disconnect that could not be carried out no longer reports success. Any unproven cleanup — a refusal, or storage that did not answer — ends the request with an error and leaves the source connected and retryable, instead of recording it as disconnected with its files still in place. Callers that treated a 200 as final can keep doing so; what changed is that the failure cases are no longer 200.

On the background path (>1000 files) the usual equivalent is disconnect_pending: the source leaves disconnecting, does not reach disconnected, carries the reason in its error_message, and neither syncs nor writes back while it sits there. Send the same disconnect again once the cause is fixed — disconnect_pending accepts a retry, and disconnected does not. That is the normal settling point rather than a guarantee: a background disconnect that cannot record its own outcome can be left in disconnecting instead, so read the source's current status rather than assuming which one it reached.

A source left in disconnecting is recoverable — send the same disconnect again. The status on its own is no longer a refusal. disconnect is accepted whenever nothing is actually working on the source, which is what an abandoned background disconnect looks like, and it starts a fresh one. It answers 503 only while a disconnect is genuinely in progress, and that answer means what it says: retry shortly. So a disconnecting source that stays that way is not stuck — retry the disconnect rather than waiting.

Error CodeHTTP StatusCause
173328403delete refused: this source could not confirm every item in the folder is its own to remove. Nothing was trashed and nothing was disconnected. Settled — do not retry unchanged
159808500The cleanup could not be carried out, or could not be confirmed — including a folder whose contents could not be listed in full. Nothing was disconnected. Retry the same request
153282500The source could not be read while the disconnect held it. Nothing was changed. Retry the same request
184326503This source is already being disconnected — another disconnect is in flight. Retry shortly
158130406“Source is busy with another operation; please retry” — another operation holds the source. Retry shortly
102628406“A sync or disconnect job is already in progress for this source” — wait for the job to finish, then retry
191762409This source is already disconnected. Settled — retrying can never change that
156120406dry_run is present but not true or false
114980406action is missing or is not keep or delete (and dry_run is not true)

Confirming a Large Deletion

POST /current/cloudsync/details/{source_id}/refresh/

A sync mirrors deletions: files removed from the connected cloud folder are removed from the workspace too. (A one-time import never mirrors deletions, so none of this applies to it, and acknowledge_large_delete on one is refused — see One-Time Imports.) A single run pauses for confirmation — instead of being applied — when it would remove an unusually large share of the connected folder: at least 10 files, and more than a quarter of the files the folder holds; or 1,000 files or more, regardless of the folder's size. A provider listing that comes back completely empty for a folder that previously held files always pauses, whatever the count. When a run pauses: nothing is deleted, the source is left in error, and its error_message names how many files the run would have removed and how many the folder holds, ending with “The person who connected this account can confirm the removal to let it proceed.” Every later sync stops in the same place, because a provider that under-reports its own listing looks exactly like a folder somebody emptied, and guessing wrong destroys content.

Removed files land in the workspace trash, not gone for good. A removal that proceeds — whether it was below the pause threshold or went through after confirmation — moves the files to the workspace's trash like any other delete, so they can be restored from there. Restoring a file that was removed from a read_write connected folder uploads it back to the cloud provider, the same as creating a new file in that folder would.

Read pending_removal on the list response, not error_message. GET .../workspace/{workspace_id}/sources/ carries a structured pending_removal field on each source — error_message is advisory text for a human and is not part of the contract. pending_removal is null when nothing is waiting for confirmation (the normal case), while a sync is queued or running, and for a stop that cannot be confirmed at all (see the fourth point below); otherwise:

"pending_removal": {
  "remove_count": 6,
  "folder_file_count": 16,
  "files": ["Reports/q3.xlsx", "Old Drafts/"],
  "files_truncated": false,
  "detected_at": "2026-10-02 16:58:14 UTC",
  "connector_owner": { "user_id": "2477739036763523387", "name": "Jane Doe" },
  "can_confirm": true
}
FieldTypeMeaning
remove_countintegerFiles the stopped sync would remove — the number the confirmation is bound to
folder_file_countinteger | nullFiles the connected folder held when this was measured. Null for a stop recorded before this field existed
fileslist<string>Up to 20 paths, relative to the connected folder, that would be removed. A folder that disappeared entirely is one entry ending in /, so files can be shorter than remove_count. May be empty for an older stop
files_truncatedbooleanTrue when removed paths were left out of files (more than 20, or the list hit its size limit). A folder entry covering many files does not by itself make this true
detected_atstring | nullWhen the stop was recorded, as YYYY-MM-DD HH:MM:SS UTC
connector_ownerobject{ "user_id": string | null, "name": string } — the person who connected the cloud account. user_id is null and name is "" when the owner cannot be resolved
can_confirmbooleanTrue only when the caller IS that connector owner, using a credential that can write

This field is not present on GET .../details/{source_id}/ — read it from the list.

To let the removal through, repeat the refresh with the confirmation:

{ "acknowledge_large_delete": true }

The field is optional and the endpoint still accepts a request with no body at all. A plain refresh (no acknowledge_large_delete) stays owner-or-admin, like the rest of refresh/. Confirming the removal itself is the connector owner’s alone — there is no workspace-admin override. A caller who passes the usual refresh access check (owner or workspace admin) but is not the person who connected the account gets the first error below; a caller who fails that access check gets the endpoint’s ordinary access errors instead:

Error CodeHTTP StatusMessageCause
128584403“Only the person who connected this cloud account can confirm removing these files”The caller is not the connector owner
177276500“Import operations temporarily unavailable”The connector-owner lookup failed transiently. Retryable

After a confirmed refresh, pending_removal becomes null immediately. status stays error for a few seconds until the sync starts, then moves syncing → synced — or back to error with a new pending_removal if more files vanished in the meantime. The response shape of refresh/ itself does not change.

Five things about acknowledge_large_delete are worth knowing before you build on it:


Reading a Source Against Its Limits

Each connected folder is limited by the workspace's limits in two ways: how many files it may hold and how many bytes. Every source object from the list, details and sources/create/ responses carries both caps and where the source stands against them:

FieldTypeMeaning
object_limitinteger | nullThe workspace's file cap for one connected folder
object_limit_statestring | nullok, approaching (at or above 90% of the cap) or exceeded (above the cap), from file_count
size_limitinteger | nullThe workspace's size cap for one connected folder, in bytes
size_limit_statestring | nullok, approaching or exceeded, the same way, from total_size
limit_exceededstring | nullWhich cap the most recent sync refused this source on: objects or size. null otherwise
limit_observedinteger | nullWhat that refused sync measured: the folder's file count when limit_exceeded is objects, its size in bytes when size. null when the refusal did not measure the folder, and when limit_exceeded is null — except while the automatic re-check wait from that refusal is still running after a sync that failed for another reason, when it still reports the measurement
limit_recheck_afterstring | nullThe earliest time the refused source is re-checked automatically (YYYY-MM-DD HH:MM:SS UTC). null whenever limit_observed is null, and for a one-time import, which is only retried with refresh/

The two caps and the two states are null on a response that carries no limit context (the update/ response); limit_exceeded, limit_observed and limit_recheck_after are present everywhere. On the update/ response limit_observed and limit_recheck_after are filled only while limit_exceeded is set — after a failure for another reason, read the source's details for the measurement and the wait still in force.

limit_exceeded is the refusal itself, not arithmetic. When a sync is refused because the folder is over a cap, the source goes to status: "error" with an error_message, and limit_exceeded names the cap. The matching object_limit_state or size_limit_state then reads exceeded even if file_count or total_size is still 0 — which is the normal case for a newly connected folder refused before anything was imported. limit_exceeded is set only while the source is still in that error: it is null again as soon as the source leaves status: "error" or its error_message changes to a different reason — when the next sync starts, succeeds, fails for another reason, or the source is suspended, paused or disconnected. Raising the workspace's limits does not clear it by itself: limit_exceeded and the matching exceeded state remain until the source leaves the refusal state — normally when the next sync of that source starts — even though the new caps are already reported in object_limit / size_limit.

Compare limit_observed with the cap to see how far over the folder is. limit_observed: 37701 beside object_limit: 25000 means the folder holds 12,701 files more than one connected folder may: remove files at the provider, or connect smaller subfolders as separate sources (check them first with the estimate endpoint).

A refused folder is re-checked automatically, less often while it stays over. Each automatic re-check lists the whole folder again. The first runs a day after the refusal; if the folder is still over, the next waits 2 days, then 4, then 7 days for every later one. limit_recheck_after is when the next may run — it runs at the source's next scheduled sync after that time, and until then neither the schedule nor a provider change notification starts a sync of that folder. A change to the workspace's limits is picked up at the next scheduled sync without waiting. refresh/ re-checks at once, and pausing then resuming the source re-checks at its next scheduled sync; either one starts the wait over at one day. A sync that fails for another reason in between does not shorten or restart the wait: limit_exceeded is then null, but limit_observed and limit_recheck_after keep reporting the measurement and the wait until it ends.

size_limit_state can read lower than what the next sync compares. total_size includes a file with no provider-declared size (a Google Docs, Sheets or Slides file) only once it has actually been imported, while the sync's own check counts each such file it has never imported as 10 MiB. Use the estimate endpoint (see Estimating Folders Before Connecting Them) to check a folder before connecting it.


Source and Job Lifecycle Refusals

The source and job lifecycle endpoints — update/, refresh/, delete/ and jobs/{job_id}/cancel/ — each have a state precondition, and a request that violates one is answered 409 Conflict, never a 5xx. The exception is the busy refusals — two on update/, one on delete/ — which answer 406 and are retryable (see below). This is the same rule the write-back endpoints already follow, applied to the other half of the surface; these used to answer 500, which told clients to retry a request whose outcome had nothing to do with a server fault.

Gate on the HTTP status. The error.code values below are the ones actually serialized, and they identify the call site rather than the reason — several share a message, and the message is what tells the cases apart.

Endpointerror.codeHTTP StatusMessage
update/ (action: pause)187554409Source can only be paused when synced, in error state, or suspended by policy or workspace deletion
update/ (action: pause)156588409Source cannot be paused from its current state
update/ (action: resume)112266409Source can only be resumed when paused
update/ (action: resume)122558409Source cannot be resumed from its current state
update/ (any field)144246406Source is busy with another operation; please retry
update/ (any field)199777406A sync or disconnect job is already in progress for this source
update/ (any field)132056409Source is disconnected or being disconnected
refresh/192986409Source must be in synced or error state to refresh
refresh/10713402The workspace’s organization cannot use credits; branch on params.reason, not the message. credits_exhausted: “You have exceeded your credit limit. Used N of M credits.” (add credits or upgrade). account_hold: “This account is on hold. Please contact support.” (no usage figures; paying does not lift it, so direct the customer to support). trial_conversion_pending, upgrade_pending or trial_conversion_lapsed, with plan: a payment hold, with the usage message; a billing admin completes or restarts the payment confirmation (see the credit-limit error and payment_recovery in Organizations). Connected folders only
delete/172501409Cannot delete source in active state. Disconnect or wait for completion first.
delete/168268406Source is busy with another operation; please retry — a consolidation is still moving files into this whole-drive connection
delete/ (one-time import)139774409A one-time import can be deleted only after it has finished. Use disconnect to stop it first.
update/ (one-time import)166039409A one-time import cannot change access_mode, sync_interval or its exclusion rules, or be paused or resumed; only remote_name may be updated
sources/create/181494409Provider identity is not active
sources/create/121883503The cloud connection changed while the source was being created. Please try again.
sources/create/268832409This folder is already connected to this workspace
sources/create/165964409This folder overlaps a folder already connected to this workspace.
sources/create/161802406A personal OneDrive cannot be synced as a whole drive, because its Personal Vault cannot be read. Choose a folder instead.
sources/create/134664412The organization has reached its limit for import sources (params.reason = plan_limit)
sources/create/134248503The organization's limits could not be determined right now; try again shortly
sources/create/105962403Cloud sync is turned off for this organization. (params.reason = cloud_sync_disabled — see Cloud Sync Policy)
sources/create/178341 / 178934503Cloud sync policy is temporarily unavailable. Please try again shortly.
jobs/{job_id}/cancel/130927409Only pending jobs can be canceled; a running job cannot be stopped once it has started
jobs/{job_id}/cancel/125572409Same message — the job started between reading it and cancelling it
jobs/{job_id}/cancel/104099409A disconnect in progress cannot be canceled; wait for it to finish.
jobs/{job_id}/cancel/167316409A consolidation cannot be canceled. If it is waiting for repair, use the consolidate repair action instead.

One-time imports refuse a few more requests — on sources/create/ (one-time imports not available to the organization, or a concurrency limit reached, both 412) and on refresh/ (only a failed import can be retried, 409; acknowledge_large_delete is not applicable, 406). 192986 applies to connected folders only. These are listed under One-Time Imports.

One row here is transient, not a refusal. sources/create/ answers 134248 → 503 when the workspace's limits could not be read at all. Nothing about the request is wrong and nothing is settled: send the same request again shortly. It is the same answer the connect endpoints give for the same condition, and it is deliberately distinct from the 412 limit refusal above — gate on the HTTP status first, exactly as you would there.

update/ now refuses while a sync or disconnect owns the source, and this is a change to a shipped endpoint: pausing, resuming, renaming and changing the interval used to be accepted at any moment. They were not safe — a settings change made during a source's first sync overwrote the sync's own progress, leaving the connection wedged in a state nothing could move it out of. The two refusals answer 406, matching disconnect/, which has always refused the same way for the same reason. Both are transient: re-read the source with source-details, wait for the job to finish, and send the same request again.

update/ refuses a source that is disconnected or being disconnected. A source whose status is disconnect_pending, disconnecting or disconnected takes no settings: any field answers 409 with “Source is disconnected or being disconnected”, and nothing is changed. Previously an access_mode change on such a source answered 500, and other fields were written to a source that was going away. While a disconnect job is still running on the source, the busy refusal above (406) answers instead. The 409 holds for as long as the source is in one of those states, and a disconnect_pending source can still change state, so do not retry it blindly: re-read the source with source-details and act on the state it is actually in. Paused and suspended sources are not affected and still accept updates.

None of these is answered by repeating the request immediately — but they are not all permanent. Two kinds are mixed together here, and the difference decides what a client should do:

In both cases: do not tight-loop. Re-read the source with source-details (or the job) and act on the state it is actually in; where the state is one that transitions, wait for the transition rather than polling the refusing endpoint. Some rows are not a 409 at all: the organization limit answers 412, which is settled — surface it to the user rather than resending; unreadable limits answer 503, and its fix is to send the same request again shortly. The cloud-sync policy rows split the same way: 105962 → 403 is settled until an admin changes the policy, while 178341 / 178934 → 503 means the policy could not be read and is worth sending again shortly.

A running sync job cannot be cancelled. Cancel applies only while the job is still pending, and it is applied as a compare-and-swap on that status — so a job that starts between reading it and cancelling it answers 409 rather than having its record rewritten. Once a sync is running it runs to completion; there is no way to stop a transfer in flight, and the previous behaviour only made the audit record say otherwise.

A disconnect job is never cancellable, at any status. Cancelling one does not stop the teardown — it removes the record that something owns it, and leaves the source stuck mid-disconnect. Wait for it to finish.

A 500 still appears on these endpoints and now means what it says: a datastore read or write failed, a profile could not be resolved, or a job could not be queued. Those are worth retrying. A state refusal is not.


Write-Back Queue

Write-back is the return direction of cloud sync. A change made to an imported file inside Fastio — an edit, a new version, a delete — is pushed back out to the folder at the provider, so the connected cloud account ends up holding the same content.

FOLDER changes propagate too, and the QUEUEING is all-or-nothing. Trashing a folder inside a read_write connected folder removes every file beneath it that this connection imported from the connected cloud account, not only from the workspace, and then removes the now-empty folders themselves at the provider — the folder being trashed included. Restoring the folder re-uploads the files and re-creates any folder that came back with nothing to upload inside it, undoing the removals, structure included. Moving a folder OUT of the connected folder is treated the same way as trashing it, because those files have left the connection — the workspace keeps them as ordinary content, and the provider copies and folders are removed. Each of these queues one write-back per imported file beneath the folder, and one per folder that exists at the provider, created together: if the folder's contents cannot be listed completely, nothing at all is queued and the change stays local, which is the safe direction. That queueing pass performs no removals itself; rows it already queued carry their own jobs and complete on their own; a pass that could not queue every descendant is retried before it executes anything. What follows is not a transaction at the connected account. Once queued, each removal completes on its own and is retried until it lands, so a large folder can be briefly half-removed at the provider while the rest catch up; a folder's own removal always waits for everything beneath it to clear first. The folder CONVERGES rather than flipping in one step — read the write-back list if you need to know when it has settled. A folder's removal never force-purges it: if the connected account shows the folder still holding something this workspace never put there, the removal is left as a conflict instead of deleting it, and resolving that conflict to keep the remote copy ends the job without deleting anything. Files under a nested connected folder, files that were never imported, and files belonging to a different connection are left alone in every case. Restoring an earlier version of a file, and copying a file into a connected folder, also reach the provider. Tell a user this before they trash or move a folder inside a read_write connection: it reaches their own cloud account, not just this workspace.

A folder ADOPTED INTO a read_write connected folder adds it to the connected cloud account. This covers four ways a folder can arrive: copied in (via the storage copy endpoint, or a workspace folder share's copy), created empty directly inside the connected folder, transferred in from another workspace, or simply moved in from elsewhere in the workspace while it was still ordinary (never-synced) content. In every case, every file and note in the folder is queued as an upload, and every folder with nothing beneath it that needs to reach the provider is queued as a mkdir, so the folder arrives at (or already exists at) the provider with its structure intact — empty subfolders included. A newly created empty folder is simply one mkdir. The queueing is all-or-nothing here as well: a folder that holds too many items, or is nested too deeply, is refused as a whole — nothing is added to the connected account, the folder stays in the workspace as local content, and the refusal is announced as an import_writeback_failed event; a folder whose contents merely could not be listed completely this time is retried without an announcement. Once queued, each write-back completes on its own, so a large folder appears at the provider gradually. Moving a synced folder from one read_write connected folder to another removes it from the first connected cloud account (as above) before adding it to the second — so it briefly exists in neither account's history, then only the new one. Renaming or moving a file or folder that stays inside the same connected folder is moved at the provider in one step, without re-uploading anything. The rename or move is queued as a single move write-back; a folder moves as a whole in one operation rather than file by file. If something else already occupies the destination at the provider, or the item is no longer where it was expected, the write-back goes to conflict and is resolved the same way any other conflicting write-back is — see Resolve a Write-Back Conflict below. A rename combined with an edit to the file's contents is pushed as a single upload that relocates the file and then writes the new content, in that order. A folder that was never itself connected but holds connected items (for example a folder created in the workspace and filled with uploads before this behavior existed) is picked up by the next sync. Renaming or moving it before then is repeated at the provider when its previous location is known and the connected items directly inside it confirm the folder is still there; otherwise that write-back is canceled and the next sync picks the folder up. A folder renamed only by changing letter case (for example Reports to reports) is not renamed at a provider that treats names without regard to case; that write-back goes to conflict, and the folder has to be renamed at the provider to match.

Notes DO take part in cloud sync, in both directions. A note is Markdown — a .md node holding ordinary stored content — so it mirrors to the provider as its own .md object. A note you create or edit inside a read_write synced folder is pushed, queues a write-back like any file, and appears in the connected cloud account as a .md file; trashing one propagates the delete, and an edit made to that .md at the provider is pulled back into the note. The TYPE mapping, however, is one-way, and that is the part not to assume: a .md arriving from the provider with no matching note already in the workspace is imported as an ordinary file, never converted into a note — so the Markdown in a synced code or docs folder stays files rather than becoming collaborative notes.

A provider edit that is not valid note content is refused, and the sync stays healthy. Notes cap at 100 KB and must be markdown, so if the .md at the provider grows past that, or is replaced with something binary, the note keeps its previous content and the provider copy is left untouched. This is not a sync failure — the source does not go into error over it, and the rest of the folder keeps syncing — so a note that has quietly stopped tracking its provider file is something to look for rather than something you will be alerted to. Fix it at the provider and the next sync picks it up.

It is off by default and enabled per source: a source only writes back while its access_mode is read_write. A read_only source imports and never writes — but a write-back it already queued is held, not discarded; see below.

Most write-backs are created for you. Changing an imported file queues one automatically; there is no endpoint to call for the ordinary case. The endpoints in this section exist for the cases automation cannot settle by itself — forcing a push, retrying one that failed, deciding a conflict, and cancelling one that has not run yet.

Reading the queue is member-level; every write action is not. A push, a retry, a keep_local resolve — each of these runs the transfer under the cloud credential of the member who connected the source's identity, writing into that person's own cloud account. So the write actions require that identity's owner, or a workspace admin; anyone below that is refused with HTTP 401 (error.code 163114). The identity owner needs only the write scope documented above; a workspace admin additionally needs an admin-capable credential — a sign-in session, or a token holding rwa on the workspace or its org — and is otherwise refused scope_admin_required (see Transfer Workspace Ownership above). Listing and reading a job need only ordinary view access to the workspace.

Timestamp format change. created, updated and remote_mtime_before are emitted as YYYY-MM-DD HH:MM:SS UTC — the canonical API datetime format. They previously omitted the  UTC suffix. A client that parses these fields with a fixed pattern must accept the suffix.

Status lifecycle

The lifecycle is pending → uploading → completed | failed | conflict | canceled.

statusMeaningWhat the caller does
pendingQueued; the transfer has not startedWait, or cancel it
uploadingThe transfer is runningWait. It cannot be retried, resolved or cancelled from here
completedThe provider holds the changeNothing — final
failedThe attempt ended in an errorRead error_message, fix the cause, then retry
conflictThe copy at the provider changed as well, so nothing was writtenResolve it keep_local or keep_remote, or cancel it
canceledEnded by a caller, because the local change no longer applies (for example its file or folder was trashed first), or because the write-back route went away for good (see below)Nothing — final

Two of those are not the end of the story. failed returns to pending when you retry it, and conflict returns to pending when you resolve it. completed and canceled are final: no endpoint accepts a job in either state.

canceled does not only arrive from uploading. Cancelling acts directly on a pending or conflict job, and a job is also cancelled for you when the write-back route itself goes away for good — the source is disconnected or deleted, the connected identity is revoked, the member who owns it loses access to the workspace, or the workspace is closed. A job whose local change no longer applies is cancelled too, on a healthy connection — a pending folder creation or move whose folder or file was trashed before it went out. These are examples, not an exhaustive list — a folder rename whose previous provider location cannot be established is also cancelled, on a healthy connection. When you need to know why a particular job was cancelled, read its error message rather than inferring the cause.

Flipping a source to read_only HOLDS its queued write-backs instead of cancelling them. A pending job stays pending; the route resumes automatically, with no re-queue needed, as soon as the source is switched back to read_write. The hold is bounded: a write-back still held after about 5 days ends failed instead of waiting indefinitely, with properties.terminal_reason: "policy_hold_expired" — retry-writeback accepts it from there, so the edit is never silently lost. This is a reversible policy choice, not a loss of the route: disconnecting the source, deleting it, a member removal, or a revoked connection still cancel outright, exactly as above.

A workspace on a temporary hold does NOT cancel its queued write-backs — they wait. A workspace or org that is locked, suspended or under review is on a hold that ends, so its queued jobs stay pending and the work is held rather than discarded. They are re-checked periodically and go out on their own once the hold is lifted; there is nothing to retry and nothing to re-queue. This is the difference between a hold and a closure: a closed workspace cancels, a suspended one waits. A job held this way can still reach its retry ceiling if the hold lasts long enough, and it then ends failed — which retry accepts, so the edit is never silently lost.

An edit made while a job is already uploading gets its own job. A queued pending job absorbs later edits to the same file, because it reads the file's current content when it runs. An uploading one cannot: the transfer has already read the content it is going to send, so a newer edit gets a fresh pending job queued behind it. Expect to see two jobs for one file in that window — one uploading and one pending — and expect the second to absorb any further edits rather than adding a third.

Do not treat conflict as an error state. It is a decision waiting on a person: both copies changed, and only the caller knows which one is right. Nothing has been overwritten at either end while a job sits there.

The write-back object

Every endpoint in this section returns this shape.

FieldTypeMeaning
idstringThe write-back job's id
import_source_idstringThe source this job belongs to
node_idstringThe imported file being written — or, for a mkdir/rmdir/move, the folder or file being created, removed, or relocated
profile_idstringThe workspace that owns the source
remote_pathstringAbsolute path of the object at the provider — for a move, the NEW path it is being relocated to
operationstringupload (a local create, edit or new version), delete (a local delete), mkdir (creates an empty folder in the connected account), rmdir (removes an empty folder from the connected account), or move (renames or relocates a file or folder within the same connection, moved at the provider in one step without re-uploading)
statusstringOne of the six above
file_sizeintegerSize of the local file in bytes; 0 for a mkdir, rmdir or move
bytes_uploadedintegerBytes transferred so far; equal to file_size once completed
remote_mtime_beforestring | nullThe provider's modification time for the object as it stood when the job was created — the baseline the conflict check compares against. Null until it has been captured
error_messagestring | nullWhy the job failed or conflicted
retry_countintegerAttempts spent on the current queue entry; a retry resets it to 0
propertiesobjectSee below
createdstringYYYY-MM-DD HH:MM:SS UTC
updatedstringYYYY-MM-DD HH:MM:SS UTC

error_message is advisory text for a human. It is reduced to a safe summary before it leaves the API, its wording is not part of the contract, and it is not what a client should branch on — branch on status, and on the error responses documented below.

operation is part of a job's identity, not a detail of it. An upload and a delete for the same file are two independent jobs and neither blocks the other, so one file can legitimately have two live write-backs at once.

A mkdir never overwrites anything. If the folder already exists at the provider, the job completes without writing. If a FILE already holds that name at the provider, no folder is created beside it and the job goes to conflict: keep_remote completes it without writing or pulling anything (it never creates the folder, even if the name is later cleared), and keep_local checks again — once the name has been cleared at the provider the folder is created, otherwise the job conflicts again. A folder renamed locally before its mkdir runs is created under its new name. A folder's mkdir that is no longer needed because the folder was trashed or moved out before it ran is canceled rather than created.

An rmdir never force-purges anything either. If the folder is already gone at the provider, the job completes without deleting anything. If a FILE now sits at that location, the job goes to conflict. If the provider still shows the folder holding something, the job waits for any other removal still owed beneath that path, and if nothing is owed it goes to conflict instead of deleting the folder's unknown contents — keep_remote completes that conflict without deleting anything, and the connected folder's own folder is never removed this way. If the folder is restored, or otherwise made live in the workspace again, before its rmdir runs, the job is canceled instead of removing the folder the caller just put back.

properties publishes only what a caller can act on. Internal transfer state is not included, so {} is the ordinary value for an automatically created job.

KeyValueWhen present
triggered_bymanual_pushOnly on a job created by the push endpoint — its absence is how you tell an automatic job from a forced one
resolutionkeep_local | keep_remoteOnly after a conflict on this job has been resolved
terminal_reasonpolicy_hold_expiredOnly on a failed job retired because a policy hold outlasted its limit; removed by a retry

List Write-Back Jobs

GET /current/cloudsync/details/{source_id}/writebacks/

Lists the write-back jobs recorded for one source, newest first. There is no status filter and no sort control — read the page and filter client-side on status.

Auth: JWT required. Any workspace member with view access; the source's owner is not required.

Path Parameters

ParameterTypeRequiredDescription
{source_id}stringYesThe import source's id

Query Parameters

ParameterTypeRequiredDescription
limitintNoPage size (default 50, max 200)
offsetintNoPage offset (default 0)

Both are clamped, never rejected: a limit above the maximum returns the maximum, and a limit of 0, a negative number, or a value that is not a number returns 1. A negative offset reads as 0. So a malformed page request returns a small page rather than an error, and a client that wants to validate its own paging must check what came back.

Response (200 OK)

{
  "result": true,
  "writebacks": [
    {
      "id": "al3eo-t5elp-ltput-g5a62-m3pmo-wian",
      "import_source_id": "axk7q-5ljws-dv2eb-z4aux-dsrpd-ki5u",
      "node_id": "2vqwd-zclih-azwk2-i6ay3-3bdrw-qa3p",
      "profile_id": "1234567890123456789",
      "remote_path": "/Marketing/Q3 Report.docx",
      "operation": "upload",
      "status": "conflict",
      "file_size": 184320,
      "bytes_uploaded": 0,
      "remote_mtime_before": "2026-04-27 16:37:29 UTC",
      "error_message": "The copy at the provider changed since this write-back was queued",
      "retry_count": 0,
      "properties": {},
      "created": "2026-04-27 16:38:02 UTC",
      "updated": "2026-04-27 16:41:15 UTC"
    }
  ],
  "pagination": { "limit": 50, "offset": 0, "total": 1 }
}

pagination.total is the number of items in writebacks, not the number of jobs the source has. It cannot be used to size a progress bar or to decide how many pages exist. Page until a page comes back shorter than limit.

Error Responses

Error CodeHTTP StatusMessageCause
152846406"Source ID is required"No source id in the path
100330, 108136404"Import source not found"Unknown source, or one already deleted
190576, 150617, 159003401"Insufficient permissions to access this resource"Not a member of the source's workspace
153615, 184714401"Cloud import features are not enabled for this workspace"Cloud sync is switched off for the workspace
190240, 169157401Cloud import features are not available on your current planCloud sync not available for this organization; params.reason = plan_required
10560 (Access Denied)403"Your token does not have sufficient scope for this Workspace."A scoped credential whose scope does not cover the source's workspace
131911404"Associated workspace not found"The source's workspace could not be found
134956503"Import availability could not be determined right now. Please try again shortly."Retryable — whether cloud import is available could not be checked
102793500"Failed to retrieve write-back jobs"The queue could not be read

Write-Back Job Details

GET /current/cloudsync/details/{source_id}/writebacks/{writeback_id}/

Returns one write-back job. This is the endpoint to poll while a job is live, and the endpoint to re-read after any refusal — the job's current status is what tells you whether a refusal was settled or transient.

Auth: JWT required. Any workspace member with view access.

Path Parameters

ParameterTypeRequiredDescription
{source_id}stringYesThe import source's id
{writeback_id}stringYesThe write-back job's id

Response (200 OK)

{
  "result": true,
  "writeback": {
    "id": "al3eo-t5elp-ltput-g5a62-m3pmo-wian",
    "import_source_id": "axk7q-5ljws-dv2eb-z4aux-dsrpd-ki5u",
    "node_id": "2vqwd-zclih-azwk2-i6ay3-3bdrw-qa3p",
    "profile_id": "1234567890123456789",
    "remote_path": "/Marketing/Q3 Report.docx",
    "operation": "upload",
    "status": "completed",
    "file_size": 184320,
    "bytes_uploaded": 184320,
    "remote_mtime_before": "2026-04-27 16:37:29 UTC",
    "error_message": null,
    "retry_count": 0,
    "properties": { "triggered_by": "manual_push" },
    "created": "2026-04-27 16:38:02 UTC",
    "updated": "2026-04-27 16:39:44 UTC"
  }
}

A job belongs to exactly one source. Asking for a valid job id under the wrong source is refused rather than answered, so the pair must match.

Error Responses

Error CodeHTTP StatusMessageCause
121176406"Source ID is required"No source id in the path
177233406"Write-back ID is required"No write-back id in the path
169914, 170417404"Import source not found"Unknown source, or one already deleted
136732, 117468404"Write-back job not found"Unknown write-back id
172760404"Write-back job does not belong to this source"The job exists, but under a different source
131911404"Associated workspace not found"The source's workspace could not be found
134956503"Import availability could not be determined right now. Please try again shortly."Retryable — whether cloud import is available could not be checked
190576, 150617, 159003401"Insufficient permissions to access this resource"Not a member of the source's workspace
10560 (Access Denied)403"Your token does not have sufficient scope for this Workspace."A scoped credential whose scope does not cover the source's workspace

Push a File Back to the Provider

POST /current/cloudsync/details/{source_id}/writebacks/push/{node_id}/

Queues a write-back for one imported file immediately, without waiting for a change to trigger one. Use it to re-send content the provider is known to be missing or stale on, or to force the current content out after a failure has been dealt with by other means.

The job is created pending, with operation: upload — a manual push is always an upload, never a delete — and properties.triggered_by set to manual_push. It returns as soon as the job is queued; it does not wait for the transfer.

Auth: JWT required. The owner of the source's connected identity, or a workspace admin (a workspace admin needs a sign-in session or an rwa credential on the workspace or its org; the identity owner needs only write scope). The transfer runs under the owner's cloud credential.

Path Parameters

ParameterTypeRequiredDescription
{source_id}stringYesThe import source's id
{node_id}stringYesThe imported file to push

No request body.

{node_id} must name an imported FILE or NOTE, never a folder. This is worth stating plainly because a folder inside a synced folder is an imported node just as much as a file is, so a folder's id is a perfectly plausible thing to send. It is refused at request time — 409 Conflict, error.code 166884, "Node is not an imported file or note" — rather than accepted with a 200 and a queued job that could only fail later. There is no "push this folder" operation; push each file. A note’s id is accepted. A note is Markdown — a .md node holding ordinary stored content — so it mirrors to the provider as its own .md object, and pushing one queues a write-back exactly as pushing a file does.

The node must also be under this source and still carry its import metadata. A node that belongs to another source, or that sits outside the folder this source imported, is refused 404 — the id is not addressable through this source.

Response (200 OK)

{
  "result": true,
  "writeback": {
    "id": "al3eo-t5elp-ltput-g5a62-m3pmo-wian",
    "import_source_id": "axk7q-5ljws-dv2eb-z4aux-dsrpd-ki5u",
    "node_id": "2vqwd-zclih-azwk2-i6ay3-3bdrw-qa3p",
    "profile_id": "1234567890123456789",
    "remote_path": "/Marketing/Q3 Report.docx",
    "operation": "upload",
    "status": "pending",
    "file_size": 184320,
    "bytes_uploaded": 0,
    "remote_mtime_before": null,
    "error_message": null,
    "retry_count": 0,
    "properties": { "triggered_by": "manual_push" },
    "created": "2026-04-27 16:38:02 UTC",
    "updated": "2026-04-27 16:38:02 UTC"
  }
}

The response is 200, not 201.

Error Responses

Error CodeHTTP StatusMessageCause
122500406"Source ID is required"No source id in the path
134003406"Node ID is required"No node id in the path
114895406"Invalid node ID format"The node id is not a well-formed id
121128409"Write-back is only available for read-write import sources"The source's access_mode is read_only
166884409"Node is not an imported file or note"A folder, a node that is not imported, or one with no import metadata
166931404"Import source not found"Unknown source, or one already deleted
130591404"Node not found"Unknown node id
166884404"Node does not belong to this import source"The node is imported, but by a different source
166884404"Node is not under this import source"The node is outside the folder this source imported
104972409"This node already has a write-back in progress"Transient — another live job already covers this file. See below
150377503"Another write-back action for this node is in progress"Retryable — a concurrent action holds this file's turn
178768503"Could not check whether this node already has a write-back in progress"Retryable — the already-covered check could not be carried out, so the request was never evaluated
100952503"The write-back lock for this node expired before the change was applied"Retryable — this file's turn was held and lapsed before the job was created. Nothing was written, so re-sending cannot queue it twice
175118406"This item is excluded from sync by the source's exclusion rules, so it cannot be written back. Remove the rule to sync it again."The file is inside the source's excluded scope; params[0].reason = path_excluded. Nothing was written
132369503"Could not read this item's sync state"Retryable — whether the item is excluded from sync could not be checked. Nothing was written
163114401"This action requires the source owner or a workspace admin"Neither the identity owner nor a workspace admin
10767 (Forbidden)403"Your credential is not authorized for administrative operations on this Workspace."The caller is a workspace admin acting on another member's source, but the credential is not admin-capable — no sign-in session, no rwa on the workspace or its org (scope_admin_required)
10560 (Access Denied)403"Your token does not have sufficient scope for this Workspace."A scoped credential whose scope does not cover the source's workspace
141940403"Cloud sync is read-only here, so changes are not pushed back to the provider." / "Cloud sync is turned off for this organization."The cloud-sync policy does not allow write-back for the caller. params.reason = cloud_sync_read_only or cloud_sync_disabled. Settled until an admin changes the policy. See Cloud Sync Policy
178934, 178341503"Cloud sync policy is temporarily unavailable. Please try again shortly."Retryable — the cloud-sync policy could not be read
133368500"Failed to load import source"Retryable — the source could not be read
152790500"Node has no import remote path metadata"The file's import record carries no remote path
146003500"Import operations temporarily unavailable"Retryable — the connected account could not be read while checking whether the caller owns the source
187019500"Failed to create write-back job"The job could not be queued

The permission check runs before the access-mode check. A member who is neither owner nor admin, pushing to a read_only source, is told about their permissions rather than about the access mode — so a caller without access, or one whose credential's scope doesn't cover the workspace, learns nothing about the source's mode from the answer.

Three of the refusals above share one error.code — "Node is not an imported file or note", "Node does not belong to this import source" and "Node is not under this import source". They are distinguished by HTTP status (409 versus 404), never by the numeric code. This is the general rule for this API: numeric codes are assigned per call site and are for diagnostics, not for branching.


Retry a Failed Write-Back

POST /current/cloudsync/details/{source_id}/writebacks/{writeback_id}/retry/

Puts a failed job back in the queue. The job returns to pending, its error_message is cleared, and retry_count resets to 0 because the new attempt starts a fresh budget.

Retrying does not change anything about the transfer. If the cause was a permission the connected account does not have, or a provider that rejects the file, the retry will fail the same way. Fix the cause first — a write-back that failed because the connected account lacks permission to write that folder is a permanent failure, and only granting the permission makes a retry worthwhile.

A replacement the provider refuses because the file is locked is also permanent. When OneDrive for Business refuses to land an upload over the existing file because the file is locked, the write-back fails at once, without automatic retries. Other refused replacements are retried automatically a limited number of times before the write-back fails. Either way, error_message suggests closing the file if it is open or checked out. Retry once that is done.

Auth: JWT required. The owner of the source's connected identity, or a workspace admin (a workspace admin needs a sign-in session or an rwa credential on the workspace or its org; the identity owner needs only write scope).

Path Parameters

ParameterTypeRequiredDescription
{source_id}stringYesThe import source's id
{writeback_id}stringYesThe write-back job's id

No request body.

Precondition: status must be failed. Any other status is refused.

Response (200 OK)

The job, as re-queued — status: "pending", error_message: null, retry_count: 0, under the writeback key.

Error Responses

Error CodeHTTP StatusMessageCause
111911406"Source ID is required"No source id in the path
110936406"Write-back ID is required"No write-back id in the path
147389404"Import source not found"Unknown source, or one already deleted
178290404"Write-back job not found"Unknown write-back id
120867404"Write-back job does not belong to this source"The job exists, but under a different source
110486, 134967409"Only failed write-back jobs can be retried"Settled — the job is not in failed, or it left failed while the request was being handled
153949409"This node already has a write-back in progress"Transient — another live job already covers this file. See below
178836503"Another write-back action for this node is in progress"Retryable — a concurrent action holds this file's turn
190959503"Could not check whether this node already has a write-back in progress"Retryable — the already-covered check could not be carried out
118850503"The write-back lock for this node expired before the change was applied"Retryable — this file's turn was held and lapsed before the re-queue. Nothing was written, so the job is still failed and re-sending cannot re-queue it twice
175118406"This item is excluded from sync by the source's exclusion rules, so it cannot be written back. Remove the rule to sync it again."The job's item is inside the source's excluded scope; params[0].reason = path_excluded. Nothing was written
117840503"Could not read this item's sync state"Retryable — whether the item is excluded from sync could not be checked. Nothing was written
146454, 146749500"Failed to load import source" / "Failed to load write-back job"Retryable — the record could not be read
163114401"This action requires the source owner or a workspace admin"Neither the identity owner nor a workspace admin
10767 (Forbidden)403"Your credential is not authorized for administrative operations on this Workspace."The caller is a workspace admin acting on another member's source, but the credential is not admin-capable — no sign-in session, no rwa on the workspace or its org (scope_admin_required)
10560 (Access Denied)403"Your token does not have sufficient scope for this Workspace."A scoped credential whose scope does not cover the source's workspace
141940403"Cloud sync is read-only here, so changes are not pushed back to the provider." / "Cloud sync is turned off for this organization."The cloud-sync policy does not allow write-back for the caller. params.reason = cloud_sync_read_only or cloud_sync_disabled. Settled until an admin changes the policy. See Cloud Sync Policy
178934, 178341503"Cloud sync policy is temporarily unavailable. Please try again shortly."Retryable — the cloud-sync policy could not be read
146003500"Import operations temporarily unavailable"Retryable — the connected account could not be read while checking whether the caller owns the source
121666500"Failed to retry write-back job"The job could not be re-queued

Resolve a Write-Back Conflict

POST /current/cloudsync/details/{source_id}/writebacks/{writeback_id}/resolve/

Decides a conflict: the file changed in Fastio and the copy at the provider changed too, so the write was held rather than applied. Resolving re-queues the job to pending with the decision recorded, and clears error_message and retry_count.

Auth: JWT required. The owner of the source's connected identity, or a workspace admin (a workspace admin needs a sign-in session or an rwa credential on the workspace or its org; the identity owner needs only write scope).

Path Parameters

ParameterTypeRequiredDescription
{source_id}stringYesThe import source's id
{writeback_id}stringYesThe write-back job's id

Request Body (JSON)

ParameterTypeRequiredDescription
resolutionstringYeskeep_local or keep_remote
resolutionWhat happens
keep_localThe Fastio copy wins. The job is re-queued and pushes it out, overwriting the changed copy at the provider — the conflict check is skipped for this one attempt, which is the whole point of the choice
keep_remoteThe provider's copy wins. The remote version is pulled down over the Fastio copy, and nothing is written outward

The value is case-sensitive, surrounding whitespace is ignored, and any other value is refused. keep_local discards the other side's change at the provider, and keep_remote discards the local one — put the choice in front of a person rather than defaulting it.

Precondition: status must be conflict.

Response (200 OK)

The job, as re-queued — status: "pending", properties.resolution set to the value you sent, under the writeback key.

Error Responses

Error CodeHTTP StatusMessageCause
164343406"Source ID is required"No source id in the path
136428406"Write-back ID is required"No write-back id in the path
194134406"Invalid JSON in request body"The body was not a JSON object
103945406resolution must be "keep_local" or "keep_remote"Missing, misspelled, or a different value
194027404"Import source not found"Unknown source, or one already deleted
183748404"Write-back job not found"Unknown write-back id
131919404"Write-back job does not belong to this source"The job exists, but under a different source
128386, 165499409"Only conflicting write-back jobs can be resolved"Settled — the job is not in conflict, or it left conflict while the request was being handled
121194409"This node already has a write-back in progress"Transient — a different live job already covers this file. See below
113948503"Another write-back action for this node is in progress"Retryable — a concurrent action holds this file's turn
101337503"Could not check whether this node already has a write-back in progress"Retryable — the already-covered check could not be carried out, so the request was never evaluated
102262503"The write-back lock for this node expired before the change was applied"Retryable — this file's turn was held and lapsed before the re-queue. Nothing was written, so the job is still conflict and re-sending cannot re-queue it twice
141260503"Could not read this item's sync state"Retryable — whether the item is excluded from sync could not be checked. Nothing was written
156549, 106846500"Failed to load import source" / "Failed to load write-back job"Retryable — the record could not be read
163114401"This action requires the source owner or a workspace admin"Neither the identity owner nor a workspace admin
10767 (Forbidden)403"Your credential is not authorized for administrative operations on this Workspace."The caller is a workspace admin acting on another member's source, but the credential is not admin-capable — no sign-in session, no rwa on the workspace or its org (scope_admin_required)
10560 (Access Denied)403"Your token does not have sufficient scope for this Workspace."A scoped credential whose scope does not cover the source's workspace
141940403"Cloud sync is read-only here, so changes are not pushed back to the provider." / "Cloud sync is turned off for this organization."keep_local only — the cloud-sync policy does not allow write-back for the caller. params.reason = cloud_sync_read_only or cloud_sync_disabled. keep_remote writes nothing to the provider and is never refused by policy. See Cloud Sync Policy
178934, 178341503"Cloud sync policy is temporarily unavailable. Please try again shortly."keep_local only. Retryable — the cloud-sync policy could not be read
146003500"Import operations temporarily unavailable"Retryable — the connected account could not be read while checking whether the caller owns the source
172377500"Failed to resolve write-back conflict"The job could not be re-queued

The already-covered check on resolve excludes the job being resolved. A conflict job is itself live, so a check that counted it would refuse every resolve. Resolving is therefore never blocked by its own row — only by a different live write-back on the same file, for the same operation, which is what a later edit or a retry can put there while the conflict waits for a decision.


Cancel a Write-Back

POST /current/cloudsync/details/{source_id}/writebacks/{writeback_id}/cancel/

Ends a job that has not run yet, or one waiting on a conflict decision. The job moves to canceled and nothing is written to the provider.

Auth: JWT required. The owner of the source's connected identity, or a workspace admin (a workspace admin needs a sign-in session or an rwa credential on the workspace or its org; the identity owner needs only write scope). Cancelling runs no transfer and needs nobody's cloud credential — the same gate is applied to every write action on this queue so that one rule covers the whole surface.

Path Parameters

ParameterTypeRequiredDescription
{source_id}stringYesThe import source's id
{writeback_id}stringYesThe write-back job's id

No request body.

Precondition: status must be pending or conflict. A job already uploading cannot be cancelled — the transfer is in flight, and there is no point at which it could be stopped cleanly. Wait for it to reach a terminal status.

Response (200 OK)

The job, with status: "canceled", under the writeback key.

Error Responses

Error CodeHTTP StatusMessageCause
119760406"Source ID is required"No source id in the path
155122406"Write-back ID is required"No write-back id in the path
100716404"Import source not found"Unknown source, or one already deleted
125115404"Write-back job not found"Unknown write-back id
163373404"Write-back job does not belong to this source"The job exists, but under a different source
162579, 162369409"Only pending or conflicting write-back jobs can be canceled"Settled — the job is uploading, or already terminal
176538, 178921409"This folder's rename is in progress in the connected account and can't be cancelled until it finishes."Wait — a folder renamed only by letter case is part-way through its rename at the provider. It finishes or is undone on its own; if the job instead shows a conflict, resolve the conflict
193997503"Another write-back action for this node is in progress"Retryable — a concurrent action holds this file's turn
104179503"The write-back lock for this node expired before the change was applied"Retryable — this file's turn was held and lapsed before the cancel was applied. Nothing was written — the job is untouched and still cancellable
122246, 162944500"Failed to load import source" / "Failed to load write-back job"Retryable — the record could not be read
163114401"This action requires the source owner or a workspace admin"Neither the identity owner nor a workspace admin
10767 (Forbidden)403"Your credential is not authorized for administrative operations on this Workspace."The caller is a workspace admin acting on another member's source, but the credential is not admin-capable — no sign-in session, no rwa on the workspace or its org (scope_admin_required)
10560 (Access Denied)403"Your token does not have sufficient scope for this Workspace."A scoped credential whose scope does not cover the source's workspace
133730500"Failed to cancel write-back job"The job could not be cancelled

Cancel has no already-covered check. It removes a live job rather than creating one, so whether the file is already covered is irrelevant to it — the two refusals about coverage that push, retry and resolve can return do not appear on this endpoint.


Reading a Write-Back Refusal

This is the part clients get wrong, so it is worth stating on its own. Refusals on the four write endpoints fall into three groups, and only two of the three are worth sending again.

AnswerMeaningWhat to do
503This file's exclusive turn could not be taken, could not be used to check coverage, or lapsed before the change was applied. Nothing was written, whichever of the three it wasRetry. Back off briefly and send the same request again, unchanged — it cannot apply the change twice
409, "This node already has a write-back in progress"Another live job already covers this fileRe-read and wait. It clears on its own. Do not repost blindly
409, any state preconditionThe job is not in a status this action acceptsSettled. Resending the same request unchanged can never succeed

Not every 409 on this surface is settled, which is the opposite of the general rule for conflicts elsewhere in this API. The already-covered refusal is the exception, and treating it as permanent means abandoning work that would have succeeded a moment later.

A cloud-sync policy refusal is a separate answer again. Push, retry and a keep_local resolve refuse with 403 (error.code 141940) and params.reason = cloud_sync_read_only or cloud_sync_disabled when the org or workspace policy does not allow write-back — settled until an admin widens the policy, so do not retry it. A "Cloud sync policy is temporarily unavailable" 503 (error.code 178934 or 178341) is retryable like the other 503s. Cancel and a keep_remote resolve are never refused by policy. See Cloud Sync Policy.

Why the 503s happen at all. Push, retry, resolve and cancel each take a short exclusive turn on the file they act on, so two write-back actions for one file can never interleave. Three distinct things can go wrong with that turn. All three answer 503, and on all three nothing was written:

MessageWhat actually happenedWhich endpoints
"Another write-back action for this node is in progress"The turn could not be taken — another action is holding it right nowpush, retry, resolve, cancel
"Could not check whether this node already has a write-back in progress"The turn was taken, but the already-covered check could not be carried out, so the request was never evaluated on its meritspush, retry, resolve
"The write-back lock for this node expired before the change was applied"The turn was taken and held, then lapsed before the change was applied. The turn is short-lived and is re-proved immediately before the write; it had expired by then, so the request stopped therepush, retry, resolve, cancel

These are three different facts, not three phrasings of one: could not start, started but could not look, started and lost the turn before writing. Only the last one implies the request got as far as being ready to write — and it still wrote nothing, so re-sending it cannot queue, re-queue or cancel anything twice. All three are ordinary transient conditions that a plain retry fixes.

Cancel has no already-covered check — it removes a live job rather than creating one, so coverage is irrelevant to it and the middle row above cannot occur there.

Live means pending, uploading or conflict — those are the statuses that make a file "already covered". A completed, failed or canceled job does not block anything. And because operation is part of the match, a pending upload does not block a delete for the same file.

Telling the two 409s apart.

In short: a 503, retry it; a 409 saying the node is already covered, re-read and wait; a 409 on a state precondition, settled — never retry.

Two outcomes worth planning for

A permission refusal from the provider is permanent. If the connected cloud account cannot write to the folder, every attempt fails identically. Retrying is wasted; the fix is to grant the account write access at the provider, and only then retry.

Renaming or moving an imported file within its connected folder moves it at the provider. On a read_write connected folder, a pure rename or move is ordinarily queued as one move write-back: the object is moved server-side from its old path to the new one, and nothing is re-uploaded. A read_only folder queues no move. A rename made together with a content edit is one upload write-back instead, which moves the object and then pushes the new bytes; and a rename of a file whose upload is still pending queues no move at all, because that upload lands at the new path by itself. Exclusion rules change both cases: when the new location is excluded from the sync, a move is still queued and the content edit is held rather than uploaded.

↑ Back to top