Skip to content
Notice This app is in Beta Testing We are still testing Record Sender, so features may change.
Sign in

Files — API reference

The Files Hub: spaces and group folders, listing, uploads (simple and resumable), downloads, folders, move / copy, Trash, versions, shares, external links, comments, activity, search, the change feed and the Documents inbox. The person's levels (view < comment < edit < manage) decide what each call may do.

← All groups
GET /api/v1/files

List a folder

Scope: files:read · paginated · files.index

ParameterInTypeDescription
space_idquerystring (uuid)The space (default: My files)
parent_idquerystring (uuid)The folder (default: the space root)
sortquery"name" | "modified" | "size"Order (default name)
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

files * [FilesNode]
fields

FilesNode

classification string | null
created_at string (date-time)
created_by_id string | null
current_version_id string | null
description string | null
document_id string | null The stored document behind it, if any
extension string | null
id * string (uuid)
kind "file" | "folder"
level "view" | "comment" | "edit" | "manage" | nil The person's level on it
mime string | null
modseq string | null Change sequence (a string)
name string
owner_id string | null
parent_id string | null
preview object
fields
kind string | null
status string | null
record_version integer
sha256 string | null
size integer | null
space_id string (uuid)
tags [string]
trashed_at string | null
updated_at string (date-time)
updated_by_id string | null
version_count integer
folder FilesNode | null
fields

FilesNode

classification string | null
created_at string (date-time)
created_by_id string | null
current_version_id string | null
description string | null
document_id string | null The stored document behind it, if any
extension string | null
id * string (uuid)
kind "file" | "folder"
level "view" | "comment" | "edit" | "manage" | nil The person's level on it
mime string | null
modseq string | null Change sequence (a string)
name string
owner_id string | null
parent_id string | null
preview object
fields
kind string | null
status string | null
record_version integer
sha256 string | null
size integer | null
space_id string (uuid)
tags [string]
trashed_at string | null
updated_at string (date-time)
updated_by_id string | null
version_count integer
has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
path [object] Breadcrumb from the root to the folder
fields
id string (uuid)
name string
space_id string (uuid)

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/files

Upload a file (simple)

Multipart `file` (or JSON `filename` + `data_base64`). `file_id` uploads a new version of that file. With `conflict: skip` and the name taken the answer is `{skipped: true, file}` (200).

Scope: files:write · Idempotency-Key · files.create

Request body multipart/form-data
base_version_id string (uuid) Refuse with 409 when the file changed since this version
classification string
conflict "keep_both" | "replace" | "skip" | "fail" What to do when the name is taken (default keep_both for copies/moves, fail otherwise)
content_type string JSON uploads: the MIME type
data_base64 string JSON uploads: the content, base64
file string The file (multipart)
file_id string (uuid) Upload a new version of this file
filename string JSON uploads: the name
name string Name to store it under (default: the upload's filename)
parent_id string | null
space_id string (uuid) Default: My files
Responses 201 · 401 · 402 · 403 · 409 · 413 · 422 · 423 · 429 · 507

201 Success

file * FilesNode
fields

FilesNode

classification string | null
created_at string (date-time)
created_by_id string | null
current_version_id string | null
description string | null
document_id string | null The stored document behind it, if any
extension string | null
id * string (uuid)
kind "file" | "folder"
level "view" | "comment" | "edit" | "manage" | nil The person's level on it
mime string | null
modseq string | null Change sequence (a string)
name string
owner_id string | null
parent_id string | null
preview object
fields
kind string | null
status string | null
record_version integer
sha256 string | null
size integer | null
space_id string (uuid)
tags [string]
trashed_at string | null
updated_at string (date-time)
updated_by_id string | null
version_count integer
skipped boolean

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Name or version conflict, or the item is in the wrong state

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

413 Too large

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

423 Under a legal hold

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

507 Space or storage full

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)
POST /api/v1/files/bulk

Act on up to 500 items at once

`delete` deletes items already in the Trash for good; `move` / `copy` / `restore` use the destination fields.

Scope: files:write · Idempotency-Key · files.bulk

Request body application/json
conflict "keep_both" | "replace" | "skip" | "fail" What to do when the name is taken (default keep_both for copies/moves, fail otherwise)
ids * [string (uuid)] At most 500
op * "trash" | "move" | "copy" | "restore" | "delete"
parent_id string | null Destination folder; empty for the space root
space_id string (uuid) Destination space (default: the item's space / My files)
Responses 200 · 401 · 402 · 403 · 409 · 422 · 429

200 Success

done * [string (uuid)]
failed * [object]
fields
code string
id string (uuid)
message string

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/files/changes

The change feed of a space since a cursor

For sync clients: nodes created or changed and items removed since `cursor` (a modseq, `0` for everything), oldest first. Call again with the answer's `cursor` while `has_more`.

Scope: files:read · paginated · files.changes

ParameterInTypeDescription
space_id *querystring (uuid)
cursorquerystringThe previous answer's `cursor` (default 0)
rootquerystring (uuid)Only changes under this folder
limitqueryintegerMax changes (default 500, at most 1000)
Responses 200 · 401 · 403 · 429

200 Success

changes * [object]
fields
file FilesNode
fields

FilesNode

classification string | null
created_at string (date-time)
created_by_id string | null
current_version_id string | null
description string | null
document_id string | null The stored document behind it, if any
extension string | null
id * string (uuid)
kind "file" | "folder"
level "view" | "comment" | "edit" | "manage" | nil The person's level on it
mime string | null
modseq string | null Change sequence (a string)
name string
owner_id string | null
parent_id string | null
preview object
fields
kind string | null
status string | null
record_version integer
sha256 string | null
size integer | null
space_id string (uuid)
tags [string]
trashed_at string | null
updated_at string (date-time)
updated_by_id string | null
version_count integer
id string (uuid) Removed item's id
kind string
modseq string
reason string Why it left the feed (trashed, deleted, moved out …)
type "node" | "removed"
cursor * string The cursor for the next call
has_more * boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
root string | null
space_id string (uuid)

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/files/documents

The Documents inbox (stored documents not yet in Files)

Scope: files:read · paginated · files.documents

ParameterInTypeDescription
qquerystringSearch title or filename
sourcequerystringFilter by source
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

documents * [object]
fields
classification string | null
content_type string
filename string
id string (uuid)
in_files [string (uuid)] Files nodes already holding this document
inserted_at string (date-time)
sha256 string
size integer
source string
title string | null
has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/files/documents/{document_id}/add

Add a stored document to Files

Scope: files:write · Idempotency-Key · files.add_document

ParameterInTypeDescription
document_id *pathstring (uuid)
Request body application/json
conflict "keep_both" | "replace" | "skip" | "fail" What to do when the name is taken (default keep_both for copies/moves, fail otherwise)
parent_id string | null Destination folder; empty for the space root
space_id string (uuid) Destination space (default: the item's space / My files)
Responses 201 · 401 · 402 · 403 · 404 · 409 · 422 · 423 · 429 · 507

201 Success

file * FilesNode
fields

FilesNode

classification string | null
created_at string (date-time)
created_by_id string | null
current_version_id string | null
description string | null
document_id string | null The stored document behind it, if any
extension string | null
id * string (uuid)
kind "file" | "folder"
level "view" | "comment" | "edit" | "manage" | nil The person's level on it
mime string | null
modseq string | null Change sequence (a string)
name string
owner_id string | null
parent_id string | null
preview object
fields
kind string | null
status string | null
record_version integer
sha256 string | null
size integer | null
space_id string (uuid)
tags [string]
trashed_at string | null
updated_at string (date-time)
updated_by_id string | null
version_count integer
skipped boolean Name taken with conflict=skip: the existing file

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Name or version conflict, or the item is in the wrong state

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

423 Under a legal hold

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

507 Space or storage full

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)
POST /api/v1/files/folders

Create a folder

Scope: files:write · Idempotency-Key · files.create_folder

Request body application/json
conflict "keep_both" | "replace" | "skip" | "fail" What to do when the name is taken (default keep_both for copies/moves, fail otherwise)
name * string
parent_id string | null
space_id * string (uuid)
Responses 201 · 401 · 402 · 403 · 409 · 422 · 423 · 429 · 507

201 Success

folder * FilesNode
fields

FilesNode

classification string | null
created_at string (date-time)
created_by_id string | null
current_version_id string | null
description string | null
document_id string | null The stored document behind it, if any
extension string | null
id * string (uuid)
kind "file" | "folder"
level "view" | "comment" | "edit" | "manage" | nil The person's level on it
mime string | null
modseq string | null Change sequence (a string)
name string
owner_id string | null
parent_id string | null
preview object
fields
kind string | null
status string | null
record_version integer
sha256 string | null
size integer | null
space_id string (uuid)
tags [string]
trashed_at string | null
updated_at string (date-time)
updated_by_id string | null
version_count integer

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Name or version conflict, or the item is in the wrong state

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

423 Under a legal hold

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

507 Space or storage full

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)
GET /api/v1/files/policy

The account's file policy

Scope: files:read · files.policy

Responses 200 · 401 · 403 · 429

200 Success

can_manage boolean The person may change it
policy * FilesPolicy
fields

FilesPolicy

external_sharing boolean External links may be made at all (default true)
link_max_days integer | null Longest an external link may stay valid
personal_quota_bytes integer | null Limit for each person's My files
trash_days integer Default 30
version_days integer | null
version_keep integer Older versions kept (default 50)

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

PUT /api/v1/files/policy

Change the account's file policy

Needs `files:manage` (in an individual account: its owner). Only the keys given change.

Scope: files:write · files.update_policy

Request body application/json

FilesPolicy

external_sharing boolean External links may be made at all (default true)
link_max_days integer | null Longest an external link may stay valid
personal_quota_bytes integer | null Limit for each person's My files
trash_days integer Default 30
version_days integer | null
version_keep integer Older versions kept (default 50)
Responses 200 · 401 · 402 · 403 · 422 · 429

200 Success

policy * FilesPolicy
fields

FilesPolicy

external_sharing boolean External links may be made at all (default true)
link_max_days integer | null Longest an external link may stay valid
personal_quota_bytes integer | null Limit for each person's My files
trash_days integer Default 30
version_days integer | null
version_keep integer Older versions kept (default 50)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/files/principals

Who can be picked in the share dialog

The account's active members (no AI agents; `label` is "Name (email)", or the email alone), a business account's teams (`[]` in a personal account) and its team, project and general workspaces (not archived) — the share dialog's choices, by name.

Scope: files:read · files.principals

Responses 200 · 401 · 403 · 429

200 Success

people * [object]
fields
email string (email)
id * string (uuid)
label string
teams * [object]
fields
id * string (uuid)
label string
workspaces * [object]
fields
id * string (uuid)
label string

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/files/shared

Files shared with the person

Scope: files:read · paginated · files.shared

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

files * [FilesNode]
fields

FilesNode

classification string | null
created_at string (date-time)
created_by_id string | null
current_version_id string | null
description string | null
document_id string | null The stored document behind it, if any
extension string | null
id * string (uuid)
kind "file" | "folder"
level "view" | "comment" | "edit" | "manage" | nil The person's level on it
mime string | null
modseq string | null Change sequence (a string)
name string
owner_id string | null
parent_id string | null
preview object
fields
kind string | null
status string | null
record_version integer
sha256 string | null
size integer | null
space_id string (uuid)
tags [string]
trashed_at string | null
updated_at string (date-time)
updated_by_id string | null
version_count integer
has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/files/spaces

The spaces the person can open

Scope: files:read · paginated · files.spaces

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

can_manage_groups boolean The person may create and manage group folders
has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
spaces * [FilesSpace]
fields

FilesSpace

description string | null
external_sharing boolean
id * string (uuid)
kind "personal" | "workspace" | "group"
level "view" | "comment" | "edit" | "manage" | nil
name string
quota_bytes integer | null
trash_days integer | null
used_bytes integer
version_days integer | null
version_keep integer | null
workspace_id string | null

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/files/spaces

Create a group folder

Business accounts; needs `files:manage`. `members` are given their levels at once.

Scope: files:write · Idempotency-Key · files.create_space

Request body application/json
description string
external_sharing boolean External links may be made in this space
members [FilesPrincipalInput]
fields

FilesPrincipalInput

id string (uuid) The principal's id (not for account)
level * "view" | "comment" | "edit" | "manage"
type * "user" | "team" | "workspace" | "account"
name * string
quota_bytes integer | null
trash_days integer | null
version_days integer | null
version_keep integer | null
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

space * FilesSpace
fields

FilesSpace

description string | null
external_sharing boolean
id * string (uuid)
kind "personal" | "workspace" | "group"
level "view" | "comment" | "edit" | "manage" | nil
name string
quota_bytes integer | null
trash_days integer | null
used_bytes integer
version_days integer | null
version_keep integer | null
workspace_id string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

PATCH /api/v1/files/spaces/{id}

Change a space's settings

Scope: files:write · files.update_space

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
description string
external_sharing boolean External links may be made in this space
name string
quota_bytes integer | null
trash_days integer | null
version_days integer | null
version_keep integer | null
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429

200 Success

space * FilesSpace
fields

FilesSpace

description string | null
external_sharing boolean
id * string (uuid)
kind "personal" | "workspace" | "group"
level "view" | "comment" | "edit" | "manage" | nil
name string
quota_bytes integer | null
trash_days integer | null
used_bytes integer
version_days integer | null
version_keep integer | null
workspace_id string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/files/spaces/{id}/members

A group folder's members

Scope: files:read · paginated · files.members

ParameterInTypeDescription
id *pathstring (uuid)
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 404 · 429

200 Success

has_more boolean
members * [FilesPermission]
fields

FilesPermission

expires_at string | null
file_id string | null
from any | null
id * string (uuid)
inherited boolean Comes from a parent folder
level "view" | "comment" | "edit" | "manage"
name string | null
principal_id string | null
space_wide boolean A space membership rather than a share
type "user" | "team" | "workspace" | "account"
next_cursor string | null Pass as `cursor` for the next page; null on the last

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

POST /api/v1/files/spaces/{id}/members

Add a member to a group folder, or change their level

Scope: files:write · Idempotency-Key · files.put_member

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json

FilesPrincipalInput

id string (uuid) The principal's id (not for account)
level * "view" | "comment" | "edit" | "manage"
type * "user" | "team" | "workspace" | "account"
Responses 201 · 401 · 402 · 403 · 404 · 409 · 422 · 429

201 Success

member * FilesPermission
fields

FilesPermission

expires_at string | null
file_id string | null
from any | null
id * string (uuid)
inherited boolean Comes from a parent folder
level "view" | "comment" | "edit" | "manage"
name string | null
principal_id string | null
space_wide boolean A space membership rather than a share
type "user" | "team" | "workspace" | "account"

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

DELETE /api/v1/files/spaces/{id}/members/{member_id}

Remove a group folder member

Scope: files:write · files.delete_member

ParameterInTypeDescription
id *pathstring (uuid)
member_id *pathstring (uuid)The membership's id
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/files/trash

Items in a space's Trash

Scope: files:read · paginated · files.trash

ParameterInTypeDescription
space_id *querystring (uuid)
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

files * [object]
fields
classification string | null
created_at string (date-time)
created_by_id string | null
current_version_id string | null
description string | null
document_id string | null The stored document behind it, if any
expires_at string | null When the Trash empties it
extension string | null
id * string (uuid)
kind "file" | "folder"
level "view" | "comment" | "edit" | "manage" | nil The person's level on it
mime string | null
modseq string | null Change sequence (a string)
name string
original_path string
owner_id string | null
parent_id string | null
preview object
fields
kind string | null
status string | null
record_version integer
sha256 string | null
size integer | null
space_id string (uuid)
tags [string]
trashed_at string | null
updated_at string (date-time)
updated_by_id string | null
version_count integer
has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/files/trash/empty

Empty a space's Trash

Scope: files:write · Idempotency-Key · files.empty_trash

Request body application/json
space_id * string (uuid)
Responses 200 · 401 · 402 · 403 · 409 · 422 · 423 · 429

200 Success

FilesPurgeResult

deleted * integer Items deleted
held * integer Items kept under a legal hold

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

423 Some items are under a legal hold

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

POST /api/v1/files/upload-sessions

Start a resumable upload session

Send the parts with `PUT …/parts/{n}` (or to the session's `tus` endpoint when the files gateway is on), then complete. `file_id` uploads a new version of that file. With `conflict: skip` and the name taken the answer is `{skipped: true, file}` (200).

Scope: files:write · Idempotency-Key · files.create_session

Request body application/json
base_version_id string (uuid) Refuse with 409 when the file changed since this version
conflict "keep_both" | "replace" | "skip" | "fail" What to do when the name is taken (default keep_both for copies/moves, fail otherwise)
content_type string
file_id string (uuid) Upload a new version of this file
name * string
parent_id string | null
sha256 string Hex digest of the whole file, checked on completion
size * integer Total bytes
space_id string (uuid)
Responses 201 · 401 · 402 · 403 · 409 · 413 · 422 · 423 · 429 · 507

201 Success

file FilesNode
fields

FilesNode

classification string | null
created_at string (date-time)
created_by_id string | null
current_version_id string | null
description string | null
document_id string | null The stored document behind it, if any
extension string | null
id * string (uuid)
kind "file" | "folder"
level "view" | "comment" | "edit" | "manage" | nil The person's level on it
mime string | null
modseq string | null Change sequence (a string)
name string
owner_id string | null
parent_id string | null
preview object
fields
kind string | null
status string | null
record_version integer
sha256 string | null
size integer | null
space_id string (uuid)
tags [string]
trashed_at string | null
updated_at string (date-time)
updated_by_id string | null
version_count integer
session FilesUploadSession
fields

FilesUploadSession

expires_at string (date-time)
file_id string | null
id * string (uuid)
missing [integer] Parts still to send
name string
part_size integer Bytes per part (the last may be shorter)
part_url string Only on creation: template for part uploads (`{n}`)
parts_received [integer]
parts_total integer
received integer Bytes received
size integer
status string open, complete, aborted, expired
token string Only on creation
tus object With the files gateway: the tus endpoint for faster uploads
fields
checksum string
endpoint string (uri)
token string
upload_url string (uri)
skipped boolean

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Name or version conflict, or the item is in the wrong state

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

413 Too large

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

423 Under a legal hold

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

507 Space or storage full

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)
DELETE /api/v1/files/upload-sessions/{id}

Abort an upload session

Scope: files:write · files.abort_session

ParameterInTypeDescription
id *pathstring (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/files/upload-sessions/{id}

An upload session's state

Scope: files:read · files.session

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 403 · 404 · 429

200 Success

session * FilesUploadSession
fields

FilesUploadSession

expires_at string (date-time)
file_id string | null
id * string (uuid)
missing [integer] Parts still to send
name string
part_size integer Bytes per part (the last may be shorter)
part_url string Only on creation: template for part uploads (`{n}`)
parts_received [integer]
parts_total integer
received integer Bytes received
size integer
status string open, complete, aborted, expired
token string Only on creation
tus object With the files gateway: the tus endpoint for faster uploads
fields
checksum string
endpoint string (uri)
token string
upload_url string (uri)

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

POST /api/v1/files/upload-sessions/{id}/complete

Complete an upload session

Scope: files:write · Idempotency-Key · files.complete_session

ParameterInTypeDescription
id *pathstring (uuid)
Responses 201 · 401 · 402 · 403 · 404 · 409 · 410 · 422 · 423 · 429 · 507

201 Success

file * FilesNode
fields

FilesNode

classification string | null
created_at string (date-time)
created_by_id string | null
current_version_id string | null
description string | null
document_id string | null The stored document behind it, if any
extension string | null
id * string (uuid)
kind "file" | "folder"
level "view" | "comment" | "edit" | "manage" | nil The person's level on it
mime string | null
modseq string | null Change sequence (a string)
name string
owner_id string | null
parent_id string | null
preview object
fields
kind string | null
status string | null
record_version integer
sha256 string | null
size integer | null
space_id string (uuid)
tags [string]
trashed_at string | null
updated_at string (date-time)
updated_by_id string | null
version_count integer
skipped boolean

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Name or version conflict, or the item is in the wrong state

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

410 Session expired

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

423 Under a legal hold

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

507 Space or storage full

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)
PUT /api/v1/files/upload-sessions/{id}/parts/{n}

Upload one part of a session

Scope: files:write · files.put_part

ParameterInTypeDescription
id *pathstring (uuid)
n *pathintegerPart number, from 1
Request body application/octet-stream

string

Responses 200 · 401 · 402 · 403 · 404 · 410 · 422 · 429

200 Success

session * FilesUploadSession
fields

FilesUploadSession

expires_at string (date-time)
file_id string | null
id * string (uuid)
missing [integer] Parts still to send
name string
part_size integer Bytes per part (the last may be shorter)
part_url string Only on creation: template for part uploads (`{n}`)
parts_received [integer]
parts_total integer
received integer Bytes received
size integer
status string open, complete, aborted, expired
token string Only on creation
tus object With the files gateway: the tus endpoint for faster uploads
fields
checksum string
endpoint string (uri)
token string
upload_url string (uri)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

410 Session expired

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

429 Problem details (429)

DELETE /api/v1/files/{id}

Move an item to the Trash (or delete it for good)

Moves the item to the Trash and answers `{file}`; with `permanent=true` deletes an item already in the Trash and answers `{deleted, held}`.

Scope: files:write · files.delete

ParameterInTypeDescription
id *pathstring (uuid)
permanentquerybooleanDelete an item already in the Trash
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 423 · 429

200 Success

object | FilesPurgeResult

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Not in the Trash (permanent)

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

423 Under a legal hold

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

GET /api/v1/files/{id}

One file or folder (also from the Trash)

Scope: files:read · files.show

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 403 · 404 · 429

200 Success

file * object
fields
classification string | null
comments integer Comment count
created_at string (date-time)
created_by_id string | null
current_version_id string | null
description string | null
document_id string | null The stored document behind it, if any
extension string | null
id * string (uuid)
kind "file" | "folder"
level "view" | "comment" | "edit" | "manage" | nil The person's level on it
links integer External link count
mime string | null
modseq string | null Change sequence (a string)
name string
owner_id string | null
parent_id string | null
path [object] Ancestors from the root
fields
id string (uuid)
name string
preview object
fields
kind string | null
status string | null
record_version integer
sha256 string | null
size integer | null
space_id string (uuid)
tags [string]
trashed_at string | null
updated_at string (date-time)
updated_by_id string | null
version_count integer

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

PATCH /api/v1/files/{id}

Rename a file or change its metadata

Scope: files:write · files.update

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
classification string | null
conflict "keep_both" | "replace" | "skip" | "fail" What to do when the name is taken (default keep_both for copies/moves, fail otherwise)
description string | null
name string
tags [string]
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 423 · 429 · 507

200 Success

file * FilesNode
fields

FilesNode

classification string | null
created_at string (date-time)
created_by_id string | null
current_version_id string | null
description string | null
document_id string | null The stored document behind it, if any
extension string | null
id * string (uuid)
kind "file" | "folder"
level "view" | "comment" | "edit" | "manage" | nil The person's level on it
mime string | null
modseq string | null Change sequence (a string)
name string
owner_id string | null
parent_id string | null
preview object
fields
kind string | null
status string | null
record_version integer
sha256 string | null
size integer | null
space_id string (uuid)
tags [string]
trashed_at string | null
updated_at string (date-time)
updated_by_id string | null
version_count integer

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Name or version conflict, or the item is in the wrong state

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

423 Under a legal hold

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

507 Space or storage full

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)
GET /api/v1/files/{id}/activity

An item's activity

Scope: files:read · paginated · files.activity

ParameterInTypeDescription
id *pathstring (uuid)
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 404 · 429

200 Success

activity * [object]
fields
action string uploaded, renamed, moved, shared, downloaded …
actor object
fields
id string | null
name string | null
type string
at string (date-time)
data object
file_id string (uuid)
id string (uuid)
text string A readable sentence
has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

GET /api/v1/files/{id}/comments

An item's comments (threaded)

Scope: files:read · paginated · files.comments

ParameterInTypeDescription
id *pathstring (uuid)
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 404 · 429

200 Success

comments * [FilesComment]
fields

FilesComment

author string | null
author_id string | null
body string
created_at string (date-time)
id * string (uuid)
mentions [any]
parent_id string | null
replies [FilesComment]
fields

FilesComment

author string | null
author_id string | null
body string
created_at string (date-time)
id * string (uuid)
mentions [any]
parent_id string | null
replies [FilesComment]
fields

FilesComment

author string | null
author_id string | null
body string
created_at string (date-time)
id * string (uuid)
mentions [any]
parent_id string | null
replies [FilesComment]
fields

FilesComment

…

has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

POST /api/v1/files/{id}/comments

Comment on an item

Needs the `comment` level. `@mentions` in the body notify the people named.

Scope: files:write · Idempotency-Key · files.comment

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
body * string
parent_id string (uuid) Reply to this comment
Responses 201 · 401 · 402 · 403 · 404 · 409 · 422 · 429

201 Success

comment * FilesComment
fields

FilesComment

author string | null
author_id string | null
body string
created_at string (date-time)
id * string (uuid)
mentions [any]
parent_id string | null
replies [FilesComment]
fields

FilesComment

author string | null
author_id string | null
body string
created_at string (date-time)
id * string (uuid)
mentions [any]
parent_id string | null
replies [FilesComment]
fields

FilesComment

author string | null
author_id string | null
body string
created_at string (date-time)
id * string (uuid)
mentions [any]
parent_id string | null
replies [FilesComment]
fields

FilesComment

…

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

DELETE /api/v1/files/{id}/comments/{comment_id}

Delete a comment

Scope: files:write · files.delete_comment

ParameterInTypeDescription
id *pathstring (uuid)
comment_id *pathstring (uuid)The comment's id
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/files/{id}/content

Download a file's content

Streamed, with `Range` support (206 for a range). Records a download in the file's activity.

Scope: files:read · files.content

ParameterInTypeDescription
id *pathstring (uuid)
version_idquerystring (uuid)A version (default: the current one)
Responses 200 · 401 · 403 · 404 · 409 · 429 · 502

200 Success

string

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

409 Still being scanned for malware

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

502 Storage unavailable

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)
POST /api/v1/files/{id}/copy

Copy an item

Scope: files:write · Idempotency-Key · files.copy

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
conflict "keep_both" | "replace" | "skip" | "fail" What to do when the name is taken (default keep_both for copies/moves, fail otherwise)
parent_id string | null Destination folder; empty for the space root
space_id string (uuid) Destination space (default: the item's space / My files)
Responses 201 · 401 · 402 · 403 · 404 · 409 · 422 · 423 · 429 · 507

201 Success

file * FilesNode
fields

FilesNode

classification string | null
created_at string (date-time)
created_by_id string | null
current_version_id string | null
description string | null
document_id string | null The stored document behind it, if any
extension string | null
id * string (uuid)
kind "file" | "folder"
level "view" | "comment" | "edit" | "manage" | nil The person's level on it
mime string | null
modseq string | null Change sequence (a string)
name string
owner_id string | null
parent_id string | null
preview object
fields
kind string | null
status string | null
record_version integer
sha256 string | null
size integer | null
space_id string (uuid)
tags [string]
trashed_at string | null
updated_at string (date-time)
updated_by_id string | null
version_count integer

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Name or version conflict, or the item is in the wrong state

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

423 Under a legal hold

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

507 Space or storage full

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)
GET /api/v1/files/{id}/download_url

A 5-minute download URL

A files-gateway URL (ranges, resumable) when the gateway is on, otherwise a presigned storage URL. Records a download in the file's activity.

Scope: files:read · files.download_url

ParameterInTypeDescription
id *pathstring (uuid)
version_idquerystring (uuid)A version (default: the current one)
Responses 200 · 401 · 403 · 404 · 409 · 429

200 Success

expires_in integer Seconds (300)
sha256 string
size integer
url * string (uri)
version_id string (uuid)

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

409 Still being scanned for malware

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

POST /api/v1/files/{id}/move

Move an item

Scope: files:write · Idempotency-Key · files.move

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
conflict "keep_both" | "replace" | "skip" | "fail" What to do when the name is taken (default keep_both for copies/moves, fail otherwise)
parent_id string | null Destination folder; empty for the space root
space_id string (uuid) Destination space (default: the item's space / My files)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 423 · 429 · 507

200 Success

file FilesNode
fields

FilesNode

classification string | null
created_at string (date-time)
created_by_id string | null
current_version_id string | null
description string | null
document_id string | null The stored document behind it, if any
extension string | null
id * string (uuid)
kind "file" | "folder"
level "view" | "comment" | "edit" | "manage" | nil The person's level on it
mime string | null
modseq string | null Change sequence (a string)
name string
owner_id string | null
parent_id string | null
preview object
fields
kind string | null
status string | null
record_version integer
sha256 string | null
size integer | null
space_id string (uuid)
tags [string]
trashed_at string | null
updated_at string (date-time)
updated_by_id string | null
version_count integer
skipped boolean Name taken with conflict=skip: nothing moved

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Name or version conflict, or the item is in the wrong state

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

423 Under a legal hold

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

507 Space or storage full

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)
POST /api/v1/files/{id}/restore

Restore an item from the Trash

Back to where it was, or to `parent_id` / `space_id` when given.

Scope: files:write · Idempotency-Key · files.restore

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
parent_id string | null
space_id string (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 423 · 429 · 507

200 Success

file * FilesNode
fields

FilesNode

classification string | null
created_at string (date-time)
created_by_id string | null
current_version_id string | null
description string | null
document_id string | null The stored document behind it, if any
extension string | null
id * string (uuid)
kind "file" | "folder"
level "view" | "comment" | "edit" | "manage" | nil The person's level on it
mime string | null
modseq string | null Change sequence (a string)
name string
owner_id string | null
parent_id string | null
preview object
fields
kind string | null
status string | null
record_version integer
sha256 string | null
size integer | null
space_id string (uuid)
tags [string]
trashed_at string | null
updated_at string (date-time)
updated_by_id string | null
version_count integer

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Name or version conflict, or the item is in the wrong state

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

423 Under a legal hold

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

507 Space or storage full

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)
GET /api/v1/files/{id}/shares

Who an item is shared with (direct and inherited)

Scope: files:read · paginated · files.shares

ParameterInTypeDescription
id *pathstring (uuid)
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 404 · 429

200 Success

has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
shares * [FilesPermission]
fields

FilesPermission

expires_at string | null
file_id string | null
from any | null
id * string (uuid)
inherited boolean Comes from a parent folder
level "view" | "comment" | "edit" | "manage"
name string | null
principal_id string | null
space_wide boolean A space membership rather than a share
type "user" | "team" | "workspace" | "account"

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

POST /api/v1/files/{id}/shares

Share an item with a person, team, workspace or the account

Name the person, team or workspace with `principal_id` (or `id`); a person can instead be named by `email` — an active member of the account, else the share is refused (422).

Scope: files:write · Idempotency-Key · files.share

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
email string (email) A person (type user): an active member's address
expires_at string | null
id string (uuid) The same as principal_id
level * "view" | "comment" | "edit" | "manage"
principal_id string (uuid) The principal's id (not for account)
type * "user" | "team" | "workspace" | "account"
Responses 201 · 401 · 402 · 403 · 404 · 409 · 422 · 429

201 Success

share * FilesPermission
fields

FilesPermission

expires_at string | null
file_id string | null
from any | null
id * string (uuid)
inherited boolean Comes from a parent folder
level "view" | "comment" | "edit" | "manage"
name string | null
principal_id string | null
space_wide boolean A space membership rather than a share
type "user" | "team" | "workspace" | "account"

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

DELETE /api/v1/files/{id}/shares/{share_id}

Remove a share

Scope: files:write · files.unshare

ParameterInTypeDescription
id *pathstring (uuid)
share_id *pathstring (uuid)The share's id
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/files/{id}/versions

A file's versions

Scope: files:read · paginated · files.versions

ParameterInTypeDescription
id *pathstring (uuid)
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 404 · 429

200 Success

has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
versions * [FilesVersion]
fields

FilesVersion

author string | null
comment string | null
created_at string (date-time)
created_by_id string | null
current boolean
id * string (uuid)
mime string | null
number integer
sha256 string
size integer
source string | null

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

POST /api/v1/files/{id}/versions/{version_id}/restore

Make an older version current

Scope: files:write · Idempotency-Key · files.restore_version

ParameterInTypeDescription
id *pathstring (uuid)
version_id *pathstring (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

file * FilesNode
fields

FilesNode

classification string | null
created_at string (date-time)
created_by_id string | null
current_version_id string | null
description string | null
document_id string | null The stored document behind it, if any
extension string | null
id * string (uuid)
kind "file" | "folder"
level "view" | "comment" | "edit" | "manage" | nil The person's level on it
mime string | null
modseq string | null Change sequence (a string)
name string
owner_id string | null
parent_id string | null
preview object
fields
kind string | null
status string | null
record_version integer
sha256 string | null
size integer | null
space_id string (uuid)
tags [string]
trashed_at string | null
updated_at string (date-time)
updated_by_id string | null
version_count integer

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Already the current version

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

429 Problem details (429)