| GET | /robots.txt | P | Crawler rules for the app host |
| GET | /sitemap.xml | P | Answers 404: the private app has no sitemap |
| POST | /api/v1/waitlist | P | Join the waitlist (JSON or form; CORS for nexara.ac, www.nexara.ac and WAITLIST_CORS_ORIGINS, OPTIONS preflight). 202 {ok:true} for new and existing emails alike; a plain form POST gets 303 to WAITLIST_THANKS_URL. Honeypot field website, 10/h per IP |
| POST | /api/v1/recover | P | AR-04: start a recovery with a workspace id and the workspace recovery key. Answers one neutral 202 {"ok":true} for EVERY failure (wrong key, unknown workspace, bad format, over the limit) so it cannot be used to find out which workspaces exist. On success the same 202 also carries a one-time recovery token, and a 24-hour cooling-off begins with an email and an in-app alert to every owner and admin. 3 attempts/hour per workspace per IP, 10/day per workspace |
| POST | /api/v1/recover/status | P | AR-04: where a recovery is up to, by its one-time token: cooling_off, cancelled or completed, and when the wait ends |
| POST | /api/v1/recover/complete | P | AR-04: after the 24 hours. Without code: checks the new password and returns the otpauth URI for a new authenticator. With a code from that app: sets the password, enables the authenticator, returns ten new backup codes, burns the key and kills every session and agent key in the workspace |
| GET | /confirm/:token | P | RECA3: the page behind an emailed one-click link (confirm a new email address, stop an email change, lock a workspace down after a recovery alert). Renders a page and changes NOTHING; a dead, spent or unknown link renders one shared page |
| POST | /confirm/:token | P | RECA3: does what the page said, behind a double-submit cookie token. Single use |
| GET | /api/v1/onboarding | S (owner/admin/member) | Guided setup: steps with a hint and the screen that does the job (find a file by asking, project, Claude/ChatGPT, teammate, 2FA), the plan clock (trial / waitlist days left), support_email and the setup_call mailto. Guests get 403 |
| POST | /api/v1/onboarding/dismiss | S | Hide the checklist for you in this workspace |
| GET | /api/v1/settings/agents | S own | The "Members may connect agents" setting (members_add_agents, default true) and member_agents, how many agents Members added |
| PUT | /api/v1/settings/agents | S own +U | Set {members_add_agents}. Off: Members and Guests get 403 agents_owner_only on POST /principals, /principals/preview and OAuth consent; their existing agents keep working |
| GET | /api/v1/settings/agent-visibility | S own | The "What agents can see of other members and agents" setting: all (default), people or shared |
| PUT | /api/v1/settings/agent-visibility | S own +U | Set {agent_visibility} to all, people or shared. It narrows what AGENTS see in context_whoami, GET /principals and mention/assign resolution; a hidden principal reads as a name that does not exist. People are never narrowed |
| GET | /api/v1/settings/write-screen | S own | What happens to a write that looks like instructions to an AI: off, warn or hold (a new workspace starts on hold; one made before 15 Oct 2026 with no choice stored reads warn) |
| PUT | /api/v1/settings/write-screen | S own +U | Set {write_screen} to off, warn or hold. On hold, an agent write that would land (Direct, or Autopilot applying it) waits in review as "Held: looks like instructions to an AI" with its reasons; people are only warned |
| GET | /api/v1/held-writes | S own | Open writes held because they look like instructions to an AI: {mode, held: [proposal], flagged: [proposal]} (flagged = flagged but not held, waiting in Changes), each with screen.reasons (code, label, excerpt). Only rows the caller can open are listed |
| POST | /api/v1/held-writes/:id/release | S own | Release a held write: it lands as an accepted proposal (same rules as accepting it). 404 when the id is not an open held write |
| POST | /api/v1/held-writes/:id/reject | S own | Reject a held write with an optional {reason}. 404 when the id is not an open held write |
| GET | /api/v1/settings/consolidation | S own | Duplicate pages: {on, sweep, sweep_max, ai_calls_per_day, ai_calls_today, last_sweep_at}. Off by default |
| PUT | /api/v1/settings/consolidation | S own +U | Turn "possible duplicate" merge proposals on or off (on), the weekly sweep (sweep, at most sweep_max proposals a run, 1 to 20) and the daily cap on model checks (ai_calls_per_day, 0 to 100, on top of the AI spend limits). Merges are always proposals; Secret pages are never compared or merged |
| GET | /api/v1/succession | S (owner/admin) | AR-05: the founder, when they were last seen, the nominated standby owner, whether a handover may start, and any handover running |
| PUT | /api/v1/succession/standby | S +U (founder) | AR-05: the founder names another OWNER as the standby successor. Step-up required; refused (succession_needs_owner) for anyone who is not an owner of this workspace |
| POST | /api/v1/succession | S (owner) | AR-05: another owner starts a handover of the founder role. Refused (succession_founder_active) unless the founder has not signed in for 30 days, and (succession_in_progress) if one is already running. 7-day cooling-off; the successor is the nominated standby when there is one |
| POST | /api/v1/succession/:id/cancel | S (founder or starter) | AR-05: stop a handover. The founder signing in anywhere stops it on its own, so this is a convenience on top |
| POST | /api/v1/succession/:id/complete | S (owner) | AR-05: after the 7 days, the successor becomes the founder. The previous founder keeps the Owner role and all their access |
| GET | /api/v1/recovery-key | S (owner/admin) | AR-04: whether a workspace recovery key exists, when it was made, by whom, and how many attempts were made in the last day. Never the key |
| POST | /api/v1/recovery-key | S +U (owner) | AR-04: make or rotate the workspace recovery key. Returns the nxr_ key exactly ONCE; an argon2id hash is kept on the workspace row and no route can ever return it again. Owner only, step-up required, and every other owner and admin is emailed |
| GET | /api/v1/recovery | S (owner/admin) | AR-04: the newest recovery nobody has acknowledged, for the banner, or null |
| POST | /api/v1/recovery/:id/cancel | S (owner/admin) | AR-04: stop a recovery inside its 24-hour cooling-off. No step-up on purpose (the safe direction, usable by somebody whose phone is gone). Burns the recovery key |
| POST | /api/v1/recovery/:id/acknowledge | S (owner/admin) | AR-04: clear the recovery banner for this workspace |
| GET | /api/v1/views/graph | S K | Links between pages the caller can read and who last changed each one, for the List and Map views. ?space narrows to one project (404 if the caller cannot open it) |
| GET | /api/v1/views/timeline | S K | What changed, newest first, for the Timeline view: created, edited, approved, locked and archived events on pages the caller can open now (nothing else is returned or counted). Filters: ?before (time of the last event shown), ?limit, ?space, ?who, ?kind, ?lock, ?q |
| GET | /api/v1/views/saved | S | Saved views (people only): your own and the workspace's shared ones, each narrowed to the projects you can open; a shared view about only projects you cannot open is not listed |
| POST | /api/v1/views/saved | S | Save the current view as a named shortcut: { name, state: { view, projects, locks, q, who, kinds }, shared? }. shared is for an Owner or Admin. Audited (view.save) |
| PATCH | /api/v1/views/saved/:id | S | Rename a saved view, change what it shows, or share/unshare it (sharing: Owner or Admin). Yours, or a shared one if you are an Owner or Admin. Audited (view.update) |
| DELETE | /api/v1/views/saved/:id | S | Delete a saved view (yours, or a shared one if you are an Owner or Admin). Audited (view.delete) |
| GET | /api/v1/erasures | S (owner/admin) | Erasure requests (only when the server runs with ERASURE=on; otherwise 404): status, page count, titles you can open |
| POST | /api/v1/erasures | S +U (owner/admin) | Ask to erase pages (node_ids) or a project/folder (space, cluster_path) with a reason. A second Owner or Admin approves. Refused on held content (423 legal_hold). ERASURE=on only |
| GET | /api/v1/erasures/:id | S (owner/admin) | One erasure request |
| GET | /api/v1/erasures/:id/receipt | S (owner/admin) | The erasure receipt (ids, content hashes, counts, what could not be reached) and its SHA-256, which is also in the audit log |
| POST | /api/v1/erasures/:id/approve | S +U (owner/admin) | Approve and run an erasure. Must be a different person from the one who asked (403 two_person_rule). Returns the receipt |
| POST | /api/v1/erasures/:id/cancel | S (owner/admin) | Cancel an erasure that has not run |
| GET | /api/v1/holds | S (owner/admin) | Active legal holds: scope, what they cover, until, reason, who placed them. ?include=released adds released: holds that were lifted, with since, released_at, released_by and release_note |
| POST | /api/v1/holds | S +U (owner/admin) | Place a legal hold on a page (node_id) or a project/folder (space, cluster_path) with reason and optional until (YYYY-MM-DD). Held content can be edited but not archived, deleted, moved out of the hold or erased (423 legal_hold). A second hold on the same scope is 409 already_held with the existing hold |
| DELETE | /api/v1/holds/:id | S +U (owner/admin) | Release a legal hold (optional note); the release is a commit and an audit row |
| GET | /api/v1/storage | S (owner) | Storage used by the workspace (history included), files on pages, and the plan limit |
| GET | /api/v1/files/* | S K (read) | A file by its path; readable only at the lock of the page it was added to (and the folder lock); 404 otherwise |
| POST | /api/v1/facts/:fact_id/forget | S K (write, else proposal) | Withdraw a fact {reason?, request_id?}. The reply has state withdrawn and id = the fact_id. Idempotent (unchanged: true). The row stays, struck through. Suggest: 202 proposed with a queued receipt; retries replay it |
| DELETE | /api/v1/facts/:fact_id | S K (write, else proposal) | The same withdrawal as POST /facts/:fact_id/forget, for clients that spell forgetting as a delete. The row is never removed from the page |
| GET | /api/v1/facts | S K (read) | Recall: ?q=&entity=&space=&limit=&include_expired=. Facts you may read, active first |
| GET | /api/v1/entities | S K (read) | People / Companies views: ?type=person|company|project|deal&space=. Pages with that frontmatter type, their aliases and fact counts |
| GET | /api/v1/tidy | S K | Tidy memory suggestions you can read, grouped: unused (90 days), duplicate, replaced, check_due, changed_dependency; can_act per page |
| GET | /api/v1/library | S K | Memory by kind (people, companies, projects, decisions, preferences, how we work, imported chats, other) with counts, plus topic clusters that span folders |
| GET | /api/v1/tasks | S K | Tasks you can see. ?mine=1, ?open=1 (unassigned), ?node, ?state=all|submitted|working|... |
| GET | /api/v1/tasks/:id | S K | One task with its history |
| POST | /api/v1/tasks | S K | Assign {node, title, body?, assignee?, due?} (assign grant; no assignee = open queue) |
| POST | /api/v1/tasks/:id/:action | S K | accept, reject, heartbeat, need_input, complete {note, result_ref}, fail, cancel, reassign {to, note}, release {note}, claim |
| POST | /api/v1/handoff | S K | Handoff note {scope, summary, done?, decisions?, next?, task_id?, to?} into <scope>/handoff.md |
| GET | /api/v1/lifecycle/candidates | S K | Auto-archive candidates, mode, next run, last digest |
| GET | /api/v1/archived | S K | Archived pages you can read, newest first (Unarchive with POST /nodes/:id/restore) |
| POST | /api/v1/lifecycle/run | S own (+U for apply) | Run the lifecycle job now {mode: dry|apply} |
| GET | /api/v1/where | S K | Where a page belongs: project filing rules, readable folders, a suggested path, and an existing page with the same title (?title=&summary=&space=) |
| GET | /api/v1/connect/failures | S (owner or admin) | The last 50 connection attempts that failed in this workspace (last 30 days): when, who (only a member of this workspace), the app name and the reason in plain words. A key of yours or a person of yours that failed on a workspace address they cannot connect to is listed; the address and the workspace it named never are. An attempt aimed at your workspace by somebody who is not in it is never listed |
| GET | /api/v1/live | S | Server-sent events for the workspace: hello, activity (a proposal made or decided, a change landed or undone; ids, names and kinds, never text). Keeps the Inbox count, Changes and Home fresh in open tabs |
| GET | /api/v1/ask/config | S | Ask the vault: whether AI is configured, its status (working, busy or not_set_up), the current model, the models you can switch to with their relative cost, the Secret setting, whether the workspace has its own key (byok, never the key), this month's AI allowance with today's use against the daily share (a tenth of the month), and (owners and admins) the server-wide AI spend for the credit window or month and for today against their caps, which a workspace's own key is never counted in |
| PUT | /api/v1/ask/config | S (owner, step-up) | Set the workspace AI model {model} and the "AI may read unlocked Secret pages" setting {secret} (default off) |
| PUT | /api/v1/ask/key | S (owner, step-up) | Bring your own AI key for this workspace {provider, api_key, base_url?, model?}; sealed at once, never returned after save |
| DELETE | /api/v1/ask/key | S (owner, step-up) | Remove the workspace's own AI key; Ask falls back to the server's key, if any |
| GET | /api/v1/changes | S K | Applied feed: agent changes that landed without review (principal_id, since, unreviewed) |
| GET | /api/v1/changes/summary | S K | Needs you / applied today / unreviewed counts, per agent |
| POST | /api/v1/changes/review | S | Mark reviewed {ids} or {principal_id, since} |
| POST | /api/v1/changes/undo-all | S | Undo everything an agent applied since a time {principal_id, since, ids?, keep?}; pages a person changed since are kept and listed |
| GET | /api/v1/changes/undo-all/preview | S | What undo-all would revert and keep (and why); changes nothing |
| POST | /api/v1/access-requests/:id/approve | S own (+U or the one-time code) | Approve a Secret access request: {period: 1h|8h|24h|7d} or {uses: N}; step-up, or the 6-digit code from the agent page when approving from another device |
| POST | /api/v1/access-requests/:id/deny | S own | Turn down a Secret access request; the agent is told in its inbox |
| POST | /api/v1/import | S K (write) | Zip upload (multipart field file + space), raw application/zip, or JSON {space, files[]}. 50 MB, 5/hour |
| POST | /api/v1/import/ai | S (write on the project, or owner/admin to create it) | Claude or ChatGPT data export: multipart file (the zip, or a bare conversations.json) + space, space_name?, lock? (team|restricted, default restricted), dry? (1 = counts only). Format detected from the contents. One page per conversation under <space>/<source>/<YYYY-MM>/, an index per source, Claude projects under <source>/projects/. Credentials become "[removed: looked like a password or key]" and are counted. 250 MB, 2000 conversations, 5/hour. People only (403 people_only) |
| GET | /api/v1/audit | S own | Hash-chained audit log, newest first, with every action it holds. Filters ?principal, node, action, outcome (allow|deny|step_up), from, to (a day or a timestamp), allowed_by (W4: kind:id from an Allowed by link, show everything that approval has allowed), plus ?limit and cursor; an unknown filter is a 400 rather than ignored |
| GET | /api/v1/insights | S own | Workspace insights for the Owner or Admin: members by role, agents with trust, clearance and idle flag, who can reach Secret; reads and writes per agent and person, pages created and changed, proposals waiting/accepted/rejected, undos, Secret access requests, Ask questions, Skills runs, top projects; refused actions by reason, secret-scan blocks, lockdowns, paused agents; usage against the plan limits (same numbers as /billing). ?days=7|30|90 (default 30). Counts, principal names and ids, and project names only: never page titles, page ids or text. Members, Guests and agents get 403 |
| GET | /api/v1/audit/export | S own | The filtered log as a file: ?format=csv (default) or json, with the same filters as GET /audit, up to 20000 rows. Owners, admins and people with audit access; the download is itself audited (audit.export) |
| GET | /api/v1/audit/anchor | S own | Latest signed audit-head anchor (M3) with the Ed25519 public key and rows_after_anchor. Owners, admins and people with audit access; agents get 403 |
| POST | /api/v1/audit/anchor | S own | R8-15: seal the log as it stands now. Signs the current chain head with the same anchor key (no new crypto), appends it to the anchor file and answers like the GET. Owners, admins and people with audit access; audited as audit.anchor |
| POST | /api/v1/log | S K (propose) | Append to a Space or Folder log.md {scope, entry} |
| GET | /api/v1/admin/backup | S own +U, T | Disaster-recovery archive (application/gzip): core.db via SQLite online backup, one git bundle per workspace, manifest.json with sha256s. No index, no MASTER_KEY. 1 per 5 min per instance (429 + Retry-After). Audited |
| GET | /api/v1/admin/backup/status | S own +U, T | Last backup at, bytes, sha256, and ok (a backup in the last 36 hours) for monitoring |
| GET | /api/v1/admin/bridges | S own, K (admin) | List bridges in the workspace. Config keys matching token, secret, password or key are redacted |
| GET | /api/v1/admin/bridges/credentials | S own, K (admin) | Which bridge source credentials (gdrive, notion) are configured for the workspace, stored or from env. Values are never returned |
| GET | /api/v1/admin/bridges/credentials/:provider | S own, K (admin) | Status of one provider credential (gdrive or notion): configured, source (stored|env), kind. Never the value |
| PUT | /api/v1/admin/bridges/credentials/:provider | S own, K (admin) | Store a source credential, sealed with AES-256-GCM under HKDF(MASTER_KEY, bridge-credentials, ws). gdrive: service account JSON or OAuth client + refresh token (drive.readonly only); notion: {token}. Write-only. Audited |
| DELETE | /api/v1/admin/bridges/credentials/:provider | S own, K (admin) | Delete the stored credential (env fallback, if set, applies again). Audited |
| POST | /api/v1/admin/bridges | S own, K (admin) | Create {name, type: folder|url|gdrive|notion, config, target_space, path_prefix?, interval_minutes? (60), sensitivity_ceiling? (internal), mode? apply|dry, enabled?}. folder needs config.path below BRIDGE_FOLDER_ROOTS; url needs config.urls[] (https, public addresses only). Audited |
| GET | /api/v1/admin/bridges/:id | S own, K (admin) | One bridge plus its last 20 runs (created, updated, unchanged, skipped, error) |
| PATCH | /api/v1/admin/bridges/:id | S own, K (admin) | Change {enabled, interval_minutes, mode, sensitivity_ceiling}. Audited |
| DELETE | /api/v1/admin/bridges/:id | S own, K (admin) | Delete a bridge and its run history. Nodes it imported stay. Audited |
| POST | /api/v1/admin/bridges/:id/run | S own, K (admin) | Run now, also when disabled. ?mode=dry|apply overrides the bridge mode for this run. 409 if already running. Audited |
| GET | /api/v1/admin/webhooks | S own, K (admin) | List outbound webhooks (URL query strings and secrets are never shown) and the supported event types |
| POST | /api/v1/admin/webhooks | S own, K (admin) | Register {name, url (https, public address only), events[]: node.written|node.deleted|proposal.created|proposal.resolved|thread.posted|import.completed, format? (json or slack), governance.refused|governance.held|governance.secret_caught|governance.access_requested|governance.lockdown|governance.recovery_used|governance.admin_changed events on Team and above, space? (* = all), max_sensitivity? (internal, never above your read ceiling), enabled?}. Returns the whsec_ signing secret once. Max 20 per workspace. Audited |
| GET | /api/v1/admin/webhooks/governance-email | S owner/admin | Read your personal governance email preference (off by default) |
| PUT | /api/v1/admin/webhooks/governance-email | S owner/admin | Set {enabled: boolean} for your own governance emails. Team and above to enable; turning off always works without step-up. At most one batch per person every five minutes |
| GET | /api/v1/admin/webhooks/:id | S own, K (admin) | One webhook plus its last 20 deliveries |
| GET | /api/v1/admin/webhooks/:id/deliveries | S own, K (admin) | Delivery log: event id and type, node id, status, attempts, response code, error. ?limit (50, max 200). Never the payload |
| PATCH | /api/v1/admin/webhooks/:id | S own, K (admin) | Change {enabled, events, space, url, max_sensitivity, format (json or slack)}. Re-enabling resets the failure count. Audited |
| DELETE | /api/v1/admin/webhooks/:id | S own, K (admin) | Delete a webhook and its delivery log. Audited |
| POST | /api/v1/admin/webhooks/:id/rotate | S own, K (admin) | Replace the signing secret; the new one is returned once. Audited |
| POST | /api/v1/admin/webhooks/:id/ping | S own, K (admin) | Queue a signed ping event (data: {}). 202. Audited |
| GET | /api/v1/admin/triggers | S, K | List triggers: a person sees every one, an agent key only the ones watching somewhere it can read |
| POST | /api/v1/admin/triggers | S (owner/admin) | Create a trigger {name, space, folder?, tag?, node_type?, on_event?: created|changed|any, action_kind: skill|notify|webhook, action_skill_slug? | action_notify_ids?[] | action_webhook_id?, debounce_minutes?}. Runs with the reads of the person who created it, never wider. Audited as trigger.fired on every attempt |
| GET | /api/v1/admin/triggers/:id/fires | S (owner/admin) | The last times one trigger fired (ok, debounced, loop_guard, rate_capped, error), each with its page and a plain reason |
| POST | /api/v1/admin/triggers/:id/pause | S (owner/admin) | Pause a trigger; it stops matching new pages until resumed |
| POST | /api/v1/admin/triggers/:id/resume | S (owner/admin) | Resume a paused trigger and clear its failure count |
| DELETE | /api/v1/admin/triggers/:id | S (owner/admin) | Remove a trigger; its fire history stays for the audit |
| GET | /api/v1/connections/apps | S own/admin | The four apps (gmail, gcal, slack, github) with their permission levels and whether the server has an OAuth client for them (else a hint to ask the admin) |
| GET | /api/v1/connections | S own/admin | Connections of the workspace: app, account label, status (active, paused, expired, idle, revoked), expiry. Never a token |
| GET | /api/v1/connections/calls | S own/admin | The activity: every app_call an agent made, Worked, Waiting for review, Denied (reason) or Failed, with the rung at call time, newest first. ?connection_id ?principal_id ?limit (100, max 500) ?before (id). Append-only |
| POST | /api/v1/connections/start | S own/admin +U | Begin connecting {app}. Returns the provider consent URL (PKCE for Google) with a single-use 10 minute state bound to this person. 409 app_not_enabled when the server has no client id for the app |
| GET | /api/v1/connections/callback | S | Where the provider sends the person back (?code&state). Exchanges the code, stores the sealed tokens, redirects to /connections?connected=<id>, or ?error=bad_state|app_not_enabled|provider_error |
| GET | /api/v1/connections/reviews | S own/admin | Pending Google actions with exact payload for review. Payloads are sealed at rest; agents and other workspaces cannot read this queue |
| POST | /api/v1/connections/reviews/:rid/decide | S own/admin +U | Approve or reject {accept: boolean}. Claims once before sending; rechecks current connection, agent, rung and cap. Failures are not retried automatically |
| POST | /api/v1/connections/:id/read | S own/admin or K with connection Read | Read Google data {action, params}: Gmail search/get, Calendar list/get. Missing and ungranted connections return identical 404 |
| POST | /api/v1/connections/:id/save | S own/admin or K with connection Read + vault write/propose | Save {id, space, cluster_path?} as a Restricted page through the vault scanner and trust rules |
| GET | /api/v1/connections/:id | S own/admin | One connection with its agent grants (rung, daily cap, used today). Never a token |
| PATCH | /api/v1/connections/:id | S own/admin | Kill switch {paused: true|false} or {extend_days: 1|7|30|365}. 409 connection_revoked once revoked. Audited |
| DELETE | /api/v1/connections/:id | S own/admin | Revoke for good: the sealed tokens are dropped, Google refresh tokens are revoked at Google, the activity stays. If Google is unavailable, local access still stops and the person is told to remove access in Google Account permissions. Audited |
| PUT | /api/v1/connections/:id/grants/:pid | S own/admin (+U for a write level) | Give an agent of this workspace a level on this connection {rung, daily_cap?, direct_allowed?}: gmail off|read|draft|send, gcal off|read|write, slack off|read|post, github off|read|write. Audited |
| DELETE | /api/v1/connections/:id/grants/:pid | S own/admin | Take the level away (off). Audited |
| GET | /api/v1/vault/items | S or K | Secrets: vault items you may know about, metadata only (name, type, project, purpose, owner, expiry, allowed destinations, can_use). Filters: type, project, owner, expiry (7, 30, expired, none), q. Never a value |
| POST | /api/v1/vault/items | S + step-up, Secret write on the project | New vault item {space, name, type: api_key|login|password|note, fields, purpose?, owner?, expires? (YYYY-MM-DD), allowed? [host/path], agents? [agent ids], auth? (bearer|basic|header:Name), notes?}. Each secret field is sealed on its own inside a Secret page (server-sealed: the server holds the key) |
| GET | /api/v1/vault/items/:id | S or K | One item: metadata, plain fields (username, url), secret fields as set only, used_in (pages that link [[vault:Name]] you can read), and for its managers the agents and how the key is sent |
| PATCH | /api/v1/vault/items/:id | S + step-up, Secret write | Change name, purpose, owner, expires, allowed, agents, auth, fields or notes. A new expiry re-arms the reminders; agents: [] stops credential_use at once |
| DELETE | /api/v1/vault/items/:id | S + step-up, Secret write | Archive the item page, turn agent use off and revoke open requests |
| POST | /api/v1/vault/items/:id/reveal | S + step-up, Secret read | Reveal {field, purpose?: copy} one field to a person. Cache-Control: no-store; audited as vault.reveal or vault.copy without the value |
| POST | /api/v1/vault/use | K named on the key | credential_use: {name|id, url, method?, headers?, body?}. Nexara makes the https call with the key added server-side; the url must be on the key allow-list (https, canonical host, no IP literal, no userinfo, path prefix, no redirects, every DNS answer public and the connection pinned). Returns {status, headers, body, value_removed} with any copy of the key replaced. Refusals are 403 destination_refused with a reason and audited |
| POST | /api/v1/vault/requests | K with read on the project | vault_request (exception path): {name|id, field?, reason}. Pending until a person approves; prefer /vault/use |
| POST | /api/v1/vault/requests/:id/collect | K (the requester) | Collect an approved request once within 15 minutes: the field value, then used; or pending, denied, expired |
| GET | /api/v1/vault/requests | S (item creator, owner or admin) | Recent vault_request asks for items you manage, with status |
| POST | /api/v1/vault/requests/:id/approve | S + step-up, Secret read | Approve one request: the agent may collect the value once within 15 minutes |
| POST | /api/v1/vault/requests/:id/deny | S + step-up | Deny one request |
| GET | /api/v1/vault/candidates/:id | S with read on the page | Move to Vault: what the credential scanner finds on a page (kind, a 4-character hint, length, line), never the text |
| POST | /api/v1/vault/move | S + step-up, write on the page and Secret write on the project | Move one finding {node_id, finding, name, type?, purpose?, owner?, expires?, allowed?, agents?} into a new vault item and replace it on the page with [[vault:Name]] |
| POST | /api/v1/devices/link | P | Laptop/phone connect: the nexara CLI or the Nexara Mobile app starts a device link {device, platform (laptop default, or mobile), code_challenge (PKCE S256), redirect_uri (loopback for laptop, nexara://callback for mobile), state, agents: [{tool, name}], folders}. Returns the approval URL the person opens. 10/min per IP; links live 10 minutes |
| GET | /api/v1/devices/link/:id | S | What the device asks for (platform, tools, repo folders for a laptop) plus the projects this person can offer. Unknown, expired or answered = 404 |
| POST | /api/v1/devices/link/:id/deny | S | Refuse the device; returns redirect_to with error=access_denied |
| POST | /api/v1/devices/link/:id/approve | S (Owner, Admin or Member) +U for trust direct | Approve in one step: {project: {id, name?, create?}, spaces, lock (Team or Restricted), trust, agents: [tool], folders}. Laptop: the PERSON creates the Laptop memory project and one folder per repo. Phone: no folders, one agent ("mobile"), plus a human session (G4) so Approvals/Ask act as the approver. One agent + key per tool (365 days). Returns redirect_to. An unknown key in the body is a 400 that names it (there are no grants here; the ceiling is lock). Guests 403 |
| POST | /api/v1/devices/exchange | P | {id, code, code_verifier}: the device collects its keys once (plus a session for a phone). A wrong code or verifier burns the link and revokes the keys (400 invalid_grant). 30/min per IP |
| POST | /api/v1/push/register | S human (phone session) | G4: register this phone’s raw FCM (Android) or APNs (iOS) device token {platform, token} for the signed-in person. Tagged with the phone’s own device agent so revoking it removes only this token |
| POST | /api/v1/push/unregister | S human (phone session) | G4: remove one of the caller’s own push tokens {token} |
| GET | /api/v1/skills | S K | Skills library: every one-click job, the installs running now (project, owner, state, plain-English schedule, next and last run, runs today) and the workspace runs today against the daily cap, plus ai_configured (false: Start and Run now answer 503 ai_not_configured and write nothing) |
| PATCH | /api/v1/skills/installs/:id | S K (write) | Change one install: project, folder, person, schedule, outputs or whether the thread is shared. Owner of the install or a workspace Owner only (403 skill_not_yours), and the project is re-checked against what its owner can read. Idempotent with request_id |
| POST | /api/v1/skills/installs/:id/pause | S K (write) | Pause one install; scheduled runs stop. Idempotent with request_id |
| POST | /api/v1/skills/installs/:id/resume | S K (write) | Resume one paused install; the next run is re-armed. Idempotent with request_id |
| POST | /api/v1/skills/installs/:id/run | S K (write) | Run one install now. Refusals (daily cap, per-minute limit, a project its owner can no longer read) are written to the run history with a plain-English reason. Idempotent with request_id |
| DELETE | /api/v1/skills/installs/:id | S K (write) | Stop and remove one install; its run history is kept for the audit. Idempotent with request_id |
| GET | /api/v1/skills/:slug | S K | One skill with its recent runs (status done, failed, refused or skipped with a plain-English reason, output page or proposal, tokens, whether Secret pages were skipped, whether the email went out) |
| POST | /api/v1/skills/:slug/start | S K (write) | Start a skill on a project: only what it needs (space, folder, person), a schedule {kind: daily, weekdays, weekly or monthly, day, hour, minute} in UTC, where day is the day of the month (1 to 28) a monthly schedule runs on (left out = the skill default, null = manual) and outputs {page, thread, email}. One install per skill, project and person: a second start on the same project is 409 skill_already_started, and a project the person cannot read is 404. Runs read as the person who started it; page output is proposed for review. Idempotent with request_id |
| POST | /api/v1/skills/:slug/pause | S K (write) | Pause your own install of this skill; scheduled runs stop. 409 skill_pick_install when you run it on more than one project. Idempotent with request_id |
| POST | /api/v1/skills/:slug/resume | S K (write) | Resume your own paused install of this skill; the next run is re-armed. Idempotent with request_id |
| POST | /api/v1/skills/:slug/run | S K (write) | Run your own install of this skill now. 422 skill_missing_requirements with the exact fix, 429 skill_run_cap at the daily cap; a run already in flight is returned instead of a second one. Idempotent with request_id |
| DELETE | /api/v1/skills/:slug | S K (write) | Stop and remove your own install of this skill; the run history is kept for the audit. Idempotent with request_id |
| GET | /api/v1/apps | S, K | Gallery of first-party apps shipped in the repo (apps/<id>/manifest.json), each flagged with whether this workspace already has it |
| GET | /api/v1/apps/installed | S (owner/admin) | Apps installed in this workspace, with who installed each one and its state (active, paused, removed) |
| POST | /api/v1/apps/:id/install | S (owner/admin, +U) | Install an app: creates its agent, grants and any triggers its manifest asks for, in one transaction. Grants never exceed the manifest or the installer's own reach. 409 when already installed, 422 app_unreachable when the installer cannot read anywhere it would work |
| GET | /api/v1/apps/installs/:id/activity | S (owner/admin) | Last runs and errors across every trigger this install created |
| POST | /api/v1/apps/installs/:id/pause | S (owner/admin) | Pause an app: its triggers stop firing; the agent and its grants stay |
| POST | /api/v1/apps/installs/:id/resume | S (owner/admin) | Resume a paused app |
| DELETE | /api/v1/apps/installs/:id | S (owner/admin) | Uninstall an app: removes its agent (and key), its grants and every trigger it created, in one transaction |
| POST | /api/v1/code-pins/hook/:id | W | Push webhook for one repo (GitHub: X-Hub-Signature-256 HMAC of the body; GitLab: X-Gitlab-Token). Unknown id and bad signature are the same 401. Reads only the changed file names in the payload (never fetches the repo), flags pages pinned to them Needs check, and always answers {ok: true}: never which pages, nor how many. 5 MB, 120/min per IP. See Decisions pinned to code |
| GET | /api/v1/code-pins/repos | S (owner/admin) | Repos sending push webhooks: url, provider, branch, hook_url, last event (time, status, commit) and pinned_pages (pages YOU can open that pin it). Never the secret |
| POST | /api/v1/code-pins/repos | S (owner/admin, +U) | Register a repo {url, provider: github|gitlab, branch?}: returns hook_url and the signing secret ONCE (stored sealed). 409 repo_exists |
| POST | /api/v1/code-pins/repos/:id/rotate | S (owner/admin, +U) | New signing secret, shown once; the old one stops working at once |
| DELETE | /api/v1/code-pins/repos/:id | S (owner/admin) | Stop accepting pushes from this repo (pins and flags stay) |
| POST | /api/v1/code-pins/check | S K | Check now {repo, range: a..b, changes: pasted git diff --name-status / --numstat / git diff, node_id?}: flags the pages pinned to what changed that you could edit or propose on; answers with those pages only |
| GET | /api/v1/code-pins/flags | S K | Pages you can open whose pinned code changed: id, title, path, lock, flags (sentence, commit, files, additions, deletions, source, at). On a Secret page the sentence names only the commit until you step up |
| POST | /api/v1/capture | C | Write-only capture: JSON {title, text, tags?, sensitivity?} or raw markdown (title from the first # heading). Writes <space>/<path_prefix>/<ulid>-<slug>.md with source: capture/<key name>, sensitivity = min(key, requested). Returns {id, path} only. Optional request_id (body) or Idempotency-Key (header): a replay returns the same {id, path} with Idempotency-Replayed: true and writes nothing, so a retry after a timeout cannot capture the note twice; same id, other args = 409 idempotency_conflict. 256 KB, 30/min per key |
| GET | /api/v1/admin/capture-keys | S own, K (admin) | List capture keys (never the token) |
| POST | /api/v1/admin/capture-keys | S own, K (admin) | Create a capture key {name, space, path_prefix (default inbox), sensitivity (default internal)}; the nxk_ token is shown once |
| DELETE | /api/v1/admin/capture-keys/:id | S own, K (admin) | Revoke a capture key (immediate) |
| GET | /api/v1/portal/:token | P | Client-portal branding: label, workspace name, accent colour, has_logo, requires_passcode. 410 link_ended (never what it showed) once expired or revoked; rate-limited per IP |
| GET | /api/v1/portal/:token/pages | P | List of pages this link may show (Open/Team only, within its scope); X-Portal-Passcode header required when the link has one, re-checked on every call |
| GET | /api/v1/portal/:token/pages/:id | P | One page, rendered and redacted to Team; a link to anything outside the shared set is left unresolved (plain text, client-side). Audited as portal.view with an IP hash, never the raw address |
| GET | /api/v1/portal/:token/logo | P | The link's uploaded logo image, if any. Cacheable; not sensitive |
| GET | /api/v1/client-links/:id/views | S own/admin | Per-link view log: time, page, and a hash of the viewer IP address (never the address itself) |
| DELETE | /api/v1/client-links/:id | S own/admin | Revoke a client link; it stops working on its very next request. Audited |
| POST | /api/v1/mail-in/:provider | W | Inbound-email webhook, provider resend or postmark (404 unless MAIL_IN_DOMAIN and that provider are configured). Resend: Svix signature, 5 minute window; Postmark: Basic auth secret. Each webhook id is accepted once. Recipients <token>@MAIL_IN_DOMAIN pick mail routes; each message becomes an email note (subject = title) under the route folder at the route sensitivity. Always {ok: true} once verified, never what was filed. 10 MB, 30/min per route, 10/min per sender (429 + Retry-After) |
| GET | /api/v1/admin/mail-routes | S own, K (admin) | Mail-in domain, configured providers and routes (never the address token) |
| POST | /api/v1/admin/mail-routes | S own, K (admin) | Create a mail route {name, space, path_prefix (default inbox/mail), sensitivity (default internal), allowed_senders?}; the secret address is shown once and is the credential. allowed_senders matches the forgeable From header: a convenience filter, not access control. 409 when MAIL_IN_DOMAIN is unset |
| DELETE | /api/v1/admin/mail-routes/:id | S own, K (admin) | Revoke a mail route (immediate; later mail to it is dropped) |
| POST | /api/v1/billing/webhook | W | Stripe webhook, authenticated by the Stripe-Signature header only (5 minute window). Idempotent per event id (billing_events). The only thing that moves a workspace onto a paid plan |
| GET | /api/v1/billing | S K | Plan, billing state, read-only flag, usage against the plan limits, deletion date when read-only. Never Stripe ids |
| POST | /api/v1/billing/checkout | S own | Stripe Checkout URL for Team ({interval: monthly|annual}); owner only; seats = owners + admins + editors, minimum 1. 503 billing_not_configured without Stripe keys |
| POST | /api/v1/billing/portal | S own | Stripe Customer Portal URL (card, seats, invoices, cancel). 409 no_billing_account before the first checkout |