Authentication
API keys
Create a key in Developers → API keys and send it as Authorization: Bearer rs_<prefix>_<secret>. A key acts as the person who created it, with their current role, narrowed to its scopes; a removed person's keys stop working.
OAuth 2.1
For apps other people use. Register the app in Developers → Apps (confidential for servers, public for native, browser and CLI apps), then:
- Send the person to
https://recordsender.com/oauth/authorize?response_type=code&client_id=…&redirect_uri=…&scope=mail:read%20contacts:read&state=…&code_challenge=…&code_challenge_method=S256. PKCE (S256) is required for every client. - They see the scopes in plain language and may narrow the grant to some workspaces and mailboxes. In a business, the app must be installed by an admin first (an admin's consent installs it).
- Exchange the code at
POST /oauth/token(grant_type=authorization_code,code_verifier). You get an access token (rso_at_…, 1 hour) and a refresh token (rso_rt_…, 30 days). - Refresh with
grant_type=refresh_token: each use returns a new refresh token. Using an old one again ends the whole grant (theft detection).
Device grant (CLI, TVs): POST /oauth/device_authorization → show user_code and https://recordsender.com/oauth/device → poll /oauth/token with grant_type=urn:ietf:params:oauth:grant-type:device_code (honour slow_down).
Client credentials (server apps): a confidential app installed in an account gets a token for that account (account_id), acting as a plain member without a mailbox.
Revocation POST /oauth/revoke (RFC 7009) · introspection POST /oauth/introspect (RFC 7662, your own tokens) · metadata /.well-known/oauth-authorization-server · MCP clients: /.well-known/oauth-protected-resource and dynamic registration at POST /oauth/register.
A token never gets more than the person who authorized it — their role, the account's approval and every privacy rule apply on each request, and another person's personal mailbox is never reachable.
Scopes
| Scope | What the person sees |
|---|---|
| mail:read | Read your mail. Read messages, threads, labels and rules in the mailboxes you can open — never anyone else's personal mailbox. |
| mail:send | Send and organize mail. Send, reply, schedule, label and file mail as you, from mailboxes you may send from. Every recipient is verified first. |
| contacts:read | Read contacts. Read the address books you can open. |
| contacts:write | Change contacts. Create, change and delete contacts where you may edit. |
| calendar:read | Read calendars. Read the calendars you can open (others' private events stay busy-only). |
| calendar:write | Change calendars. Create and change events and invitations as you. |
| verify | Verify email addresses. Check whether addresses can receive mail, and manage the suppression list. |
| documents:read | Read documents. Read stored documents you can open. |
| documents:write | Store documents. Upload and change documents. |
| files:read | Read files. List and download files you can open in the Files Hub. |
| files:write | Change files. Upload, move, share and delete files where you may edit. |
| chat:read | Read team chat. Read the channels and conversations you are in. |
| chat:write | Post in team chat. Post, edit and react in conversations as you. |
| meetings:read | Read meetings. See your meetings, recordings you may open and their transcripts. |
| meetings:write | Manage meetings. Create and run meetings as you. |
| calls:read | Read calls. See your call history and voicemail. |
| calls:write | Place calls. Place and manage calls as you (through Telenaas). |
| activity:read | Read activity and insights. See your activity feed and your own communication insights. |
| brain:read | Ask the brain. Ask questions over what you can see; answers cite their sources. Uses AI credits. |
| brain:write | Add to memory. Store facts and decisions in the organizational memory. |
| graph:read | Read the knowledge graph. Search people, organizations and projects in the knowledge graph. |
| search:read | Search. Search across everything you can open. |
| knowledge:read | Read knowledge spaces. Query the knowledge spaces you belong to. |
| knowledge:write | Change knowledge spaces. Add notes and sources to knowledge spaces you contribute to. |
| emailtag:read | See the AI team. See AI team members, their runs and tasks. |
| emailtag:write | Direct the AI team. Give AI team members tasks and change their skills. Uses AI credits. |
| flows:read | See automations. See flows, their runs and failures. |
| flows:write | Run and change automations. Create, publish and run flows you may manage. |
| account | Administer the account. Billing, AI governance, domains, retention and other account settings — only what your role allows. |
| deliverability | Read deliverability. Sending statistics, bounces, complaints and DNS health of the account's domains. |
| integrations:read | See connected platforms. The partner-platform registry, each platform's capabilities and the health of the account's connections. |
| integrations:write | Use connected platforms. Run verified capabilities of connected platforms and manage sync jobs, as far as your role allows (connecting needs an admin). |
| station:read | See your Digital HQ and EmailStation. Your apps and their connection status, your HQ widgets, and the transactions, orders and trips found in your own mail — never anyone else's personal mail. |
| station:write | Organize your Digital HQ and EmailStation. Pin and hide apps on your HQ, and confirm or dismiss what was found in your mail. |
| actions:read | See your actions. The action catalogue and your own actions in the Action Center: what waits for you, what ran and how it went — never anyone else's. |
| actions:write | Propose and decide your actions. Propose actions on your mail, contacts and notifications, confirm or deny them, run, cancel and retry them. Payments above your threshold still need your approval in Authpermit. |
| brainsync:read | See your BrainSync. Which partner brains sync with your Infinite Brain, their health, the knowledge synced with its provenance, your conflicts and the activity log — only yours. |
| brainsync:write | Manage your BrainSync. Choose which platforms and categories sync, run a sync, resolve conflicts. Sensitive categories stay summaries and references only. |
| data_exchange:read | See what Record Sender holds from your other platforms. The ownership and authority registry, where each item came from (its provenance — only your own items), your sync positions, deletion receipts and exports. |
| data_exchange:write | Export or remove what Record Sender holds from your other platforms. Start an export of what Record Sender holds from the partner platforms, or remove it (everything, or one platform's) with a receipt. |
| learn:read | Read the Blog and your School. The Blog's articles, the School's courses and lessons, and your own progress, attempts and certificates — never anyone else's. |
| learn:write | Learn in the School as you. Enrol in courses, mark lessons done, sit quizzes and exams, and ask a course's AI teacher (paid from the account's AI credits). |
| privacy:read | See your privacy requests and consents. Your own data-subject requests (exports, erasures), your consents and what the account keeps about you — never anyone else's. |
| privacy:write | Act on your privacy rights. Ask for a copy of your data, schedule or cancel the erasure of your data, and change your consents — only your own. |
| governance:read | Read security and governance. The compliance report, data-leak prevention rules and incidents, the audit chain, SIEM destinations, keys and the secrets inventory — counts and metadata only. |
| governance:write | Manage security and governance. Data-leak prevention rules, device trust, key rotation and SIEM destinations, as far as your role allows. |
| federation:read | See federation with other organizations. Your organization's federation agreements, what partners share with it (their directory, free/busy, files and data products) and the directory. |
| federation:write | Manage federation. Publish the organization, propose, accept and end agreements, and share with partner organizations — administrators only. |
| data_fabric:read | Read the data catalog and data products. The data catalog, lineage and the organization's published data products (counts only). |
| data_fabric:write | Manage data products. Define, publish and retire the organization's data products. |
| studio:read | See your SenderStudio designs. Your email templates, signatures and email graphics in SenderStudio, those shared with you, their versions and the brand kit. |
| studio:write | Design in SenderStudio. Create, change, share and export designs, use them as templates or signatures, and change the brand kit where your role allows. Design for me and Rewrite text use AI credits. |
| esign:read | See e-sign envelopes. The signature envelopes this app or key sent (or you sent): their status per signer, the audit trail, the signed PDF and the certificate. |
| esign:write | Send documents for signature. Send documents for e-signature as you, remind, void, add or replace a signer, open embedded signing for a signer, and delete envelopes (with their files) for privacy requests. |
| developers | Build on Record Sender. Manage the account's apps, webhooks, sandboxes and external MCP servers, as far as your role allows. |
| offline_access | Stay connected. Keep access after you close the app (a refresh token). You can disconnect it any time in Security. |
Errors, idempotency, pagination, limits
Errors are RFC 9457 problem details (application/problem+json: type, title, status, detail, code, request_id). The legacy error member is still included and leaves only with /api/v2.
Idempotency: send Idempotency-Key on POST; a retry with the same key and body replays the first answer (Idempotency-Replayed: true) for 24 hours.
Pagination: lists take limit and answer next_cursor / has_more; pass cursor for the next page.
Rate limits: RateLimit-Limit, RateLimit-Remaining, RateLimit-Reset on every answer; 429 with Retry-After.
Lifecycle: the major version is in the path. A deprecated operation answers Deprecation and Sunset headers and is listed in the changelog at least 6 months before it goes.