Needs `legal_hold:manage` (the superadmin and security administrators by default).
Scope: account · paginated · retention.holds
Parameter
In
Type
Description
cursor
query
string
The `next_cursor` of the previous page
limit
query
integer
Page size
Responses 200 · 401 · 403 · 429
200 Success
has_more
boolean
holds *
[LegalHold]
fields
LegalHold
covers
object
fields
personal
integer
In personal mailboxes
total
integer
from_date
string | null
id *
string (uuid)
inserted_at
string (date-time)
mailbox_ids
[string (uuid)]
matter
string | null
name
string
query
string | null
released_at
string | null
status
"active" | "released"
to_date
string | null
user_ids
[string (uuid)]
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/legal-holds
Place a legal hold
Needs `legal_hold:manage` (the superadmin and security administrators by default). Held mail is kept from deletion by people, retention and emptying Trash.
Needs `legal_hold:manage` (the superadmin and security administrators by default).
Scope: account · retention.hold
Parameter
In
Type
Description
id *
path
string (uuid)
Responses 200 · 401 · 403 · 404 · 429
200 Success
exports
[LegalHoldExport]
fields
LegalHoldExport
bytes
integer | null
error
string | null
finished_at
string | null
format
"mbox" | "eml_zip"
hold_id
string (uuid)
id *
string (uuid)
inserted_at
string (date-time)
messages
integer | null
personal_preserved
integer | null
Personal-mailbox messages preserved but not exported
status
"running" | "done" | "failed"
hold *
LegalHold
fields
LegalHold
covers
object
fields
personal
integer
In personal mailboxes
total
integer
from_date
string | null
id *
string (uuid)
inserted_at
string (date-time)
mailbox_ids
[string (uuid)]
matter
string | null
name
string
query
string | null
released_at
string | null
status
"active" | "released"
to_date
string | null
user_ids
[string (uuid)]
401 Problem details (401)
403 Problem details (403)
404 Problem details (404)
429 Problem details (429)
PATCH/api/v1/legal-holds/{id}
Change a legal hold
Needs `legal_hold:manage` (the superadmin and security administrators by default).
Scope: account · retention.update_hold
Parameter
In
Type
Description
id *
path
string (uuid)
Request body application/json
file_space_ids
[string (uuid)]
from_date
string | null
mailbox_ids
[string (uuid)]
matter
string | null
The case or matter
name
string
query
string | null
Search query narrowing the hold
to_date
string | null
user_ids
[string (uuid)]
People whose mail is held
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429
200 Success
hold *
LegalHold
fields
LegalHold
covers
object
fields
personal
integer
In personal mailboxes
total
integer
from_date
string | null
id *
string (uuid)
inserted_at
string (date-time)
mailbox_ids
[string (uuid)]
matter
string | null
name
string
query
string | null
released_at
string | null
status
"active" | "released"
to_date
string | null
user_ids
[string (uuid)]
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
POST/api/v1/legal-holds/{id}/exports
Export what a hold covers
Needs `legal_hold:manage` (the superadmin and security administrators by default). Built in the background (202); poll the export. Mail in personal mailboxes is preserved by the hold but not exported (counted in `personal_preserved`; see eDiscovery); sign-in and security mail never is.
Personal-mailbox messages preserved but not exported
status
"running" | "done" | "failed"
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)
GET/api/v1/legal-holds/{id}/exports/{export_id}
A hold export's state, or its file
Needs `legal_hold:manage` (the superadmin and security administrators by default). With `download=1` (a `done` export) the answer is the export file itself (`application/octet-stream` or its own type) instead of JSON.
Scope: account · retention.export
Parameter
In
Type
Description
id *
path
string (uuid)
export_id *
path
string (uuid)
The export
download
query
"1" | "true"
Send the file
Responses 200 · 401 · 403 · 404 · 429
200 Success
export *
LegalHoldExport
fields
LegalHoldExport
bytes
integer | null
error
string | null
finished_at
string | null
format
"mbox" | "eml_zip"
hold_id
string (uuid)
id *
string (uuid)
inserted_at
string (date-time)
messages
integer | null
personal_preserved
integer | null
Personal-mailbox messages preserved but not exported
status
"running" | "done" | "failed"
401 Problem details (401)
403 Problem details (403)
404 Problem details (404)
429 Problem details (429)
POST/api/v1/legal-holds/{id}/release
Release a legal hold
Needs `legal_hold:manage` (the superadmin and security administrators by default).
Needs `retention:manage` (the superadmin and security administrators by default).
Scope: account · paginated · retention.policies
Parameter
In
Type
Description
cursor
query
string
The `next_cursor` of the previous page
limit
query
integer
Page size
Responses 200 · 401 · 403 · 429
200 Success
has_more
boolean
next_cursor
string | null
Pass as `cursor` for the next page; null on the last
policies *
[RetentionPolicy]
fields
RetentionPolicy
action
"delete" | "archive"
after_days
integer
enabled
boolean
folder_role
string | null
id *
string (uuid)
label
string | null
last_result
object | null
last_run_at
string | null
name
string
preview
object
Listing only
fields
held
integer
Kept by a legal hold
matching
integer
Messages it would act on now
scope_id
string | null
scope_type
"account" | "workspace" | "mailbox"
401 Problem details (401)
403 Problem details (403)
429 Problem details (429)
POST/api/v1/retention/policies
Create a retention policy
Needs `retention:manage` (the superadmin and security administrators by default). Never touches mail a legal hold covers, sign-in and security mail, mail waiting to be sent, or drafts unless the policy names Drafts. Enabled policies run hourly.
🔒 We use essential cookies to run Record Sender and, only with your
consent, optional cookies to improve it. Read our
Cookie Policy
and
Privacy Policy.