eDiscovery — API reference
Two-person-approved exports of employees' own mailboxes under an active legal hold (business accounts, docs/retention.md "eDiscovery").
← All groups
GET
/api/v1/ediscovery/exports
eDiscovery export requests
Scope: account
· paginated
· ediscovery.index
Parameter In Type Description
status query "pending" | "approved" | "produced" | "rejected" | "expired" | "failed" | "deleted" cursor query string The `next_cursor` of the previous page limit query integer Page size
Responses 200 · 401 · 403 · 429
200 Success
awaiting_you
integer
Pending requests you may decide
exports *
[EdiscoveryExport]
fields
EdiscoveryExport
bytes
integer | null
can_decide
boolean
can_download
boolean
confidential
boolean
Employees are not told
decided_at
string | null
decided_by
string | null
decided_by_id
string | null
decision_note
string | null
deleted_at
string | null
downloads
integer | null
employees_notified
integer
error
string | null
expires_at
string | null
file_expires_at
string | null
format
"mbox" | "eml_zip"
hold_id
string (uuid)
id *
string (uuid)
include_shared
boolean
inserted_at
string (date-time)
mailbox_ids
[string (uuid)]
messages
integer | null
produced_at
string | null
reason
string
requested_by
string | null
requested_by_id
string (uuid)
scope
any
The people and mailboxes the request covers, with counts
status
"pending" | "approved" | "produced" | "rejected" | "expired" | "failed" | "deleted"
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)
Example
POST
/api/v1/ediscovery/exports
Request an eDiscovery export of a hold
Business accounts only. A person's own mailbox is otherwise only theirs: this export is the one exception. Officers (`ediscovery:export`) only. Only mail the active hold covers and that is there now, never sign-in or security mail. Waits for a second person's approval; expires after 14 days.
Scope: account
· Idempotency-Key
· ediscovery.create
Request body application/json
format
"mbox" | "eml_zip"
Default mbox
hold_id *
string (uuid)
include_shared
boolean
Include shared mailboxes (default true)
mailbox_ids
[string (uuid)]
Personal mailboxes to include (default: every one the hold covers)
reason *
string
Why the export is needed
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429
201 Success
export *
EdiscoveryExport
fields
EdiscoveryExport
bytes
integer | null
can_decide
boolean
can_download
boolean
confidential
boolean
Employees are not told
decided_at
string | null
decided_by
string | null
decided_by_id
string | null
decision_note
string | null
deleted_at
string | null
downloads
integer | null
employees_notified
integer
error
string | null
expires_at
string | null
file_expires_at
string | null
format
"mbox" | "eml_zip"
hold_id
string (uuid)
id *
string (uuid)
include_shared
boolean
inserted_at
string (date-time)
mailbox_ids
[string (uuid)]
messages
integer | null
produced_at
string | null
reason
string
requested_by
string | null
requested_by_id
string (uuid)
scope
any
The people and mailboxes the request covers, with counts
status
"pending" | "approved" | "produced" | "rejected" | "expired" | "failed" | "deleted"
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
409 Problem details (409)
422 Problem details (422)
429 Problem details (429)
Example
GET
/api/v1/ediscovery/exports/{id}
An eDiscovery export request
Scope: account
· ediscovery.show
Parameter In Type Description
id * path string (uuid)
Responses 200 · 401 · 403 · 404 · 429
200 Success
export *
EdiscoveryExport
fields
EdiscoveryExport
bytes
integer | null
can_decide
boolean
can_download
boolean
confidential
boolean
Employees are not told
decided_at
string | null
decided_by
string | null
decided_by_id
string | null
decision_note
string | null
deleted_at
string | null
downloads
integer | null
employees_notified
integer
error
string | null
expires_at
string | null
file_expires_at
string | null
format
"mbox" | "eml_zip"
hold_id
string (uuid)
id *
string (uuid)
include_shared
boolean
inserted_at
string (date-time)
mailbox_ids
[string (uuid)]
messages
integer | null
produced_at
string | null
reason
string
requested_by
string | null
requested_by_id
string (uuid)
scope
any
The people and mailboxes the request covers, with counts
status
"pending" | "approved" | "produced" | "rejected" | "expired" | "failed" | "deleted"
401 Problem details (401)
403 Problem details (403)
404 Problem details (404)
429 Problem details (429)
Example
POST
/api/v1/ediscovery/exports/{id}/approve
Approve an eDiscovery export
The superadmin or a second, different officer — never the requester (403 `requester_cannot_approve`), never an `rs_` API key (403 `approval_needs_person`). The export is then produced; employees are told unless the hold is confidential.
Scope: account
· Idempotency-Key
· ediscovery.approve
Parameter In Type Description
id * path string (uuid)
Request body application/json
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429
200 Success
export *
EdiscoveryExport
fields
EdiscoveryExport
bytes
integer | null
can_decide
boolean
can_download
boolean
confidential
boolean
Employees are not told
decided_at
string | null
decided_by
string | null
decided_by_id
string | null
decision_note
string | null
deleted_at
string | null
downloads
integer | null
employees_notified
integer
error
string | null
expires_at
string | null
file_expires_at
string | null
format
"mbox" | "eml_zip"
hold_id
string (uuid)
id *
string (uuid)
include_shared
boolean
inserted_at
string (date-time)
mailbox_ids
[string (uuid)]
messages
integer | null
produced_at
string | null
reason
string
requested_by
string | null
requested_by_id
string (uuid)
scope
any
The people and mailboxes the request covers, with counts
status
"pending" | "approved" | "produced" | "rejected" | "expired" | "failed" | "deleted"
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)
Example
GET
/api/v1/ediscovery/exports/{id}/download
Download a produced export
Only with a token from `download_link`, by the person it was issued to.
Scope: account
· ediscovery.download
Parameter In Type Description
id * path string (uuid) token * query string From `download_link`
Responses 200 · 401 · 403 · 404 · 429
401 Problem details (401)
403 Problem details (403)
404 Problem details (404)
429 Problem details (429)
Example
POST
/api/v1/ediscovery/exports/{id}/download_link
A 5-minute download link for a produced export
For the requester or the approver, as a person. Every download is audit-logged.
Scope: account
· Idempotency-Key
· ediscovery.download_link
Parameter In Type Description
id * path string (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429
200 Success
expires_in *
integer
Seconds
url *
string
Relative URL with its `token`
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)
Example
POST
/api/v1/ediscovery/exports/{id}/reject
Reject an eDiscovery export
The superadmin or a second, different officer — never the requester (403 `requester_cannot_approve`), never an `rs_` API key (403 `approval_needs_person`).
Scope: account
· Idempotency-Key
· ediscovery.reject
Parameter In Type Description
id * path string (uuid)
Request body application/json
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429
200 Success
export *
EdiscoveryExport
fields
EdiscoveryExport
bytes
integer | null
can_decide
boolean
can_download
boolean
confidential
boolean
Employees are not told
decided_at
string | null
decided_by
string | null
decided_by_id
string | null
decision_note
string | null
deleted_at
string | null
downloads
integer | null
employees_notified
integer
error
string | null
expires_at
string | null
file_expires_at
string | null
format
"mbox" | "eml_zip"
hold_id
string (uuid)
id *
string (uuid)
include_shared
boolean
inserted_at
string (date-time)
mailbox_ids
[string (uuid)]
messages
integer | null
produced_at
string | null
reason
string
requested_by
string | null
requested_by_id
string (uuid)
scope
any
The people and mailboxes the request covers, with counts
status
"pending" | "approved" | "produced" | "rejected" | "expired" | "failed" | "deleted"
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)
Example
GET
/api/v1/ediscovery/holds/{hold_id}/scope
Whose mailboxes an export of a hold would include
Business accounts only. A person's own mailbox is otherwise only theirs: this export is the one exception. Counts only, never content.
Scope: account
· ediscovery.preview
Parameter In Type Description
hold_id * path string (uuid)
Responses 200 · 401 · 403 · 404 · 429
200 Success
confidential
boolean
hold_id
string (uuid)
people
[object]
fields
address
string (email)
mailbox_id
string (uuid)
messages
integer
name
string
user_id
string (uuid)
personal_messages
integer
shared_messages
integer
401 Problem details (401)
403 Problem details (403)
404 Problem details (404)
429 Problem details (429)
Example
GET
/api/v1/ediscovery/officers
The account's Legal / compliance officers
Scope: account
· paginated
· ediscovery.officers
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
officers *
[object]
fields
email
string (email)
name
string | null
role
string
user_id
string (uuid)
401 Problem details (401)
403 Problem details (403)
429 Problem details (429)
Example
DELETE
/api/v1/ediscovery/officers/{user_id}
Remove a member's eDiscovery officer role
The superadmin only.
Scope: account
· ediscovery.revoke
Parameter In Type Description
user_id * path string (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429
200 Success
officer
boolean
user_id
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)
Example
PUT
/api/v1/ediscovery/officers/{user_id}
Make a member an eDiscovery officer
The superadmin only.
Scope: account
· ediscovery.grant
Parameter In Type Description
user_id * path string (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429
200 Success
officer
boolean
user_id
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)
Example