Endpoint reference
Every endpoint, in one place.
The complete v1 contract: what each call does, what it takes and what it answers. The same file drives the API pages in the organisation console.
Download OpenAPI v1.9.0 216 operations
How to read this
Call the organisation host for every product call and the platform host for tokens. Send the access token as a Bearer header. Errors are problem details with a stable code.
Each row opens to show its parameters, request fields and the answers you can branch on. A field marked with an asterisk is required.
Tokens https://api.casewelt.com/v1/oauth/token
Product https://{slug}.portal.casewelt.com/v1/… (or your verified custom domain)
Auth Authorization: Bearer <access_token>
Errors Content-Type: application/problem+json { "code": "…", "correlation_id": "…" }
Tokens
POST /v1/oauth/token Client credentials or first-party token-exchange
X-Correlation-ID (header) string
Content-Type: application/json
200 Bearer access_token (no refresh token)
400 human_api_forbidden | partner_origin_not_allowed | federation_assertion_invalid (only when subject_token_type is not jwt)
401 invalid_client | federation_assertion_invalid | federation_assertion_expired | federation_assertion_replayed
403 federation_not_allowed | federation_tenant_mismatch | federated_member_inactive | api_ip_denied
404 federated_member_missing
503 federation_not_configured
GET /v1/session/me Who is calling: identity, organisation, roles and jobs
200 Session + capabilities
Applications
GET /v1/organisations/applications List the organisation's Partner applications (organisation scope)
200 Application rows including first_party (read-only)
POST /v1/organisations/applications Register a Partner application; the client secret is returned once (organisation scope)
Content-Type: application/json
name* string
origins array of string
scopes array of string
ui_allowed boolean
allowed_cidrs array of string
201 Includes client_secret once (secret_once=true)
POST /v1/organisations/applications/{id} Rotate the client secret
id* (path) string
Content-Type: application/json
action* string: rotate_secret
200 Includes client_secret once
403 partner_application_channel
404 not_found
PUT /v1/organisations/applications/{id} Update name, status, origins, scopes, allowed_cidrs, ui_allowed (organisation scope)
id* (path) string
200 Updated application (no secret)
400 application_id_required | invalid_status | invalid_cidr
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
404 `not_found`, a resource code (`file_not_found`, `folder_not_found`, `folder_workspace_mismatch`, …) or, on `api.casewelt.com` for upload / documents / AI routes, `use_tenant_host`.
DELETE /v1/organisations/applications/{id} Delete a Partner application; its tokens stop working (organisation scope)
id* (path) string
204 Deleted
Organisation
GET /v1/organisations/workspaces Admin catalogue of workspaces (organisation scope)
200 workspaces[] including caps / security_mode
POST /v1/organisations/workspaces Create a workspace (organisation scope)
Content-Type: application/json
slug* string
display_name string
security_mode string
201 Created workspace row
GET /v1/organisations/branding Organisation branding (theme / logos family)
200 configured, display_name, primary_color, theme, copy, has_logo, has_favicon, has_wordmark, has_login_bg, logo_url, favicon_url, wordmark_url, login_bg_url, support_email, support_url
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
PUT /v1/organisations/branding Update organisation branding
Content-Type: application/json
display_name string
primary_color string
theme object
copy object
200 Updated branding
400 invalid_primary_color
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
GET /v1/organisations/holds List legal holds
200 holds[] { hold_id, file_id, reason, created_at, status: ACTIVE }; with hold_details also matter, owner_email, review_on (YYYY-MM-DD)
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
POST /v1/organisations/holds Place a legal hold on a file (organisation scope; plan feature.legal_hold)
Content-Type: application/json
file_id* string (uuid)
reason* string
matter string
owner_email string
review_on string (date)
201 { hold_id }
400 invalid_file_id | invalid_reason | invalid_hold_details
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
404 file_missing
409 hold_exists | hold_place_failed
PUT /v1/organisations/holds Release a legal hold, or change its details
Content-Type: application/json
hold_id* string (uuid)
action string: details
matter string
owner_email string
review_on string (date)
200 { status: released } or { status: updated }
400 invalid_hold_id | invalid_hold_details
409 hold_details_unavailable | hold_details_failed
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
404 `not_found`, a resource code (`file_not_found`, `folder_not_found`, `folder_workspace_mismatch`, …) or, on `api.casewelt.com` for upload / documents / AI routes, `use_tenant_host`.
PUT /v1/organisations/sms Set the SMS code text for one locale (organisation scope)
Content-Type: application/json
locale* string: en | tr | de | fr | it
template* string
200 { locale, template, preview }
400 sms_template_*
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
DELETE /v1/organisations/sms Back to the Casewelt default text for a locale (?locale=tr)
locale* (query) string
200 { locale, template }: the default now in effect
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
GET /v1/organisations/profile-policy What members may edit in their own profile (organisation scope)
200 { allow_self_edit, allow_theme_choice }
PUT /v1/organisations/profile-policy Set what members may edit in their own profile (organisation scope)
Content-Type: application/json
allow_self_edit boolean
allow_theme_choice boolean
200 Updated policy
GET /v1/organisations/members Members and seat counts (organisation scope)
identity_subject (query) string
200 members[] { user_id, identity_subject, preferred_username, status, role, org_admin, tenant_owner, given_name, family_name, email, display_name, directory_managed }, seat_limit, member_count, org_admin_limit, org_admin_count
POST /v1/organisations/members Add a member
Content-Type: application/json
identity_subject string
preferred_username string
org_admin boolean
role string
201 { user_id, identity_subject, status, idp_user_created, idp_user_existed, temporary_password? }
400 invalid_identity_subject | invalid_role | operator_not_a_tenant_member
409 seat_limit_exceeded | org_admin_limit_exceeded | membership_exists
PUT /v1/organisations/members Change status, role or profile; remove a member
Content-Type: application/json
identity_subject* string
membership_status string
role string
org_admin boolean
given_name string
family_name string
email string
password string
remove boolean
200 { status: updated, idp_updated, password_set }
404 membership_missing
409 last_org_admin | last_tenant_owner | org_admin_limit_exceeded | seat_limit_exceeded | identity_shared_with_other_organisations (identity also belongs to another organisation)
GET /v1/organisations/groups Groups (organisation scope)
200 groups[] { group_id, slug, display_name, status, kind, member_count }
POST /v1/organisations/groups Create a group (organisation scope)
Content-Type: application/json
slug* string
display_name* string
kind string
201 Created group
400 invalid_group | invalid_kind
PUT /v1/organisations/groups/{groupId} Rename, change kind or status
groupId* (path) string
Content-Type: application/json
display_name string
kind string
status string
200 Updated group
404 group_missing
GET /v1/organisations/groups/{groupId}/members Members of a group (organisation scope)
groupId* (path) string
200 members[] { user_id, identity_subject, preferred_username, given_name, family_name, email, display_name }
POST /v1/organisations/groups/{groupId}/members Add a member to the group
groupId* (path) string
Content-Type: application/json
user_id string (uuid)
identity_subject string
preferred_username string
201 Added
PUT /v1/organisations/groups/{groupId}/members Remove a member from the group (same body as POST)
groupId* (path) string
200 Removed
GET /v1/organisations/groups/{groupId}/acls Workspace and folder access granted to a group (organisation scope)
groupId* (path) string
200 acls[] { resource_type, resource_id, workspace_id, effect, actions[], role_code?, scope_type? }
POST /v1/organisations/groups/{groupId}/acls Grant the group actions on a workspace
groupId* (path) string
Content-Type: application/json
workspace_id* string (uuid)
actions* array of string
201 Granted
400 invalid_workspace_id | invalid_actions
404 workspace_not_found
PUT /v1/organisations/groups/{groupId}/acls Replace or remove the group's actions on a workspace
groupId* (path) string
200 Updated
GET /v1/organisations/roles Role catalogue (organisation scope)
200 roles[]
POST /v1/organisations/roles Create a custom role
Content-Type: application/json
name* string
code* string
201 Created role
PUT /v1/organisations/roles Set a custom role's permissions
Content-Type: application/json
role_id* string (uuid)
permissions* array of string
200 Updated role
GET /v1/organisations/permissions Permission codes usable in custom roles
200 permissions[]
GET /v1/organisations/role-assignments Who holds which role, and where (organisation scope)
200 assignments[]
POST /v1/organisations/role-assignments Assign a role to a user or group at a scope
Content-Type: application/json
principal_type* string
principal_id* string (uuid)
scope_type* string
scope_id* string (uuid)
role_id string (uuid)
role_code string
valid_from string (date-time)
expires_at string (date-time)
201 Created assignment
400 invalid_assignment
409 assignment_exists | last_tenant_owner
PUT /v1/organisations/role-assignments Revoke an assignment
Content-Type: application/json
assignment_id* string (uuid)
200 Revoked
409 assignment_missing | last_tenant_owner
GET /v1/organisations/summary Console counts (organisation scope)
200 Summary counts
GET /v1/organisations/access Country / city / network rules for portal, admin, share and sign (organisation scope)
surface (query) string
object_id (query) string
200 portal_mode, portal_countries, portal_cities, portal_cidrs, admin_countries, admin_cities, admin_cidrs, share_mode, share_countries, share_cities, share_cidrs, sign_mode, sign_countries, sign_cities, sign_cidrs, overrides_allowed, geoip_ready, updated_at
PUT /v1/organisations/access Set country, city and network rules for the organisation or for one object (organisation scope)
Content-Type: application/json
portal_mode string
portal_countries array of string
portal_cities array of string
portal_cidrs array of string
admin_countries array of string
admin_cities array of string
overrides_allowed boolean
surface string
object_id string (uuid)
inherit boolean
mode string
countries array of string
cities array of string
cidrs array of string
200 Updated rules
400 invalid_access_mode | invalid_countries | invalid_cities | invalid_cidrs | invalid_surface | invalid_object
GET /v1/organisations/matters Matters (organisation scope)
200 matters[] { matter_id, workspace_id, title, reference, classification, status }
POST /v1/organisations/matters Create a matter (organisation scope)
Content-Type: application/json
title* string
workspace_id* string (uuid)
reference string
classification string
201 Created matter
400 invalid_matter
PUT /v1/organisations/matters Change the status of a matter (organisation scope)
Content-Type: application/json
matter_id* string (uuid)
status* string
200 Updated matter
GET /v1/organisations/ethical-walls Ethical walls between two members (organisation scope)
200 walls[] { wall_id, user_id_a, user_id_b, reason, status }
POST /v1/organisations/ethical-walls Put an ethical wall between two members (organisation scope)
Content-Type: application/json
user_id_a* string (uuid)
user_id_b* string (uuid)
reason string
201 Created wall
PUT /v1/organisations/ethical-walls Change the status of an ethical wall (organisation scope)
Content-Type: application/json
wall_id* string (uuid)
status* string
200 Updated wall
GET /v1/organisations/crypt-policy Desktop Crypt policy (organisation scope; plan feature.desktop_crypt)
200 { enabled, configured, entitled, desktop_reveal_in_os, group_ids[] }
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
PUT /v1/organisations/crypt-policy Set the desktop Crypt policy (organisation scope)
Content-Type: application/json
enabled boolean
desktop_reveal_in_os boolean
group_ids array of string
200 Updated policy
GET /v1/organisations/hosting Portal host, custom domains and admin network allowlist (organisation scope)
200 portal_slug, portal_base, platform_hostname, portal_path, admin_path, default_surface, allowed_bases, suggested_cname, tls_approved_providers, admin_allowlist_empty, domains[] { id, hostname, status, cname_type, cname_name, cname_target, cname_target_fqdn, tls_mode, tls_status, tls_fingerprint_sha256, tls_not_after, tls_last_error }, admin_cidrs[] { id, cidr, label }
PUT /v1/organisations/hosting Update portal paths. The platform host name itself is assigned by the platform
200 Updated hosting
403 hostname_assigned_by_platform
POST /v1/organisations/hosting/domains Add a custom domain (then create the CNAME shown and call verify)
Content-Type: application/json
hostname* string
201 Domain row with CNAME instructions
409 hostname_taken
DELETE /v1/organisations/hosting/domains/{domainId} Remove a custom domain (organisation scope)
domainId* (path) string
200 Removed
POST /v1/organisations/hosting/domains/{domainId}/verify Check the CNAME and mark the domain verified
domainId* (path) string
200 Verified domain
422 cname_not_found
POST /v1/organisations/hosting/domains/{domainId}/tls Choose automatic certificate or upload one
domainId* (path) string
Content-Type: application/json
mode* string
certificate_pem string
private_key_pem string
chain_pem string
200 TLS state
422 domain_not_verified
DELETE /v1/organisations/hosting/domains/{domainId}/tls Remove the uploaded certificate of a custom domain (organisation scope)
domainId* (path) string
200 Certificate removed
POST /v1/organisations/hosting/admin-cidrs Allow a network to open the organisation console
Content-Type: application/json
cidr* string
label string
201 Added
400 invalid_cidr
409 cidr_exists
DELETE /v1/organisations/hosting/admin-cidrs/{cidrId} Remove a network from the admin allowlist (organisation scope)
cidrId* (path) string
200 Removed
GET /v1/organisations/smtp Outbound mail settings (organisation scope). The password is never returned
200 { configured, host, port, tls_mode, start_tls, username, mail_from, password_set, source }
POST /v1/organisations/smtp Send a test message
Content-Type: application/json
to* string
200 Test result
400 smtp_test_recipient_required
PUT /v1/organisations/smtp Save settings. Public hosts on ports 25, 465, 587 or 2525 only
Content-Type: application/json
host string
port integer
tls_mode string
start_tls boolean
username string
password string
mail_from string
200 Saved
400 smtp_config_invalid
DELETE /v1/organisations/smtp Return to the platform's mail service
200 Reverted
GET /v1/organisations/identity Sign-in methods (organisation scope)
200 { methods[] { alias, provider_id, display_name, enabled, source }, identity_plane_providers, identity_plane_configured }
PUT /v1/organisations/identity Enable or configure methods (single sign-on needs plan feature.identity.sso)
Content-Type: application/json
methods array of object
kind string
200 Updated methods
400 invalid_methods | invalid_auth_kind
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
GET /v1/organisations/storage Customer-managed object storage (organisation scope). Keys are never returned
200 source, configured, endpoint, region, quarantine_bucket, content_bucket and the replica_* / vault_* equivalents, use_casewelt_disaster, updated_at
PUT /v1/organisations/storage Configure customer-managed object storage (organisation scope)
Content-Type: application/json
endpoint string
region string
quarantine_bucket string
content_bucket string
access_key string
secret_key string
use_casewelt_disaster boolean
200 Saved
400 storage_endpoint_denied | invalid_bucket_name | storage_lane_unconfigured
DELETE /v1/organisations/storage Return to platform storage
200 Reverted
POST /v1/organisations/billing/offers/{offerId}/pay Pay (or resume) a quote the operator issued to this organisation
offerId* (path) string
201 ok, checkout_session_id, checkout_url, psp, amount_cents, currency
404 offer_not_found (not this organisation's quote)
409 offer_not_redeemable
410 offer_expired
502 checkout_provider_failed
POST /v1/organisations/billing/payment-method Renew the card behind the subscription
Content-Type: application/json
admin_email string
buyer_name string
201 ok, checkout_session_id, checkout_url, psp, renewal_amount_cents, currency, no_charge_until
409 no_psp_subscription: the subscription is not paid online
503 payment_provider_unavailable
502 checkout_provider_failed
GET /v1/organisations/billing Subscription, plan, entitlements and add-ons (organisation scope)
200 organisation_id, subscription { plan_code, plan_name, status, committed_seats, starts_at, ends_at, cancel_at_period_end, can_cancel }, plan, entitlements, retention, esign, payment_instruments. Since 1.7.0 (ADR-BILL-004): payment_method { psp_provider, can_update, past_due }, pending_offers[] (operator quotes this organisation may pay: id, flow, plan_code, billable_seats, billing_period, amount_cents, currency, expires_at, resumable), checkouts_waiting[] (started hosted payments: id, flow, amount_cents, checkout_url), payment_history[] (completed checkouts).
POST /v1/organisations/billing Start a checkout for a plan change
Content-Type: application/json
plan_code* string
billing_period string
psp string
200 { ok, checkout_session_id, checkout_url, psp, billable_seats }
400 unknown_plan | plan_not_self_serve | payment_instruments_not_accepted
503 payment_provider_unavailable | billing_unavailable
GET /v1/organisations/cinema8 Video quotas per member (organisation scope)
200 { video_count_limit, bandwidth_bytes_limit, storage_bytes_limit, videos_used, storage_used, bandwidth_used, actors[] }
PUT /v1/organisations/cinema8 Set video quotas per member (organisation scope)
Content-Type: application/json
actor_id* string (uuid)
enabled boolean
shared_videos boolean
video_count_limit integer
bandwidth_bytes_limit integer (int64)
storage_bytes_limit integer (int64)
200 Updated
GET /v1/organisations/datasets Datasets (organisation scope)
200 datasets[] { dataset_id, name, residency, schema_generation, authority }
POST /v1/organisations/datasets Create a dataset
Content-Type: application/json
name* string
residency string
201 Created dataset
400 name_required
Files and folders
POST /v1/upload-sessions Open upload session (→ file_version for signature)
Content-Type: application/json
workspace_id* string (uuid)
folder_id* string (uuid)
size_bytes integer (int64)
201 Session + transfer capability paths
400 invalid_size_bytes
403 AuthZ deny / quota
PUT /v1/upload-sessions/{id}/content Stream file bytes (single PUT; body ≤ 64 MiB transport cap)
id* (path) string
Content-Type: application/octet-stream
200 Bytes accepted into quarantine
410 upload_session_expired
POST /v1/upload-sessions/complete Seal upload → AVAILABLE file_id + version_id
Content-Type: application/json
upload_session_id* string (uuid)
file_name string
size_bytes* integer (int64)
content_sha256 string
replace_file_id string (uuid)
base_version_id string (uuid)
200 Use version_id as signature-envelopes.file_version_id
409 session_not_open | size_mismatch | checksum_mismatch | quarantine_object_missing
410 upload_session_expired
POST /v1/upload-sessions/abort Abort an open upload session
Content-Type: application/json
upload_session_id* string (uuid)
200 Session aborted
404 session_not_found
409 session_not_open
GET /v1/documents List document templates in a workspace
workspace_id* (query) string
200 { templates: [ { file_id, folder_id, name, current_version_id, template } ] }
400 workspace_id_required
POST /v1/documents Create a native document (Office / OpenDocument / text) as a governed file
Content-Type: application/json
workspace_id* string (uuid)
folder_id* string (uuid)
title* string
format string: word | docx | excel | xlsx | powerpoint | pptx | odt | ods | odp | txt | csv
body string
template_file_id string (uuid)
201 { file_id, version_id, name, format, state }
400 workspace_and_folder_required | not_a_template | videos_folder_media_only
GET /v1/workspaces Workspaces the caller may view
200 workspaces[]: workspace_id, slug, display_name, status, access_model, security_mode, external_share_allowed, file_request_allowed, office_embed_allowed
GET /v1/workspaces/{workspaceId}/folders Folders of a workspace, or the children of one folder
workspaceId* (path) string
parent_folder_id (query) string
exclude_system (query) string
workspaceId* (path) string
200 folders[] plus breadcrumbs[]: root→leaf ancestors of the listed parent (including the current folder when parent_folder_id is set).
POST /v1/workspaces/{workspaceId}/folders Create folder under parent_folder_id
workspaceId* (path) string
Content-Type: application/json
name* string
parent_folder_id string (uuid)
201 Created folder JSON
409 name_taken
POST /v1/workspaces/{workspaceId}/folders/{folderId} Folder action rename | delete | move
workspaceId* (path) string
folderId* (path) string
Content-Type: application/json
action* : rename | delete | move
name string
parent_folder_id string (uuid)
200 Folder JSON; move also returns breadcrumbs
400 invalid_parent_folder_id | invalid_folder_name
404 folder_not_found | reserved_folder
409 folder_cycle | name_taken | folder_move_failed
GET /v1/workspaces/{workspaceId}/files Files in a folder the caller may see
workspaceId* (path) string
folder_id* (query) string
deleted (query) string
limit (query) integer
cursor (query) string
offset (query) integer
sort (query) string
direction (query) string
order (query) string
200 files[], total, limit, offset, has_more, next_cursor (when more), sort, direction, breadcrumbs
400 folder_id_required | cursor_invalid
GET /v1/workspaces/{workspaceId}/files/{fileId} File state for the caller (lock, favourite, tags, metadata)
workspaceId* (path) string
fileId* (path) string
200 { file_id, locked_by, locked_by_me, favorite, template, tags[], metadata{} }
404 file_not_found (also for another member's private Desktop/Crypt tree)
POST /v1/workspaces/{workspaceId}/files/{fileId} File actions: download, move, copy, rename, delete, lock, tags, …
workspaceId* (path) string
fileId* (path) string
Content-Type: application/json
action* string: capability | content | preview | office | restore_version | move | copy | transfer | rename | delete | restore | lock | unlock | favorite | unfavorite | mark_template | unmark_template | tags | metadata | cinema8_publish | cinema8_refresh
version_id string (uuid)
purpose string: download | preview
folder_id string (uuid)
name string
base_version_id string (uuid)
tags array of string
classification string
metadata object
200 capability → transfer JSON; content → file bytes; move → { status: moved, folder_id }; other actions → updated state JSON.
400 unknown_action | invalid_file_name | version_id_required | invalid_classification | metadata_object_required | metadata_invalid_value | metadata_required (record fields, contract feature metadata_schema; the problem adds field)
403 api_scope | deny | video_stream_forbidden
404 file_not_found | folder_not_found
409 name_taken | version_conflict | version_not_found | file_on_hold | object_unavailable | cross_computer_move | use_desktop_transfer | deep_archive_immutable
GET /v1/workspaces/{workspaceId}/files/{fileId}/versions Version history
workspaceId* (path) string
fileId* (path) string
200 versions[]: version_id, version_number, state, size_bytes, content_sha256
GET /v1/workspaces/{workspaceId}/files/{fileId}/comments Comments on a file
workspaceId* (path) string
fileId* (path) string
200 comments[]: id, actor_id, actor_name, body, created_at
POST /v1/workspaces/{workspaceId}/files/{fileId}/comments Add a comment (files:write)
workspaceId* (path) string
fileId* (path) string
Content-Type: application/json
body* string
version_id string (uuid)
201 Created comment
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
404 `not_found`, a resource code (`file_not_found`, `folder_not_found`, `folder_workspace_mismatch`, …) or, on `api.casewelt.com` for upload / documents / AI routes, `use_tenant_host`.
GET /v1/workspaces/{workspaceId}/files/{fileId}/tasks Tasks on a file
workspaceId* (path) string
fileId* (path) string
200 tasks[]: id, title, status, assignee_id, due_at
POST /v1/workspaces/{workspaceId}/files/{fileId}/tasks Create or update a task (files:write)
workspaceId* (path) string
fileId* (path) string
Content-Type: application/json
task_id string (uuid)
action string
title string
assignee_id string (uuid)
due_at string (date-time)
200 Updated task (201 when a new task is created)
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
404 `not_found`, a resource code (`file_not_found`, `folder_not_found`, `folder_workspace_mismatch`, …) or, on `api.casewelt.com` for upload / documents / AI routes, `use_tenant_host`.
GET /v1/workspaces/{workspaceId}/search File name search in one workspace
workspaceId* (path) string
q* (query) string
limit (query) integer
cursor (query) string
200 { q, files: [FileRow], has_more, next_cursor }
GET /v1/workspaces/{workspaceId}/recent Files the caller used recently
workspaceId* (path) string
200 files: [FileRow]
GET /v1/workspaces/{workspaceId}/favorites The caller's favourite files
workspaceId* (path) string
200 files: [FileRow]
GET /v1/sync/changes Filesystem change feed for one workspace (sync clients)
workspace_id* (query) string
cursor (query) string
limit (query) integer
200 { changes: [ { change_sequence, node_id, node_type (FILE | FOLDER), action, revision, parent_id, name, occurred_at, actor_id } ], next_cursor, has_more }
400 workspace_id_required | invalid_workspace_id
Document insights
GET /v1/content/search Search document insights (tags, headings, organisations, references, OCR)
q* (query) string
workspace_id (query) string
doc_type (query) string
tag (query) string
200 results[]
403 api_scope | entitlement_required | forbidden
503 search_unavailable
GET /v1/content/cards Insight card for one file version
workspace_id* (query) string
file_id* (query) string
version_id* (query) string
200 { version_id, card: null | { pipeline_version, lang, page_count, ocr_used, doc_type, classification_suggested, classification_confidence, tags_suggested, headings, entities, pii_flags, summary, updated_at }, ocr: { status, job_status, failure_reason, searchable_pdf_ready, can_request } }
404 not_found
GET /v1/content/quota OCR page quota for the organisation (plan feature content_ocr)
200 { quota: { … } | null }
POST /v1/content/ocr Request OCR for a version (metered; files:write)
Content-Type: application/json
workspace_id* string (uuid)
file_id* string (uuid)
version_id* string (uuid)
searchable_pdf boolean
202 { job_id, status: requested, quota }
403 api_scope | entitlement_required | forbidden
404 version_not_found
409 ocr_not_available_for_file
POST /v1/content/searchable-pdf/apply Save the searchable PDF as a new version of the file (files:write)
Content-Type: application/json
workspace_id* string (uuid)
file_id* string (uuid)
version_id* string (uuid)
201 { version_id (new), source_version_id }
409 searchable_pdf_stale | legal_hold | file_locked | searchable_pdf_unavailable
File requests
GET /v1/file-requests Recent file requests the caller may manage (latest 50)
200 file_requests[]: id, workspace_id, folder_id, inbound_folder_id, title, notify_email, expires_at, revoked
POST /v1/file-requests Create an upload link for an outside person (files:write)
Content-Type: application/json
workspace_id* string (uuid)
folder_id* string (uuid)
title string
notify_email* string
note string
include_otp_in_email boolean
skip_mail boolean
ttl_amount integer
ttl_unit string: minute | minutes | hour | hours | day | days
ttl_days integer
recipient_phone string
recipient_country string
recipient_locale string
otp_channel string: email | sms | both
201 { id, public_url, public_token, expires_at, inbound_folder_id, otp_required, otp_delivered, otp?, mail_error?, otp_channel?, otp_delivery? { sms: { status, to, country } } }
400 notify_email_required | ttl_invalid | ttl_unit_invalid | ttl_exceeds_max
404 workspace_not_found | folder_not_found
Sharing
Signatures
GET /v1/signature-envelopes Signature envelopes the caller may see
external_ref (query) string
200 envelopes[] (single match when external_ref set)
403 deny (AuthZ)
404 not_found
POST /v1/signature-envelopes Create a signature envelope for one file version (DRAFT)
Content-Type: application/json
file_version_id* string (uuid)
title string
message string
external_ref string
assurance_profile string
execution_profile string
signing_order_mode string
expires_in_days integer
201 DRAFT envelope (includes external_ref when set)
400 invalid_external_ref (length > 200)
409 external_ref_taken
GET /v1/signature-envelopes/{id} One envelope with its signers, fields and status
id* (path) string
200 Envelope detail (status, external_ref, source_file_version_id, workspace_id, expires_at, …)
POST /v1/signature-envelopes/{id}/signers Add one signer while DRAFT
id* (path) string
Content-Type: application/json
email string
name string
phone string
note string
principal_type string: EXTERNAL_RECIPIENT | STAFF | INTERNAL | HUMAN_USER
principal_id string (uuid)
verification_profile string: EMAIL_OTP | SESSION | IN_PERSON
required boolean
signing_order integer
201 Signer row
400 signature_signer_invalid
403 signature_policy_denied
POST /v1/signature-envelopes/{id}/fields Add one field while DRAFT
id* (path) string
Content-Type: application/json
signer_id* string (uuid)
field_type string: SIGNATURE | INITIALS | DATE | NAME | TEXT
page integer
page_number integer
x number
y number
width number
height number
required boolean
201 Field created
400 signer_id_required | signature_signer_invalid
POST /v1/signature-envelopes/{id}/prepare DRAFT → READY (validates PDF + required fields)
id* (path) string
200 { status: READY, envelope_id, page_count }
409 signature_invalid_state | signature_missing_required_fields | signature_source_version_changed (and PDF/field fit failures)
POST /v1/signature-envelopes/{id}/send READY → SENT; emits signature.envelope.sent
id* (path) string
Content-Type: application/json
include_otp_in_email boolean
200 { status, envelope_id, invites[] } where invites may include invite_token, invite_url, optional otp (when not emailed). Treat as secret.
POST /v1/signature-envelopes/{id}/remind Reminder + rotate invite for outstanding signers
id* (path) string
Content-Type: application/json
signer_id string (uuid)
include_otp_in_email boolean
200 Rotated invites returned (treat invite_token/otp as secret)
409 signature_invalid_state
POST /v1/signature-envelopes/{id}/resend Reissue link + rotate invite for outstanding signers
id* (path) string
Content-Type: application/json
signer_id string (uuid)
include_otp_in_email boolean
200 Reminder sent
409 signature_invalid_state
POST /v1/signature-envelopes/{id}/void Void an envelope that is not completed
id* (path) string
Content-Type: application/json
reason string
200 { status: VOIDED, envelope_id }
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
404 `not_found`, a resource code (`file_not_found`, `folder_not_found`, `folder_workspace_mismatch`, …) or, on `api.casewelt.com` for upload / documents / AI routes, `use_tenant_host`.
409 signature_invalid_state
POST /v1/signature-envelopes/{id}/finalise Ops/manual finalise (not the primary channel automation path)
id* (path) string
200 Envelope after finalise
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
404 `not_found`, a resource code (`file_not_found`, `folder_not_found`, `folder_workspace_mismatch`, …) or, on `api.casewelt.com` for upload / documents / AI routes, `use_tenant_host`.
409 signature_invalid_state
GET /v1/signature-envelopes/{id}/final-document Signed PDF (after every signer has signed)
id* (path) string
200 PDF bytes
404 `not_found`, a resource code (`file_not_found`, `folder_not_found`, `folder_workspace_mismatch`, …) or, on `api.casewelt.com` for upload / documents / AI routes, `use_tenant_host`.
409 signature_not_completed
GET /v1/signature-envelopes/{id}/certificate Completion certificate PDF
id* (path) string
200 PDF bytes
404 not_found | artifact_not_found
409 signature_not_completed
GET /v1/signature-envelopes/{id}/evidence Evidence package for the envelope
id* (path) string
200 Evidence document
404 not_found | artifact_not_found
409 signature_not_completed
Office editing
POST /v1/office/sessions Open a file in the document editor
Content-Type: application/json
workspace_id* string (uuid)
file_id* string (uuid)
version_id* string (uuid)
200 { iframe_url, editor_url, wopi_src, access_token }
400 office_ids_required | office_type_unsupported
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
404 not_found (file or version not in this workspace)
503 office_unavailable
Webhooks
GET /v1/webhooks Webhook endpoints of the organisation
200 { endpoints: [ { endpoint_id, url, status, secret } ] }
POST /v1/webhooks Add a webhook endpoint; the signing secret is returned once
Content-Type: application/json
url* string (uri)
201 secret returned once (secret_once)
400 webhook_target_denied: url is not an absolute https URL, or its host does not resolve in public DNS to public addresses.
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
POST /v1/webhooks/{id}/suspend Pause deliveries to an endpoint
id* (path) string
200 Endpoint status SUSPENDED
POST /v1/webhooks/{id}/activate Resume deliveries to an endpoint
id* (path) string
200 Endpoint status ACTIVE
GET /v1/webhooks/deliveries Recent deliveries with status and attempts
200 { deliveries: [ { delivery_id, endpoint_id, status, attempt_count, last_http_status, last_error, created_at } ] }
POST /v1/webhooks/deliveries/{id}/replay Send one delivery again
id* (path) string
200 { status: queued, delivery_id }
404 webhook_delivery_not_found
Quotas
GET /v1/organisations/usage Storage and quota meters
200 org_bytes_used, org_bytes_limit, org_usage_ratio, actor_bytes_used, actor_bytes_limit, actor_usage_ratio, meters[] { key, label, kind, used, limit, period, usage_ratio }
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
GET /v1/organisations/sms SMS allowance for one-time codes, and whether a country is reachable
country (query) string
200 { enabled, entitlement: feature.sms_otp, quota_month, used_month, remaining_month, period_start, country?, reachable?, defaults{locale:text}, placeholders[], template_max_chars, recent?[], templates?{locale:text}, preview?{locale:text} }
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
GET /v1/organisations/quotas Storage and signature quotas with per-workspace and per-member usage (organisation scope)
200 org_bytes_used, org_bytes_limit, default_actor_bytes_limit, allocated_bytes, remaining_bytes, workspaces[] { workspace_id, bytes_limit, bytes_used }, actors[] { actor_id, bytes_limit, bytes_limit_explicit, bytes_used, usage_ratio, esign_used, qes_used }
PUT /v1/organisations/quotas Set quotas. Organisation totals are set by the platform (403 platform_capacity_only)
Content-Type: application/json
default_actor_bytes_limit integer (int64)
workspace_id string (uuid)
workspace_bytes_limit integer (int64)
actor_id string (uuid)
actor_bytes_limit integer (int64)
actor_esign_month integer
actor_qes_month integer
default_esign_month integer
default_qes_month integer
200 Updated quotas
400 invalid_quota
403 platform_capacity_only
Assistance
POST /v1/ai/draft Draft a document with the organisation's AI connection
Content-Type: application/json
workspace_id* string (uuid)
prompt* string
file_name string
context string
live boolean
200 { kind, draft, dry_run, credits_charged, credits_remaining }
400 workspace_id_required | prompt_required | missing_cn8_connection | live_invoke_disabled
403 api_scope | ai_credits_exhausted | ai_credits_insufficient
502 ai_provider_unreachable | ai_empty_reply
504 ai_provider_timeout
GET /v1/integrations Integration provider catalogue
200 providers[] { provider_id, display_name, industry, reach, auth_mode, tenant_connectable, capabilities, credential_keys, notes }, live_allowed
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
GET /v1/integrations/connections This organisation's integration connections
200 connections[] { connection_id, provider_id, display_label, status }
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
GET /v1/organisations/ai AI credits per member (organisation scope)
200 { credit_limit, credits_used, allocated_credits, remaining_credits, actors[] { actor_id, enabled, credit_limit, credits_used } }
PUT /v1/organisations/ai Set AI credits per member (organisation scope)
Content-Type: application/json
actor_id* string (uuid)
enabled boolean
credit_limit integer
200 Updated
Audit
GET /v1/audit/events Organisation audit events (hash chain)
since (query) string
until (query) string
event_action (query) string
actor_id (query) string
outcome (query) string
resource_type (query) string
resource_id (query) string
correlation_id (query) string
limit (query) integer
cursor (query) string
format (query) string
200 events[]: event_id, timestamp, actor_id, actor_type, actor_username, actor_display_name, action, file_name, resource_type, resource_id, outcome, confidence, correlation_id, detail; next_cursor
GET /v1/audit/actors Actors seen in the audit log (filter helper)
200 actors[]
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
GET /v1/audit/event-actions Distinct event actions (filter helper)
200 actions[]
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
GET /v1/audit/checkpoints Signed audit checkpoints
200 checkpoints[]
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
POST /v1/audit/checkpoints Seal a checkpoint over the current chain head
409 no_audit_events
POST /v1/audit/checkpoints/{checkpointId}/verify Verify one checkpoint's signature and chain position
checkpointId* (path) string
200 Verification result
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
404 `not_found`, a resource code (`file_not_found`, `folder_not_found`, `folder_workspace_mismatch`, …) or, on `api.casewelt.com` for upload / documents / AI routes, `use_tenant_host`.
POST /v1/audit/chain/verify Verify the organisation's audit hash chain
200 Verification result
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
GET /v1/audit/evidence-exports Evidence export jobs and their state
limit (query) integer
200 { exports: [ … ] }
POST /v1/audit/evidence-exports Create a frozen-scope evidence export job (alias /v1/audit/exports)
Content-Type: application/json
scope* object
investigation_id string (uuid)
include_enrichment boolean
include_raw_segments boolean
400 invalid_audit_export_scope | invalid_audit_export_time_range | invalid_audit_export_filters | invalid_audit_export_timezone
GET /v1/audit/evidence-exports/{exportId} Export status
exportId* (path) string
200 Export row with status
404 audit_export_not_found
410 audit_export_expired
GET /v1/audit/evidence-exports/{exportId}/content Stream the export archive (alias …/download)
exportId* (path) string
409 audit_export_not_ready | audit_export_artifact_unavailable | audit_export_artifact_digest_mismatch
410 audit_export_expired
POST /v1/audit/evidence-exports/{exportId}/verify Verify an export's digest and signature
exportId* (path) string
200 Verification result
404 audit_export_not_found
409 audit_export_not_ready | audit_export_artifact_digest_mismatch
GET /v1/audit/investigations Saved investigations
200 investigations[]
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
POST /v1/audit/investigations Open an investigation (then …/{id}/pins, …/{id}/pins/delete, …/{id}/query)
201 Created investigation
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
Reports
GET /v1/reports Report dataset catalog
200 datasets[]: id (org_usage_daily | org_activity_daily), title, grains, measures, group_by
POST /v1/reports Run a report query (plan feature audit_export)
Content-Type: application/json
mode string: catalog | sql
sql string
compile_only boolean
format string: json | csv | pdf
200 { sql, rows[] } (or a csv/pdf file)
400 sql_required | sql_must_be_select | sql_forbidden | report_query_failed
GET /v1/reports/dashboard Organisation dashboard
days (query) integer
format (query) string
200 Dashboard figures (json), or a csv / pdf file when format is set
400 report_dashboard_failed
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
Activity
GET /v1/activity The caller's own recent activity (14 days)
200 events[]: id, action, resource_type, resource_id, actor_id, at, detail
GET /v1/notifications The caller's notifications
200 notifications[]: id, title, body, resource_type, resource_id, read, created_at
POST /v1/notifications Mark all of the caller's notifications read
200 { status: read }
Collaboration rooms
GET /v1/collaboration/rooms Collaboration rooms (optionally for one workspace)
workspace_id (query) string
200 rooms[]: room_id, workspace_id, title, status, max_participants, expires_at, last_activity_at, created_at
POST /v1/collaboration/rooms Open a room where outside guests co-edit files (plan feature; scope shares)
Content-Type: application/json
workspace_id* string (uuid)
title string
files* array of object
expires_in_days integer
201 room JSON + room_url, room_token, files[] (room_file_id, file_id, base_version_id)
400 files_required | invalid_id
404 file_not_found (not a version in this workspace, or another member's Desktop/Crypt)
GET /v1/collaboration/rooms/{roomId} Room detail with files and participants
roomId* (path) string
200 Room with files[] and participants[]
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
404 room_not_found
POST /v1/collaboration/rooms/{roomId}/participants Invite a guest (emailed)
roomId* (path) string
Content-Type: application/json
email* string
display_name string
can_view boolean
can_edit boolean
can_download boolean
403 external_share_disabled_org (organisation sharing switch off)
409 max_participants
PATCH /v1/collaboration/rooms/{roomId}/participants/{participantId} Change a guest's rights or revoke them
roomId* (path) string
participantId* (path) string
Content-Type: application/json
can_view boolean
can_edit boolean
can_download boolean
revoked boolean
200 Updated participant
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
404 room_not_found | not_found
POST /v1/collaboration/rooms/{roomId}/{roomFileId}/checkpoint Save the room draft of a file as a new version
roomId* (path) string
roomFileId* (path) string
409 no_draft
POST /v1/collaboration/rooms/{roomId}/close Close the room (ends guest access)
roomId* (path) string
200 Closed room
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
404 room_not_found
Calling context
GET /v1/partner/context What this application is and may call (hosts, scopes, plan features)
200 Context
401 missing_bearer | invalid_token | invalid_client | revoked_or_disabled
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
Security
POST /v1/secrets/reveal Reveal one stored secret (organisation scope). Every call is audited
Content-Type: application/json
scope* string
field* string
resource_key string
200 The secret value. Cache-Control no-store
400 secret_reveal_invalid | secret_reveal_unknown_scope
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
404 secret_not_configured
GET /v1/security/devices Machine devices of the organisation (organisation scope)
200 devices[] { device_id, status, subject_dn, enrolled_at }
POST /v1/security/devices/enrolments Issue a one-time device enrolment token
201 { enrolment_id, token, expires_at }
POST /v1/security/devices/revoke Revoke a machine device (organisation scope)
Content-Type: application/json
device_id* string (uuid)
200 Revoked
404 device_not_found
POST /v1/security/sessions/revoke End one member session
Content-Type: application/json
session_id* string
200 Revoked
POST /v1/security/users/disable Disable a member in this organisation
Content-Type: application/json
user_id* string (uuid)
200 Disabled
400 invalid_user_id
Calendar
GET /v1/calendar/events Dated items: share expiries, task due dates, reminders, notes (file read scope)
from (query) string
to (query) string
types (query) string
200 { from, to, types, events[] { id, source_type, resource_id, workspace_id, file_id, folder_id, title, at, status, file_name } }
GET /v1/calendar/notes The caller's note for one day (file read scope)
day (query) string
200 { day, body, updated_at }
PUT /v1/calendar/notes Save the caller's note for a day (file write scope)
Content-Type: application/json
day* string (date)
body string
200 Saved
400 invalid_day
POST /v1/calendar/reminders Schedule a reminder email (file write scope)
Content-Type: application/json
to_email string
remind_at* string (date-time)
title* string
201 Reminder scheduled
Profile
GET /v1/me/profile The caller's profile and what it may edit
200 identity_subject, preferred_username, given_name, family_name, email, display_name, theme_preference, default_workspace_id, has_avatar, can_edit_identity, can_edit_avatar, can_edit_theme, organisation_id, role, org_admin, membership_status, auth_methods, policy
PUT /v1/me/profile Update the caller's profile (file write scope)
Content-Type: application/json
given_name string
family_name string
email string
theme_preference string
default_workspace_id string (uuid)
avatar_base64 string
clear_avatar boolean
200 Updated profile
403 profile_edit_disabled | api_scope
Records and governance
GET /v1/features Which contract features are on for the caller's organisation
200 OK
GET /v1/organisations/contract-features Contract features on for the organisation, with their settings (organisation scope)
200 features[] { key, settings{} }, only the features that are on. Settings (boolean unless noted, default true): feature.deep_archive → retention_digest.enabled; feature.media_derivatives → media_previews.enabled; feature.sharing.approval → sharing.approval_required; feature.security_alerts → security_alerts.malware, security_alerts.capacity, security_alerts.capacity_percent (integer 50–95, default 80); feature.login_audit → login_audit.successes; feature.archive_transfer has no settings here (its rules live under /v1/organisations/archive-transfer).
403 Branch on `code`: `api_scope` (scope missing: see `required_scopes`), `entitlement_required` (plan feature missing: see `entitlement`), `partner_application_channel` (channel-owned application), `deny` (action not allowed on this resource), `api_ip_denied`, `partner_origin_not_allowed`, `api_ui_forbidden`, `platform_provisioner_required`.
PUT /v1/organisations/contract-features Change one setting of a contract feature (organisation scope)
Content-Type: application/json
setting* string
value*
200 features[] { key, settings{} }
400 unknown_setting | invalid_setting_value
403 entitlement_required (the setting's feature is off)
409 feature_settings_unavailable | feature_settings_write_failed
GET /v1/organisations/deep-archive Workspaces and their archive mode (contract feature deep_archive)
200 workspaces[] { workspace_id, display_name, security_mode, eligible (governed), archive_mode: NONE | DEEP_ARCHIVE, set_at?, hold? { reason, placed_at } (only while an area hold is active) }
403 entitlement_required | deny
POST /v1/organisations/deep-archive Place or release an area hold on a whole archive workspace (contract feature deep_archive)
Content-Type: application/json
workspace_id* string (uuid)
action* string: hold | release
reason string
200 { workspace_id, hold: released }
201 { workspace_id, hold: active }
400 invalid_request | invalid_reason
403 entitlement_required | deny
409 workspace_hold_unavailable | workspace_hold_requires_deep_archive | workspace_hold_exists | workspace_hold_not_active
PUT /v1/organisations/deep-archive Make a workspace an archive workspace, or turn an empty one back (contract feature deep_archive)
Content-Type: application/json
workspace_id* string (uuid)
archive_mode* string: NONE | DEEP_ARCHIVE
200 { workspace_id, archive_mode, set_at }
400 invalid_request
403 entitlement_required | deny
404 workspace_missing
409 deep_archive_requires_governed | deep_archive_not_empty | deep_archive_device_workspace
GET /v1/organisations/retention/classes Retention classes (contract feature deep_archive)
200 classes[] { class_id, code, display_name, period_months (null = keep indefinitely), trigger_kind: UPLOAD | EVENT, status: ACTIVE | RETIRED }
403 entitlement_required | deny
POST /v1/organisations/retention/classes Create a retention class (contract feature deep_archive)
Content-Type: application/json
code* string
display_name* string
period_months integer
trigger_kind string: UPLOAD | EVENT
201 The class { class_id, code, display_name, period_months, trigger_kind, status }
400 invalid_retention_code | invalid_retention_name | invalid_retention_period | invalid_retention_trigger
403 entitlement_required | deny
409 retention_code_taken
PUT /v1/organisations/retention/classes Retire a retention class (contract feature deep_archive)
Content-Type: application/json
class_id* string (uuid)
status* string: RETIRED
200 { status: retired }
400 invalid_request
404 retention_class_missing
GET /v1/organisations/retention/workspaces Retention rules per archive workspace (contract feature deep_archive)
200 workspaces[] { workspace_id, default_class_id?, category_field_key?, category_rules { choice_value: class_id } }
PUT /v1/organisations/retention/workspaces Set a workspace's default class and the record field that picks the class (contract feature deep_archive)
Content-Type: application/json
workspace_id* string (uuid)
class_id string
category_field_key string
200 { status: updated }
400 invalid_request
404 retention_class_missing
409 retention_not_archived | retention_failed
PUT /v1/organisations/retention/categories Map one value of the category field to a retention class (contract feature deep_archive)
Content-Type: application/json
workspace_id* string (uuid)
choice_value* string
class_id string
200 { status: updated }
400 invalid_request
404 retention_class_missing
409 retention_not_archived | retention_failed
GET /v1/organisations/retention/assignments Records with their class and due date (contract feature deep_archive)
due (query) boolean
200 { assignments[] { file_id, workspace_id, name, class_id, class, trigger_date, due_on, status: ACTIVE | DISPOSED, due, on_hold, disposed_at?, disposal_note?, content_sha256 }, due_count, newly_assigned, reclassified }
PUT /v1/organisations/retention/assignments Set a record's class or its event date (contract feature deep_archive)
Content-Type: application/json
file_id* string (uuid)
class_id string (uuid)
event_date string (date)
200 The assignment (same fields as in GET)
400 invalid_request | retention_event_date_not_allowed
404 retention_class_missing | retention_assignment_missing
POST /v1/organisations/retention/dispose Dispose of records whose retention has ended (contract feature deep_archive)
Content-Type: application/json
file_ids* array of string
note* string
200 { organisation_id, disposed_by, recorded_at, note, method: logical, method_detail, disposed, results[] { file_id, outcome: disposed, name, workspace_id, class, due_on, content_sha256, disposed_at } or { file_id, outcome: refused, code: retention_not_due | retention_not_archived | workspace_on_hold | file_on_hold | retention_dispose_failed } }
400 invalid_file_id | invalid_request
GET /v1/organisations/metadata-fields Record field definitions, retired ones included (contract feature metadata_schema)
200 fields[] { field_id, workspace_id (null = whole organisation), key, label, type, choices?, required, position, status: ACTIVE | RETIRED }
403 entitlement_required | deny
POST /v1/organisations/metadata-fields Define a record field for the organisation or one workspace (contract feature metadata_schema)
Content-Type: application/json
workspace_id string (uuid)
key* string
label* string
type* string: TEXT | NUMBER | DATE | BOOLEAN | CHOICE
choices array of string
required boolean
position integer
201 The field definition
400 invalid_metadata_key | invalid_metadata_type | invalid_metadata_label | invalid_metadata_choices | metadata_choices_only_for_choice
404 workspace_missing
409 metadata_field_limit | metadata_key_taken | metadata_field_create_failed
PUT /v1/organisations/metadata-fields Change or retire a record field; key and type never change (contract feature metadata_schema)
Content-Type: application/json
field_id* string (uuid)
label string
required boolean
position integer
choices array of string
retire boolean
200 The field definition
400 invalid_request
404 metadata_field_missing
409 metadata_field_update_failed
GET /v1/metadata/schema The record fields that apply in a workspace (contract feature metadata_schema; file read scope)
workspace_id* (query) string
200 fields[] { key, label, type, choices?, required }
400 workspace_id_required
403 entitlement_required | deny
GET /v1/metadata/files Files of a workspace with their record fields, filtered by value (contract feature metadata_schema; file read scope)
workspace_id* (query) string
after (query) string
limit (query) integer
f.{key} (query) string
200 { files[] { file_id, workspace_id, folder_id, path, name, content_sha256, size_bytes, current_version_id, current_version_state, version_number, created_at, metadata{} }, next_after? }
400 workspace_id_required | unknown_metadata_field | metadata_invalid_value
GET /v1/metadata/facets Value counts for CHOICE and BOOLEAN fields (contract feature metadata_schema; file read scope)
workspace_id* (query) string
200 facets[] { key, label, counts { value: count } }
GET /v1/metadata/incomplete Files that miss a required record field (contract feature metadata_schema; file read scope)
workspace_id* (query) string
after (query) string
limit (query) integer
200 { files[] { …file row, missing[] }, next_after? }
GET /v1/metadata/export Export a workspace's record fields as CSV or JSON (contract feature metadata_schema; file read scope)
workspace_id* (query) string
format (query) string
200 text/csv or application/json attachment (metadata-<workspace>.csv | .json)
GET /v1/workspaces/{workspaceId}/files/{fileId}/thumbnail Image preview of the current version (contract feature media_derivatives; file read scope)
workspaceId* (path) string
fileId* (path) string
size (query) integer
200 image/jpeg (Cache-Control: private, max-age=300)
404 derived_not_found (no preview made for the current version)
GET /v1/workspaces/{workspaceId}/files/{fileId}/exif Camera details of an image (contract feature media_derivatives; file read scope)
workspaceId* (path) string
fileId* (path) string
200 { make?, model?, orientation?, taken_at?, gps_lat?, gps_lon?, gps_visible }
404 derived_not_found
GET /v1/organisations/exit-exports Exit exports of the organisation, latest 20 (contract feature exit_export)
200 exports[] { id, status: REQUESTED | APPROVED | RUNNING | DONE | FAILED | CANCELLED, workspace_ids? (null = all), endpoint, region, bucket, prefix, bag, requested_by?, requested_at, approved_at?, started_at?, finished_at?, files_done, bytes_done, tagmanifest_sha256?, failure_code? }; credentials are never returned
403 entitlement_required | deny
POST /v1/organisations/exit-exports Ask for a full copy of the organisation's content to storage you own (contract feature exit_export)
Content-Type: application/json
endpoint* string
region string
bucket* string
prefix string
access_key_id* string
secret_access_key* string
workspace_ids array of string
201 The export (same fields as in GET)
400 exit_export_endpoint_https_required | exit_export_endpoint_denied | exit_export_target_invalid | exit_export_credentials_required | invalid_workspace_ids
403 entitlement_required | deny
409 exit_export_active | exit_export_seal_failed | exit_export_unavailable | exit_export_write_failed
POST /v1/organisations/exit-exports/{exportId}/cancel Cancel an exit export that has not finished (contract feature exit_export)
exportId* (path) string
200 The export
409 exit_export_not_active
GET /v1/organisations/archive-transfer Archive transfer rules and current counts (contract feature archive_transfer)
200 { rules[] { id, source_workspace_id, target_workspace_id, completion_field, completion_value, after_days, source_action: TRASH | KEEP, direct_approval_required, enabled, set_at }, counts { transferred_7d, failed_7d, blocked, awaiting_approval, waiting, queued } }
403 entitlement_required | deny
PUT /v1/organisations/archive-transfer Create or replace the archive transfer rule of a working workspace (contract feature archive_transfer)
Content-Type: application/json
source_workspace_id* string (uuid)
target_workspace_id* string (uuid)
completion_field* string
completion_value* string
after_days* integer
source_action* string: TRASH | KEEP
direct_approval_required boolean
enabled boolean
200 The rule
400 invalid_request | invalid_completion | invalid_completion_value | completion_field_type | completion_field_unknown
403 entitlement_required | deny
404 workspace_missing
409 source_not_governed | source_is_archive | target_not_archive
GET /v1/organisations/archive-transfer/items The archive transfer record, newest first (contract feature archive_transfer)
state (query) string
q (query) string
limit (query) integer
200 items[] { id, kind: SCHEDULED | DIRECT, state, file_name, source_workspace_id, source_file_id, source_version_id, target_workspace_id, target_file_id?, eligible_since, due_at, blocked_reason? (on_hold | locked), requested_by?, requested_at, approved_by?, approved_at?, attempts, content_sha256? (the digest the archive copy was matched to), size_bytes?, source_action_applied? (TRASHED | KEPT), failure_code?, finished_at? }. Failure codes: too_large, source_changed, no_longer_complete, source_digest_mismatch, source_digest_missing, archive_copy_mismatch, target_not_archive, copy_failed, verify_failed, commit_failed, too_many_attempts, on_hold, locked, rule_disabled, superseded_by_direct, cancelled.
400 invalid_state | invalid_query
403 entitlement_required | deny
POST /v1/organisations/archive-transfer/items Approve, cancel or retry archive transfer items (contract feature archive_transfer)
Content-Type: application/json
action* string: approve | cancel | retry
item_ids* array of string
200 { action, items[] (the ids that changed) }
400 invalid_request | invalid_action
403 entitlement_required | deny
409 nothing_to_approve
POST /v1/organisations/archive-transfer/requests Transfer files or a folder into the archive now (contract feature archive_transfer)
Content-Type: application/json
source_workspace_id* string (uuid)
file_ids array of string
folder_id string (uuid)
202 { queued[] (item ids), already_queued, not_eligible, state: AWAITING_APPROVAL | PENDING }
400 invalid_request | nothing_to_transfer
403 entitlement_required | deny
409 no_transfer_rule | rule_disabled
413 too_many_files (more than 500)
Build against it
Load the contract into your client and call a real tenant.
We set up an evaluation organisation with the features you plan to use.