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

Federation — API reference

Organizations on Record Sender find each other in a directory, make trust agreements (proposed → active → suspended / ended) and share chosen things — their people directory, free/busy, file view links, data products — under a data-sovereignty rule (any region, the same region, or listed regions) checked on every read. Mail scope makes each side's verified domains count as inside for data-leak prevention. Business accounts. Scopes `federation:read` / `federation:write`; `federation:manage` decides changes.

← All groups
GET /api/v1/federation/agreements

Your agreements

Scope: federation:read · paginated · federation.agreements

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

200 Success

agreements * [FederationAgreement]
fields

FederationAgreement

allowed_regions [string]
decided_at string | null
direction "incoming" | "outgoing"
end_reason string | null
ended_at string | null
id string (uuid)
inserted_at string (date-time)
message string | null
other_account_id string (uuid)
other_name string
other_region string
partner_account_id string (uuid)
requester_account_id string (uuid)
residency "any" | "same_region" | "listed"
scopes ["mail" | "directory" | "calendar" | "files" | "data"]
status "proposed" | "active" | "suspended" | "ended" | "declined"
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/federation/agreements

Propose an agreement

Scope: federation:write · Idempotency-Key · federation.propose

Request body application/json
allowed_regions ["eu" | "us" | "me" | "ap"]
message string
partner_account_id * string (uuid)
residency "any" | "same_region" | "listed"
scopes * ["mail" | "directory" | "calendar" | "files" | "data"]
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

agreement * FederationAgreement
fields

FederationAgreement

allowed_regions [string]
decided_at string | null
direction "incoming" | "outgoing"
end_reason string | null
ended_at string | null
id string (uuid)
inserted_at string (date-time)
message string | null
other_account_id string (uuid)
other_name string
other_region string
partner_account_id string (uuid)
requester_account_id string (uuid)
residency "any" | "same_region" | "listed"
scopes ["mail" | "directory" | "calendar" | "files" | "data"]
status "proposed" | "active" | "suspended" | "ended" | "declined"

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 sovereignty

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/federation/agreements/{id}

One agreement with what each side shares

Scope: federation:read · federation.show

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

200 Success

agreement * FederationAgreement
fields

FederationAgreement

allowed_regions [string]
decided_at string | null
direction "incoming" | "outgoing"
end_reason string | null
ended_at string | null
id string (uuid)
inserted_at string (date-time)
message string | null
other_account_id string (uuid)
other_name string
other_region string
partner_account_id string (uuid)
requester_account_id string (uuid)
residency "any" | "same_region" | "listed"
scopes ["mail" | "directory" | "calendar" | "files" | "data"]
status "proposed" | "active" | "suspended" | "ended" | "declined"
ours * [FederationShare]
fields

FederationShare

id string (uuid)
inserted_at string (date-time)
kind "directory" | "calendar" | "file" | "data_product"
label string | null
resource_id string | null
url string | null
theirs object | null directory, calendar, files, data_products

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

POST /api/v1/federation/agreements/{id}/accept

Accept a proposal (the partner side)

Scope: federation:write · Idempotency-Key · federation.accept

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
reason string
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

agreement * FederationAgreement
fields

FederationAgreement

allowed_regions [string]
decided_at string | null
direction "incoming" | "outgoing"
end_reason string | null
ended_at string | null
id string (uuid)
inserted_at string (date-time)
message string | null
other_account_id string (uuid)
other_name string
other_region string
partner_account_id string (uuid)
requester_account_id string (uuid)
residency "any" | "same_region" | "listed"
scopes ["mail" | "directory" | "calendar" | "files" | "data"]
status "proposed" | "active" | "suspended" | "ended" | "declined"

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 not_active

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/federation/agreements/{id}/decline

Decline a proposal

Scope: federation:write · Idempotency-Key · federation.decline

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
reason string
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

agreement * FederationAgreement
fields

FederationAgreement

allowed_regions [string]
decided_at string | null
direction "incoming" | "outgoing"
end_reason string | null
ended_at string | null
id string (uuid)
inserted_at string (date-time)
message string | null
other_account_id string (uuid)
other_name string
other_region string
partner_account_id string (uuid)
requester_account_id string (uuid)
residency "any" | "same_region" | "listed"
scopes ["mail" | "directory" | "calendar" | "files" | "data"]
status "proposed" | "active" | "suspended" | "ended" | "declined"

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 not_active

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/federation/agreements/{id}/end

End an agreement (everything shared under it stops)

Scope: federation:write · Idempotency-Key · federation.end_agreement

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
reason string
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

agreement * FederationAgreement
fields

FederationAgreement

allowed_regions [string]
decided_at string | null
direction "incoming" | "outgoing"
end_reason string | null
ended_at string | null
id string (uuid)
inserted_at string (date-time)
message string | null
other_account_id string (uuid)
other_name string
other_region string
partner_account_id string (uuid)
requester_account_id string (uuid)
residency "any" | "same_region" | "listed"
scopes ["mail" | "directory" | "calendar" | "files" | "data"]
status "proposed" | "active" | "suspended" | "ended" | "declined"

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 not_active

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/federation/agreements/{id}/free-busy

The partner's people's busy times

Only people who share free/busy with their own organization; never event details.

Scope: federation:read · federation.free_busy

ParameterInTypeDescription
id *pathstring (uuid)
user_ids *query[string (uuid)]up to 20, from the people list
from *querystring (date-time)
to *querystring (date-time)
Responses 200 · 401 · 403 · 404 · 422 · 429

200 Success

people * [object]

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

422 sovereignty

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/federation/agreements/{id}/people

The partner's people (when it shares its directory)

Scope: federation:read · federation.people

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

200 Success

people * [object]
fields
address string | null
name string
user_id string (uuid)

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

422 sovereignty

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/federation/agreements/{id}/products/{share_id}

Read a data product the partner shares

Recorded in the product's lineage as `federation:<your organization>`.

Scope: federation:read · federation.product

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

200 Success

product * DataProduct
fields

DataProduct

dataset "audit_trail" | "dlp_incidents" | "flow_runs" | "shared_mail" | "channel_messages" | "privacy_requests"
description string | null
group_by string | null one column the dataset allows
id string (uuid)
inserted_at string (date-time)
measure "count"
name string
period "day" | "week" | "month"
status "draft" | "published" | "retired"
updated_at string (date-time)
version integer
window_days integer 1–730
rows * [DataProductRow]
fields

DataProductRow

count integer
group string | null
period string (date)
source_rows * integer

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

POST /api/v1/federation/agreements/{id}/resume

Resume a suspended agreement

Scope: federation:write · Idempotency-Key · federation.resume

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
reason string
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

agreement * FederationAgreement
fields

FederationAgreement

allowed_regions [string]
decided_at string | null
direction "incoming" | "outgoing"
end_reason string | null
ended_at string | null
id string (uuid)
inserted_at string (date-time)
message string | null
other_account_id string (uuid)
other_name string
other_region string
partner_account_id string (uuid)
requester_account_id string (uuid)
residency "any" | "same_region" | "listed"
scopes ["mail" | "directory" | "calendar" | "files" | "data"]
status "proposed" | "active" | "suspended" | "ended" | "declined"

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 not_active

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/federation/agreements/{id}/shares

Share something under an agreement

`directory` and `calendar` take no resource; `file` takes a Files node id (a 90-day view link is made with your rights; restricted files and accounts that turned external sharing off refuse); `data_product` takes a published product id.

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

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
kind * "directory" | "calendar" | "file" | "data_product"
resource_id string (uuid)
Responses 201 · 401 · 402 · 403 · 404 · 409 · 422 · 429

201 Success

share * FederationShare
fields

FederationShare

id string (uuid)
inserted_at string (date-time)
kind "directory" | "calendar" | "file" | "data_product"
label string | null
resource_id string | null
url string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 sovereignty

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/federation/agreements/{id}/suspend

Suspend an agreement

Scope: federation:write · Idempotency-Key · federation.suspend

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
reason string
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

agreement * FederationAgreement
fields

FederationAgreement

allowed_regions [string]
decided_at string | null
direction "incoming" | "outgoing"
end_reason string | null
ended_at string | null
id string (uuid)
inserted_at string (date-time)
message string | null
other_account_id string (uuid)
other_name string
other_region string
partner_account_id string (uuid)
requester_account_id string (uuid)
residency "any" | "same_region" | "listed"
scopes ["mail" | "directory" | "calendar" | "files" | "data"]
status "proposed" | "active" | "suspended" | "ended" | "declined"

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 not_active

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/federation/directory

Published organizations

Scope: federation:read · paginated · federation.directory

ParameterInTypeDescription
qquerystringname
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
organizations * [object]

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/federation/profile

Your organization's directory profile

Scope: federation:read · federation.profile

Responses 200 · 401 · 403 · 429

200 Success

profile * object
fields
description string | null
display_name string
offers ["mail" | "directory" | "calendar" | "files" | "data"]
published boolean
website string | null

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

PUT /api/v1/federation/profile

Change your directory profile

Scope: federation:write · federation.put_profile

Request body application/json
description string | null
display_name string
offers ["mail" | "directory" | "calendar" | "files" | "data"]
published boolean
website string | null
Responses 200 · 401 · 402 · 403 · 422 · 429

200 Success

profile * object
fields
description string | null
display_name string
offers ["mail" | "directory" | "calendar" | "files" | "data"]
published boolean
website string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

422 Problem details (422)

429 Problem details (429)

DELETE /api/v1/federation/shares/{share_id}

Stop sharing

Scope: federation:write · federation.revoke_share

ParameterInTypeDescription
share_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)