Organisation routes need an administrator. A Partner application needs scope organisation. Record field reads, previews and camera details need a file read scope only.
Availability
These are contract features. Casewelt switches them on for your organisation by arrangement and your administrators manage them from there. Ask the API which ones are on before you call their routes.
GET /v1/features
Authorization: Bearer …
{
"deep_archive": true,
"metadata_schema": true,
"media_previews": false,
"sharing_approval": true
}
While a feature is off its routes answer 403 entitlement_required and existing routes keep their old answers. Administrators read and change the settings of the features that are on with /v1/organisations/contract-features.
Archive workspaces
| Path | What it is for |
| GET | /v1/organisations/deep-archive | Workspaces, whether they qualify, their archive mode and any area hold. |
| PUT | /v1/organisations/deep-archive | Make a governed workspace an archive, or turn an empty one back. |
| POST | /v1/organisations/deep-archive | Place or release an area hold on the whole workspace. |
PUT Make a workspace an archive
/v1/organisations/deep-archive
{
"workspace_id": "…",
"archive_mode": "DEEP_ARCHIVE"
}
From then on nobody renames, moves, deletes or replaces a file there. Every write answers 409 deep_archive_immutable, through the API, the portal, the editor and file requests alike. Workspaces that desktops or phones sync into cannot become archives.
Retention and disposal
| Path | What it is for |
| /v1/organisations/retention/classes | Retention classes: a period in months, counted from upload or from an event date, or kept indefinitely. |
| /v1/organisations/retention/workspaces | A default class per archive workspace, and the record field whose value picks the class. |
| PUT | /v1/organisations/retention/categories | Map one value of that field to a class. |
| /v1/organisations/retention/assignments | Every record with its class and due date. Set a class or an event date by hand. |
| POST | /v1/organisations/retention/dispose | Dispose of records whose retention has ended, with a note. |
POST Dispose of due records
/v1/organisations/retention/dispose
{
"file_ids": ["…", "…"],
"note": "Review 2026-Q4, approved by records officer"
}
{
"disposed": 1,
"method": "logical",
"results": [
{ "file_id": "…", "outcome": "disposed", "class": "contracts_7y", "due_on": "2026-10-31", "content_sha256": "…" },
{ "file_id": "…", "outcome": "refused", "code": "file_on_hold" }
]
}
Each file answers for itself. A hold always wins, a record that is not due is refused, and the digest of what was disposed stays in the record. Administrators receive a daily review digest of records coming due.
Archive transfer
Finished work moves from a working workspace into an archive workspace on a schedule. A rule names the record field and value that mark a file complete, the days to wait, and what happens to the working copy. Files that are not complete never move.
| Path | What it is for |
| PUT | /v1/organisations/archive-transfer | Set the rule of a working workspace. Read it back with its weekly counts. |
| /v1/organisations/archive-transfer/items | The transfer record. Approve, cancel or retry an item. |
| POST | /v1/organisations/archive-transfer/requests | Transfer files or a folder now. |
PUT Set a transfer rule
/v1/organisations/archive-transfer
{
"source_workspace_id": "…",
"target_workspace_id": "…",
"completion_field": "case_status",
"completion_value": "Closed",
"after_days": 30,
"source_action": "TRASH",
"direct_approval_required": true
}
{
"state": "TRANSFERRED",
"file_name": "Incident 114 report.pdf",
"content_sha256": "…",
"source_action_applied": "TRASHED",
"finished_at": "2026-12-03T02:10:44Z"
}
The archive copy is written, read back and matched to the recorded SHA-256 before the working copy is released. It keeps the folder path, record fields, tags and original creation time. Files under hold or locked wait. A direct transfer can require a second administrator, and nobody approves their own request.
Holds
| Path | What it is for |
| POST | /v1/organisations/holds | Hold one file, with a reason. Add a matter, an owner and a review date. |
| GET | /v1/organisations/holds | Active holds with their details. |
| PUT | /v1/organisations/holds | Change the details, or release the hold. |
| POST | /v1/organisations/deep-archive | Hold a whole archive workspace at once. |
POST /v1/organisations/holds
{
"file_id": "…",
"reason": "Litigation notice received",
"matter": "M-2026-118",
"owner_email": "legal@example.org",
"review_on": "2027-03-01"
}
On the review date the owner and the administrators receive one reminder. Release is its own recorded act.
Record fields
| Path | What it is for |
| /v1/organisations/metadata-fields | Define typed fields for the organisation or one workspace: text, number, date, yes or no, or a list of choices. |
| GET | /v1/metadata/schema | The fields that apply in a workspace. |
| GET | /v1/metadata/files | Files with their values, filtered by field and paged by cursor. |
| GET | /v1/metadata/facets | Counts per value for choice and yes or no fields. |
| GET | /v1/metadata/incomplete | Files that miss a required field. |
| GET | /v1/metadata/export | Every value of a workspace as CSV or JSON. |
GET /v1/metadata/files?workspace_id=…&f.record_type=contract&limit=200
Values are set with the existing file action metadata. A value of the wrong type answers 400 metadata_invalid_value, a missing required one 400 metadata_required, and the problem names the field.
Sharing controls
| Path | What it is for |
| GET | /v1/organisations/share-approvals | Outside shares by members that wait for an administrator. |
| POST | /v1/organisations/share-approvals | Approve or deny one, with a note. |
| PUT | /v1/organisations/share-policy | One switch for outside sharing across the organisation. |
POST /v1/shares → 201
{ "share_id": "…", "approval": "pending", … }
POST /v1/organisations/share-approvals
{ "share_id": "…", "decision": "approve", "note": "Client counsel, matter M-2026-118" }
With approval on, a member's share is created held and nothing is sent. Approval releases it at the time the member asked for. With the organisation switch off, every outside share and guest invitation answers 403 external_share_disabled_org, whatever a workspace allows.
Image previews
| Path | What it is for |
| GET | /v1/workspaces/{ws}/files/{id}/thumbnail | A JPEG preview of the current version, 256 or 1024 pixels. |
| GET | /v1/workspaces/{ws}/files/{id}/exif | Camera details. Location is shown to administrators only. |
Exit export
| Path | What it is for |
| POST | /v1/organisations/exit-exports | Ask for a full copy of your content in storage you own. |
| GET | /v1/organisations/exit-exports | Progress, file and byte counts, and the manifest digest. |
| POST | /v1/organisations/exit-exports/{id}/cancel | Stop an export that has not finished. |
{
"endpoint": "https://s3.example.org",
"region": "eu-west-2",
"bucket": "records-exit",
"prefix": "casewelt/",
"access_key_id": "…",
"secret_access_key": "…"
}
Casewelt writes a BagIt package to your bucket and records its manifest digest. Each request is approved by Casewelt before it runs, one export runs at a time, and your credentials are never returned.
Alerts and sign-ins
Security alerts e-mail your administrators when malware is blocked and when storage reaches a threshold you choose. Sign-ins and failed sign-ins of your members arrive in your own audit. Both are configured with PUT /v1/organisations/contract-features and read with GET /v1/audit/events.
PUT /v1/organisations/contract-features
{ "setting": "security_alerts.capacity_percent", "value": 85 }
GET /v1/audit/events?event_action=auth.login_failed&since=2026-11-01T00:00:00Z
Event names
| Area | Audit events |
| Archive and retention | workspace.archive_mode.set workspace.hold.place workspace.hold.release retention.class.created retention.class.applied retention.class.disposed retention.review.notified |
| Archive transfer | archive.transfer.rule.set archive.transfer.requested archive.transfer.approved archive.transfer.completed archive.transfer.failed archive.transfer.report.sent |
| Holds | file.hold.place file.hold.details file.hold.release file.hold.review_due |
| Record fields | metadata.field.created metadata.field.updated metadata.field.retired metadata.exported |
| Sharing | share.approval.requested share.approval.approved share.approval.denied org.share_policy.external_sharing |
| Exit export | org.exit_export.requested org.exit_export.cancelled exit_export.started exit_export.done exit_export.failed |
| Alerts and sign-ins | security.alert.malware security.alert.capacity auth.login auth.login_failed |
Every route, field and problem code is in the endpoint reference and in the OpenAPI file.
When you try it
- Make a test workspace an archive, then try to rename a file in it through the API. Read works. Change answers 409.
- Create a class, map a field value to it, and watch the due date appear on the record.
- Hold one record, dispose of two, and read the two outcomes.
- Find the hold, the disposal and the refusal as separate events in the audit.