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

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

ParameterInTypeDescription
statusquery"pending" | "approved" | "produced" | "rejected" | "expired" | "failed" | "deleted"
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage 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)

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)

GET /api/v1/ediscovery/exports/{id}

An eDiscovery export request

Scope: account · ediscovery.show

ParameterInTypeDescription
id *pathstring (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)

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

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
note string
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)

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

ParameterInTypeDescription
id *pathstring (uuid)
token *querystringFrom `download_link`
Responses 200 · 401 · 403 · 404 · 429

200 Success

string

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

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

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
note string
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)

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

ParameterInTypeDescription
hold_id *pathstring (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)

GET /api/v1/ediscovery/officers

The account's Legal / compliance officers

Scope: account · paginated · ediscovery.officers

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage 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)

DELETE /api/v1/ediscovery/officers/{user_id}

Remove a member's eDiscovery officer role

The superadmin only.

Scope: account · ediscovery.revoke

ParameterInTypeDescription
user_id *pathstring (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)

PUT /api/v1/ediscovery/officers/{user_id}

Make a member an eDiscovery officer

The superadmin only.

Scope: account · ediscovery.grant

ParameterInTypeDescription
user_id *pathstring (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)