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

Data exchange — API reference

Record Sender connects to the partner platforms without becoming a central store: each platform stays authoritative for its records. The Data Ownership and Authority Registry says, per data domain, who is the source of truth, what Record Sender may hold (none, reference, summary, cached, full), what happens when a connection ends and what an export contains. For the key's person: what is held from each platform, ownership labels and provenance of their own items (another person's item answers 404), sync cursors and health, deletion receipts, removal and exports (a zip of JSON and CSV with provenance, downloaded through a signed link that lasts 5 minutes). Scopes `data_exchange:read` and `data_exchange:write`.

← All groups
POST /api/v1/data-exchange/erase

Remove what Record Sender holds from your other platforms

Everything, or one platform's (`platform`): BrainSync sources switch off and their records go (kept ones too), the platforms' answers to your actions go (their history stays), waiting actions are cancelled, cursors are cleared. Your connections stay. Runs in the background; the receipt says what went.

Scope: data_exchange:write · Idempotency-Key · data_exchange.erase

Request body application/json
platform string registry key; omit for every platform
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

receipt * DeletionReceipt
fields

DeletionReceipt

connection_id string | null
entries [object]
fields
detail string | null
kept integer
label string
place string brainsync, station, actions, docs_hub, webhooks, cursors
removed integer
finished_at string | null
id * string (uuid)
inserted_at string (date-time)
kept integer
platform string | null
platform_name string | null
removed integer
started_at string | null
status * "running" | "done" | "partial"
trigger * "connection_revoked" | "connection_disconnected" | "consent_withdrawn" | "account_unlinked" | "person_erased"
trigger_label string

401 Problem details (401)

402 Problem details (402)

403 The key acts for no person

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

404 No such platform

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

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/data-exchange/exports

Your exports

Scope: data_exchange:read · data_exchange.exports

Responses 200 · 401 · 403 · 429

200 Success

exports * [DataExport]
fields

DataExport

bytes integer | null
counts object records per kind
error string | null
expires_at string | null
finished_at string | null
id * string (uuid)
inserted_at string (date-time)
scope * "person" | "organization"
status * "running" | "done" | "failed" | "expired"

401 Problem details (401)

403 The key acts for no person

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/data-exchange/exports

Export what Record Sender holds from your other platforms

`person` (default): your own, with provenance. `organization`: a business account's admins (`integration:manage`) — the organization's own data only, never anyone's private items. A zip of JSON and CSV, prepared in the background and kept 7 days.

Scope: data_exchange:write · Idempotency-Key · data_exchange.create_export

Request body application/json
scope "person" | "organization"
Responses 200 · 401 · 402 · 403 · 409 · 422 · 429

200 Success

export * DataExport
fields

DataExport

bytes integer | null
counts object records per kind
error string | null
expires_at string | null
finished_at string | null
id * string (uuid)
inserted_at string (date-time)
scope * "person" | "organization"
status * "running" | "done" | "failed" | "expired"

401 Problem details (401)

402 Problem details (402)

403 Not an admin of a business account

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

409 Problem details (409)

422 invalid_scope

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/data-exchange/exports/{id}

One export

Scope: data_exchange:read · data_exchange.export

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

200 Success

export * DataExport
fields

DataExport

bytes integer | null
counts object records per kind
error string | null
expires_at string | null
finished_at string | null
id * string (uuid)
inserted_at string (date-time)
scope * "person" | "organization"
status * "running" | "done" | "failed" | "expired"

401 Problem details (401)

403 The key acts for no person

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

404 No such export

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/data-exchange/exports/{id}/download

Download an export

Scope: data_exchange:read · data_exchange.download

ParameterInTypeDescription
id *pathstring (uuid)
token *querystringfrom download_link
Responses 200 · 401 · 403 · 404 · 409 · 410 · 429

200 Success

string

401 Problem details (401)

403 The key acts for no person

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

404 No such export

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

409 not_ready

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 link_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>)

429 Problem details (429)

GET /api/v1/data-exchange/labels/{kind}/{id}

The ownership label of one of your items

Scope: data_exchange:read · data_exchange.label

ParameterInTypeDescription
kind *path"brainsync_item" | "station_record" | "action" | "docs_hub_document"
id *pathstring
Responses 200 · 401 · 403 · 404 · 429

200 Success

label * OwnershipLabel
fields

OwnershipLabel

authority string
authority_name string
direction "in" | "out"
domain string | null
id string | null
kind "brainsync_item" | "station_record" | "action" | "docs_hub_document" | nil
owner * "person" | "organization"
owner_name string
platform * string
platform_name string
state "current" | "stale" | "no_longer_updated" | "removed"
state_label string | null
sync_class * "referenced" | "synchronized" | "derived" | "cached" | "live" | "extracted" | "sent" | "native"
sync_label string

401 Problem details (401)

403 The key acts for no person

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

404 No such item (or not yours)

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/data-exchange/overview

What Record Sender holds from each platform for you

Per partner platform: your connections there, BrainSync records (active, and kept as no longer updated), actions, sync positions, and the registry's rule for each of its domains.

Scope: data_exchange:read · data_exchange.overview

Responses 200 · 401 · 403 · 429

200 Success

platforms * [DataExchangePlatform]
fields

DataExchangePlatform

actions integer
brainsync_active integer
brainsync_kept integer
coming_soon boolean
connections [object]
fields
id string (uuid)
label string | null
scopes [string]
status string
visibility string
cursors [SyncCursor]
fields

SyncCursor

connection_id string | null
consumer string
failures integer
id string (uuid)
invalidated_at string | null a sister's webhook said something changed
invalidated_by string | null
items_seen integer
last_attempt_at string | null
last_error string | null
last_success_at string | null
platform * string
position_keys [string]
state * "current" | "refresh_pending" | "failing" | "never"
stream * string brainsync, station.travel, …
supports_updated_since boolean
updated_since string | null
domains [object]
name * string
platform * string
totals * object
fields
actions integer
held integer
kept integer
platforms integer

401 Problem details (401)

403 The key acts for no person

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/data-exchange/receipts

Your deletion receipts

Scope: data_exchange:read · data_exchange.receipts

ParameterInTypeDescription
limitqueryinteger1–200, default 50
Responses 200 · 401 · 403 · 429

200 Success

receipts * [DeletionReceipt]
fields

DeletionReceipt

connection_id string | null
entries [object]
fields
detail string | null
kept integer
label string
place string brainsync, station, actions, docs_hub, webhooks, cursors
removed integer
finished_at string | null
id * string (uuid)
inserted_at string (date-time)
kept integer
platform string | null
platform_name string | null
removed integer
started_at string | null
status * "running" | "done" | "partial"
trigger * "connection_revoked" | "connection_disconnected" | "consent_withdrawn" | "account_unlinked" | "person_erased"
trigger_label string

401 Problem details (401)

403 The key acts for no person

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/data-exchange/receipts/{id}

One deletion receipt

Scope: data_exchange:read · data_exchange.receipt

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

200 Success

receipt * DeletionReceipt
fields

DeletionReceipt

connection_id string | null
entries [object]
fields
detail string | null
kept integer
label string
place string brainsync, station, actions, docs_hub, webhooks, cursors
removed integer
finished_at string | null
id * string (uuid)
inserted_at string (date-time)
kept integer
platform string | null
platform_name string | null
removed integer
started_at string | null
status * "running" | "done" | "partial"
trigger * "connection_revoked" | "connection_disconnected" | "consent_withdrawn" | "account_unlinked" | "person_erased"
trigger_label string

401 Problem details (401)

403 The key acts for no person

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

404 No such receipt

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/data-exchange/registry

The Data Ownership and Authority Registry

Every data domain with its rules, and each supplying platform's state in the partner registry (availability; the domain's capabilities found verified or proposed in its manifest).

Scope: data_exchange:read · data_exchange.registry

Responses 200 · 401 · 403 · 429

200 Success

domains * [DataAuthorityDomain]
fields

DataAuthorityDomain

authority * string a registry platform, recordsender (native) or each_source
authority_name string
capabilities object platform → its capability keys
category * string BrainSync's knowledge category
conflict_rule * "authority_wins_unless_confirmed" | "authority_wins" | "ask_person"
description string | null
exportable * "full" | "metadata" | "reference" | "none"
holding * "none" | "reference" | "summary" | "cached" | "full"
key * string
locked * boolean never exchanged
name * string
notes string | null
on_revoke * "delete" | "person_choice" | "keep_reference"
position integer
refresh_minutes integer | null
retention_days integer | null how long a copy kept after a disconnect stays
sensitive * boolean
sources [any]
station_section "transaction" | "order" | "travel" | nil
status * "active" | "coming_soon"
updated_at string | null

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/data-exchange/registry/{key}

One domain of the registry

Scope: data_exchange:read · data_exchange.domain

ParameterInTypeDescription
key *pathstringe.g. trips
Responses 200 · 401 · 403 · 404 · 429

200 Success

domain * DataAuthorityDomain
fields

DataAuthorityDomain

authority * string a registry platform, recordsender (native) or each_source
authority_name string
capabilities object platform → its capability keys
category * string BrainSync's knowledge category
conflict_rule * "authority_wins_unless_confirmed" | "authority_wins" | "ask_person"
description string | null
exportable * "full" | "metadata" | "reference" | "none"
holding * "none" | "reference" | "summary" | "cached" | "full"
key * string
locked * boolean never exchanged
name * string
notes string | null
on_revoke * "delete" | "person_choice" | "keep_reference"
position integer
refresh_minutes integer | null
retention_days integer | null how long a copy kept after a disconnect stays
sensitive * boolean
sources [any]
station_section "transaction" | "order" | "travel" | nil
status * "active" | "coming_soon"
updated_at string | null

401 Problem details (401)

403 Problem details (403)

404 No such domain

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/data-exchange/sync-status

Your sync cursors and health

Scope: data_exchange:read · data_exchange.sync_status

ParameterInTypeDescription
platformquerystringone platform
Responses 200 · 401 · 403 · 429

200 Success

brainsync * [object]
cursors * [SyncCursor]
fields

SyncCursor

connection_id string | null
consumer string
failures integer
id string (uuid)
invalidated_at string | null a sister's webhook said something changed
invalidated_by string | null
items_seen integer
last_attempt_at string | null
last_error string | null
last_success_at string | null
platform * string
position_keys [string]
state * "current" | "refresh_pending" | "failing" | "never"
stream * string brainsync, station.travel, …
supports_updated_since boolean
updated_since string | null

401 Problem details (401)

403 The key acts for no person

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/provenance/{kind}/{id}

Where did this come from?

Source and the source's record id, when fetched and changed there, version, the connection and consent used, transformations (summarised by AI, reference only, found by rules) and the chain of events. Only your own items — another person's private item answers 404, like one that doesn't exist.

Scope: data_exchange:read · data_exchange.provenance

ParameterInTypeDescription
kind *path"brainsync_item" | "station_record" | "action" | "docs_hub_document"
id *pathstringthe item's id (a Files node's id for docs_hub_document)
Responses 200 · 401 · 403 · 404 · 429

200 Success

provenance * Provenance
fields

Provenance

ai_generated boolean
chain [object]
fields
at string (date-time)
event string
text string
classes object
fields
authority string
knowledge_class string
ownership string
verified boolean
connection object | null
fields
id string (uuid)
label string | null
method string
status string
visibility string
consent object | null
fields
consented_at string | null
scopes [string]
via string
withdrawn_at string | null
domain object | null the registry's rule: key, name, authority, holding, on_revoke, exportable
fetched_at string | null
id * string
kind * "brainsync_item" | "station_record" | "action" | "docs_hub_document"
label * OwnershipLabel
fields

OwnershipLabel

authority string
authority_name string
direction "in" | "out"
domain string | null
id string | null
kind "brainsync_item" | "station_record" | "action" | "docs_hub_document" | nil
owner * "person" | "organization"
owner_name string
platform * string
platform_name string
state "current" | "stale" | "no_longer_updated" | "removed"
state_label string | null
sync_class * "referenced" | "synchronized" | "derived" | "cached" | "live" | "extracted" | "sent" | "native"
sync_label string
source * object
fields
name string
platform string
record_id string | null
reference string | null
url string | null
source_updated_at string | null
source_version string | null
stored_in string | null
title string | null
transformations [object]
fields
kind string
label string
version integer | null

401 Problem details (401)

403 The key acts for no person

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

404 No such item (or not yours)

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)