Nexara Connect docs0.1.0

REST API

Base URL: https://app.nexara.ac. JSON in and out. Errors look like {"error":{"code","message"},"code"}; step-up gates return 403 with code step_up_required.

Auth column

CodeMeaning
PPublic, no credentials
SWeb session cookie. Unsafe methods also need X-CSRF-Token echoed from the nxc_csrf cookie. Workspace from X-Nexara-Workspace, ?workspace= or the session default
KAgent key: Authorization: Bearer nxc_...
OOAuth access token, MCP only (/api/v1 refuses it with 401): Authorization: Bearer nxa_...
GGit token nxg_... as the HTTP Basic password. Refused everywhere except /git
+UStep-up within the last 5 minutes (POST /api/auth/stepup). Agents can never satisfy it
TAuthorization: Bearer <BACKUP_TOKEN>. Only on /api/v1/admin/backup*, refused everywhere else; disabled when BACKUP_TOKEN is unset
CCapture key: Authorization: Bearer nxk_.... Only on POST /api/v1/capture, refused (401) everywhere else, including /mcp and /git
WInbound-email provider webhook: no bearer token; the provider signature (Resend) or Basic secret (Postmark) is verified, then the secret address token in each recipient picks the route
APlatform admin (operator console): a web session of an account listed in PLATFORM_ADMINS that also has platform_role admin, signed in with password and authenticator. Everyone else gets 404. Writes need X-CSRF-Token
ownWorkspace owner or admin (an admin does everything the owner does except billing, deleting the workspace and changing the owner; billing routes and changing the owner stay owner-only). (read), (write) etc. name the grant action checked for agents

Rate limits: 120 requests/min per principal on /api/v1 (burst 30), bundle 30/min, import 5/hour, capture 30/min per key, mail-in 30/min per route and 10/min per sender, login and sign-up 5/min per IP, git 60/min per IP.

Health

MethodPathAuthWhat it does
GET/healthzPLiveness: version, node count, indexed_at
GET/readyzPReadiness: DB check, version, git_sha, embeddings status

Auth and sessions

MethodPathAuthWhat it does
POST/api/auth/loginPEmail + password. Returns totp_required or totp_enroll_required when applicable
POST/api/auth/totp/verifyS (pending)Second factor after password
POST/api/auth/totp/enrollS +UWithout code: returns the otpauth URI, the backup codes and how many are left; needs a step-up or the password in the body, so a stolen session cannot bind an authenticator. With code: confirms and enables TOTP. A restarted enrolment keeps the codes already issued and returns none
POST/api/auth/totp/backup-codesS +UNew backup codes, shown once; the whole previous set stops working in the same transaction
POST/api/auth/totp/replaceS +UMove to a new authenticator. Without code: a candidate secret and its otpauth URI, leaving the live authenticator and the current codes working. With a code from the NEW app: swaps the secret and re-issues the backup codes together, and the old secret stops working. Every other session is signed out (this one is kept), audit row totp.reenrol, security email. A wrong code is audited (totp.code_refused) and rate-limited
POST/api/auth/totp/disableS +UTurn two-factor off: the secret, any half-finished move and the backup codes go together. Refused (totp_required_role) for Owners and Admins while REQUIRE_TOTP is on
POST/api/auth/totp/codes-savedSRECA3 item 4: the person confirms they saved the backup codes they hold now, which is what makes the tick box on the one-time display mean anything. No step-up on purpose. Cleared again whenever a new set is issued
POST/api/auth/stepupSStep-up for 5 min (TOTP code or an unused backup code, which is spent; password when TOTP is not enrolled). Wrong codes are audited and rate-limited. Step-up and every /api/auth/totp/* route answer 403 people_only to a Bearer key
GET/api/auth/meSCurrent user, workspaces, current workspace
POST/api/auth/logoutSEnd session, clear cookies
GET/api/auth/sessionsSList your active sessions
DELETE/api/auth/sessions/:idSRevoke one of your sessions
GET/loginPHTML sign-in form (OAuth consent fallback)
POST/loginPHTML sign-in form post
POST/login/totpS (pending)HTML TOTP form post
GET/invite/:tokenPInvite landing page (HTML)
POST/invite/:tokenSAccept invite (HTML form, CSRF)
GET/api/v1/auth/configPSign-up mode (SIGNUPS), proof-of-work bits, trial and waitlist days
GET/api/v1/auth/challengePSigned proof-of-work challenge (10 min, single use) for sign-up and forgot-password
POST/api/v1/auth/signupPSign up. With waitlist_token (nxw_) or invite (nxi_): account now (201, signed in; waitlist invite = Team free 90 days). Otherwise by SIGNUPS: open = 202 and an emailed link + 6-digit code (nothing exists until verified; 90-day trial), waitlist = 202 joins the waitlist, invite = 403. Proof of work, honeypot, 5/h per IP
POST/auth/signupPAlias of /api/v1/auth/signup
POST/api/auth/signupPAlias of /api/v1/auth/signup
POST/api/v1/auth/verifyPConfirm a pending sign-up with {token} or {email, code} (5 tries per code); creates the account + trial workspace and signs in (201)
POST/api/v1/auth/verify/resendPNew verification link + code for a pending sign-up. Always 202; 3 emails/h per address
POST/api/v1/auth/password/forgotPEmail a single-use reset link (30 min) when the account exists. Always 202. Proof of work
POST/api/v1/auth/password/resetPSet a new password with the reset token; signs out every session and clears lockouts
GET/api/v1/auth/waitlist-invite/:tokenPEmail, name and offer behind a waitlist invite (sign-up form prefill); 410 when used or expired
POST/api/platform/waitlist/inviteA +UInvite many {ids} at once; returns invited and skipped
POST/api/platform/waitlist/:id/inviteA +UEmail a one-time sign-up link (/signup?waitlist=..., 14 days) with 3 months of Team free. Re-inviting replaces the link

Identity and workspaces

MethodPathAuthWhat it does
POST/api/v1/invites/:token/acceptSAccept invite (JSON, X-CSRF-Token)
GET/api/v1/meS KWho you are (humans: email, role, totp; agents: grants)
PATCH/api/v1/meSChange display name
GET/api/v1/workspacesS KWorkspaces you belong to (with members_add_agents)
POST/api/v1/workspacesSCreate a workspace (humans only)
GET/api/v1/membersSMembers of the current workspace. 404 for a Guest; emails only for owners and admins
GET/api/v1/workspaces/:ws/membersSMembers of workspace :ws
PATCH/api/v1/members/:idS ownChange a member role, spaces (R4: per-project access; null = every project) and/or can_audit. Can read the audit log for the projects this person can open
PATCH/api/v1/workspaces/:ws/members/:idS ownChange a member role, spaces or can_audit in :ws. Can read the audit log for the projects this person can open
DELETE/api/v1/members/:idS ownRemove a member (or leave, for yourself). Returns {ok, removed: {id, name, email?}} -- the email only for a caller who already sees emails (Owner/Admin) or who is leaving. The member.* audit rows name the person too (target_name, resolved on read)
DELETE/api/v1/workspaces/:ws/members/:idS ownRemove a member from :ws
GET/api/v1/invitesS ownList invites
GET/api/v1/workspaces/:ws/invitesS ownList invites of :ws
POST/api/v1/invitesS ownCreate an invite, email the accept link to the invitee; returns accept_url and email_sent. Fields: email, role, days, spaces, can_audit (R8-09: audit access, Owner/Admin only, honoured when the invite is accepted); any other key is a 400. spaces takes project ids or names; a Guest invite must name at least one project (400 "Pick at least one project for a Guest.")
POST/api/v1/workspaces/:ws/invitesS ownCreate an invite in :ws
POST/api/v1/invites/:id/resendS ownR4: fresh one-time link for a pending invite; emails it again unless {email:false} (Copy link)
POST/api/v1/workspaces/:ws/invites/:id/resendS ownFresh link / re-send for a pending invite in :ws
DELETE/api/v1/invites/:idS ownRevoke an invite
DELETE/api/v1/workspaces/:ws/invites/:idS ownRevoke an invite in :ws
POST/api/v1/workspaces/:ws/transferS founder +UTransfer ownership: the founding Owner hands the workspace to another member (who becomes Owner and founder); audited workspace.transfer
POST/api/v1/workspaces/:ws/lockdownS own +UKill switch: bump token epoch, mark every key revoked (revoked_reason: lockdown), drop other sessions, take every agent off every vault key and revoke open vault requests
POST/api/v1/me/emailS +UAR-06: change your email address. Step-up required. Always answers 202 with the same body, whether the address is free or somebody else already holds it (no account enumeration). The confirmation link goes to the NEW address and a stop link to the OLD one; both open a confirmation page at /confirm/<token> and act only on its POST
GET/api/v1/memory/settingsS K{autolink_people}: whether people are linked directly on save (otherwise mentions are only suggested)
PUT/api/v1/memory/settingsS own{autolink_people: boolean}
POST/api/v1/nodes/:id/threads/messagesS K (collab)Alias of POST /threads
GET/api/v1/proposals/:id/mergeS KA "possible duplicate" merge proposal side by side: survivor and other (each redacted to you), the proposed merged text, cross_project, score, source (write or sweep) and ai (confirmed when the model was asked). 404 unless you can read BOTH pages
GET/api/v1/memory-importsS (owner/admin/member)Batches an agent brought with MCP memory_import ("Bring my memory over"): source, page count, open count, status, agent. Guests get 403
GET/api/v1/memory-imports/:idS (owner/admin/member)One batch: every page (group, title, lock, create or update, status, its target project, content at your ceiling), the projects the batch files into (one per company, with page counts and whether each exists yet), and can_decide. Unknown or not yours to review: 404
POST/api/v1/memory-imports/:id/decideS (editor+)Accept or reject in one place: {accept: "all" | [ids], reject: "all" | [ids], note?, edits?: {id: edited content}, project?}. project re-files the whole batch first (an existing project id or name, or a new project's name); any other field is a 400. Accepting creates a project that is not there yet (owner or admin, else 403 memory_project_needed) and the group folders as you, then lands each page like an accepted proposal. Returns accepted, rejected, failed, open, status
GET/api/v1/ask/members/limitsS (owner or admin)Each member's daily Ask limit on the server's AI key (questions_per_day, credits_per_day, custom) and what they used today; defaults is the plan limit (40 questions, 150 credits)
PUT/api/v1/ask/members/:id/limitS (owner or admin)Lower one member's daily Ask limit {questions_per_day, credits_per_day}. Whole numbers from 0 up to the plan limit only; anything above it is refused with 400 and changes nothing
DELETE/api/v1/ask/members/:id/limitS (owner or admin)Put one member back on the plan's daily Ask limit
POST/api/v1/ask/threads/:id/messagesSAsk {content}. Retrieval runs as you (your locks apply; Secret only with step-up plus the workspace setting). Answers stream on the thread's live route. Asking while an answer runs stops it and steers
POST/api/v1/ask/threads/:id/messages/:mid/saveSSave an answer as a page {project, cluster_path?, title?} through the normal create path; the page takes the highest lock of its cited pages
GET/api/v1/whoamiS KIdentity, workspace, role, via, grants
GET/api/v1/meetings/stt-statusS KWhether speech-to-text is set up on this server (an AI_PROVIDER=openai key), so the Record button can offer the upload path instead when it is not
POST/api/v1/meetingsS K (write)File a meeting: upload or paste a transcript (.vtt, .srt, .txt or .docx; multipart field "file", or JSON {space, title, raw, filename, email_me}). Lands in the project's Meetings folder at Restricted; sections fill in automatically through Ask. People only, 403 for an agent key
POST/api/v1/meetings/recordingsS K (write)Start a browser recording session {space, title, mime, email_me}; 503 stt_not_configured when no speech-to-text provider is set up. People only
POST/api/v1/meetings/recordings/:id/chunksS K (write)Append one MediaRecorder chunk (multipart field "chunk") to a recording session; 404 for a session that is not yours
POST/api/v1/meetings/recordings/:id/finishS K (write)Stop a recording: transcribe it and file it exactly like an uploaded transcript, {keep_audio}. The audio is always deleted afterwards unless keep_audio is true, in which case it becomes a real file next to the page

Spaces and folders

MethodPathAuthWhat it does
GET/api/v1/spacesS KSpaces you can see
POST/api/v1/spacesS K (admin)Create a Space ({id, name}). A project has no sensitivity of its own, so an unknown key (sensitivity among them) is a 400 pointing at PUT /spaces/:id/lock
GET/api/v1/spaces/treesS KEvery readable project and its folder tree in one request (ETag; 304 while unchanged). ?include_archived
GET/api/v1/spaces/:s/treeS KFolder tree with summaries. ?path, ?depth, ?include_archived
GET/api/v1/spaces/:s/lock/previewS (owner/admin)What setting a folder lock would do (?cluster_path=&lock=): raised, lowered, kept counts and loses_access (people and agents by name, with page counts). Nothing is written
PUT/api/v1/spaces/:s/lockS (owner/admin)Set a folder lock {cluster_path, lock} (null clears). Raising rewrites looser pages below in one commit; lowering is Owner/Admin only with step-up and lowers the pages the folder raised (lowered), pages locked on their own keep it (kept)
POST/api/v1/clusters/*S K (write)POST /clusters/<space>/<folder>/archive (humans +U) or /restore
PUT/api/v1/clusters/*S K (admin)PUT /clusters/<space>/<folder>/lifecycle {auto_archive_days, half_life_days}
DELETE/api/v1/clusters/*S (write)R4: DELETE /clusters/<space>/<folder> removes an empty folder (409 folder_not_empty); people only
GET/api/v1/principals/:id/preview/spaces/treesS (creator/owner)Reach plus every shared project tree as the agent sees them, in one request
GET/api/v1/principals/:id/preview/spaces/:s/treeS (creator/owner)The project tree exactly as the agent sees it
GET/api/v1/spaces/:s/access-reviewS ownThe access review for one project: who can reach it and through what, temporary Secret grants with approver, expiry and uses, what was revoked, and the reads of the window (?days, default 90). ?format=json (default) or csv. Owners, admins and people with audit access; audited as access.review. R8-13: a plain read uses the ordinary read limit; only ?format=csv counts against the export limit
POST/api/v1/spaces/:s/client-linksS own/admin +UCreate a read-only client-link token (nxp_, shown once) into one project {label, scope_mode: project|folders, scope_paths?, expires?: 7d|30d|90d|YYYY-MM-DD (default 30d), passcode?, accent_color?, logo_mime?, logo_data_base64?}. Response adds visible_pages and excluded_pages (by lock level), and lock_matches {note, pages} when Team pages it shows look like a Restricted or Secret page. Shows Open/Team pages only, whatever is chosen. Audited
GET/api/v1/spaces/:s/client-linksS own/adminList client links for a project with their view counts and lock_matches (never the token or passcode)
POST/api/v1/spaces/:s/client-links/lock-matchesS own/adminAnswer a link's lock_matches note {action: exclude|keep, page_ids}: exclude locks those pages at Restricted (no client link shows them); keep leaves them. Either choice is audited

Pages (nodes)

MethodPathAuthWhat it does
GET/api/v1/nodes/:id/lock/previewS KWho would lose access if this page were set to ?lock= (loses_access, by name)
POST/api/v1/nodesS K (write)Create a page ({path, content} or {space, cluster_path, title, body, frontmatter}). Returns ETag and receipt {id, revision, request_id}. request_id (body) or Idempotency-Key (header): a replay returns the same body with Idempotency-Replayed: true; same id, other args = 409 idempotency_conflict
GET/api/v1/nodes/:idS K (read)Page by id or path, redacted to your ceiling. ?format=md, ?at=<sha>, ?section. Counts as a read
PUT/api/v1/nodes/:idS K (write)Replace. If-Match or base_sha: clean merge lands, conflict returns 409 + proposal. expected_revision (commit sha or hash): stale = 409 stale_revision with current_revision and diff, nothing written. request_id as on POST; returns receipt
PATCH/api/v1/nodes/:idS K (write)Partial update, same conflict rules
DELETE/api/v1/nodes/:idS +U, K (admin)Delete (a commit; history keeps it)
POST/api/v1/nodes/:id/moveS K (write)Move; a wider audience needs step-up (agents: becomes a proposal)
GET/api/v1/nodes/:id/historyS K (read)Versions (commits)
GET/api/v1/nodes/:id/diffS K (owner-level read)?from=<sha>&to=<sha>. Raw content, so secret-level read is required
POST/api/v1/nodes/:id/filesS K (write)Add an image or file next to the page (multipart file, up to 10 MB). On a Secret page the caller must be a person with a fresh step-up, the bytes are sealed and the name is replaced by secret-<id>.<ext>. Returns the path and the markdown to insert
GET/api/v1/nodes/:id/backlinksS K (read)Pages linking here
GET/api/v1/nodes/:id/relatedS K (read)Links, backlinks, folder neighbours, shared tags
GET/api/v1/nodes/:id/factsS K (read)The page's facts (active; ?include_expired=true adds struck rows). Rows above your lock are absent
POST/api/v1/nodes/:id/factsS K (write, else proposal)Remember: {fact, source (or provenance), replaces?, lock?, when?}. The reply has state active, id = the new fact_id, node_id for the page, and unchanged: true when the same text was already there (200 instead of 201); an agent on Suggest gets 202 proposed with a queued receipt; request_id or Idempotency-Key replays the receipt
GET/api/v1/nodes/:id/link-suggestionsS K (read)Entity mentions (people, companies, projects, deals you can read) not linked yet. No model involved
POST/api/v1/nodes/:id/linkS K (write, else proposal){entity_id}: turn the first mention into a [[link]]
POST/api/v1/nodes/:id/archiveS K (write, else proposal)Archive with reason closed|stale|superseded|manual; replaced_by (page id) marks it Obsolete with a replacement, note is the reason in your words
POST/api/v1/nodes/:id/restoreS K (write)Return to active (un-archive)
POST/api/v1/nodes/:id/stateS K (write, else proposal)Page state {status: needs_check|current, reason?, review_by? (YYYY-MM-DD)}: Needs check, or Still current (clears the state and the changed-dependency flags)
PUT/api/v1/nodes/:id/pinsS K (write, else proposal)Code pins {pins: [{repo, path, lines?, commit?}]}: replaces the list (empty removes it); a folder path ends with /. See Decisions pinned to code
POST/api/v1/nodes/:id/undoS K (write)Undo one change {sha} (or {commit_sha} from history) as a new commit (409 undo_conflict if those lines changed since)
POST/api/v1/nodes/:id/rollbackS K (write)Restore the page as it was at {sha}, as a new commit
GET/api/v1/principals/:id/preview/nodes/:nidS (creator/owner)A page exactly as the agent gets it (redacted; 404 if it cannot see it)
GET/api/v1/nodes/:id/presenceS KWho is on this page now or was recently (viewing, editing, reading, edited)
POST/api/v1/nodes/:id/presenceSHeartbeat {state}: viewing, editing or left
GET/api/v1/nodes/:id/touchedS KWho changed which body lines in the last hours (default 24); withheld when your view is redacted
GET/api/v1/nodes/:id/liveS KServer-sent events for this page: hello, presence, commit (ids, names and line counts; never text)
GET/api/v1/nodes/:id/accessS (owner)Who can see this page: every member and agent with read/suggest/edit, clearance, reason, reads this week

Threads and inbox

MethodPathAuthWhat it does
GET/api/v1/nodes/:id/threadsS K (read)Thread messages on a page
POST/api/v1/nodes/:id/threadsS K (collab)Post {body, kind, reply_to, mentions}
POST/api/v1/nodes/:id/threads/readS KMark the thread read
POST/api/v1/nodes/:id/threads/unlockS (editor+)Unlock a thread locked by the loop breaker
GET/api/v1/inboxS KYour events. ?state=unread|read|done|all, ?after, ?limit, ?wait<=25 (long-poll)
POST/api/v1/inbox/ackS KMark done {up_to} or {seqs}
GET/api/v1/ask/threadsSYour Ask threads plus the ones shared with the team, with unread counts and who started each
POST/api/v1/ask/threadsSStart a thread {title?, shared?, model?, content?}. With content the thread starts with that first question, so no empty thread is made; an untitled empty thread is reused, not repeated. Refused 503 ai_not_configured when the workspace has no AI
GET/api/v1/ask/threads/:idSA thread and its messages, re-checked for you: an answer that cites a page you cannot read shows only "N cited pages hidden for you". Each answer carries grounding: ok, unverified (with the unverified paths and figures its pages do not have, and a warning to show) or none (nothing was searched or read). Marks it read
PATCH/api/v1/ask/threads/:idS (starter/owner)Rename, share with the team or pin a model {title?, shared?, model?}
DELETE/api/v1/ask/threads/:idS (starter/owner)Delete a thread
POST/api/v1/ask/threads/:id/stopSStop the running answer
GET/api/v1/ask/threads/:id/liveSServer-sent events for a thread: steps ("searched", "read") and answer text, forwarded only while you can read every page the model has read

Retrieval

MethodPathAuthWhat it does
GET/api/v1/searchS K (search)?q, space, cluster, tags, mode=hybrid|fts|vector, limit, include_archived. Returns {results, hidden}: hidden counts matching pages a lock kept out (Secret before step-up, above an agent clearance), never named. Each hit carries evidence: keyword_exact | semantic | both
POST/api/v1/bundleS K (read){intent, budget_tokens, scope, include_links, include_archived}. Accept: text/markdown for raw markdown. 30/min
GET/api/v1/bundleS K (read)Same as POST, parameters in the query string

Proposals

MethodPathAuthWhat it does
GET/api/v1/proposalsS KList proposals. ?status=open|accepted|rejected|superseded. Pages with ?limit and either ?offset or ?after=<proposal id>, a keyset cursor (follow next_after); the cursor is the one to use for a sweep, because a proposal somebody else decides cannot move it
POST/api/v1/proposalsS K (propose)Create {path or node_id, content, reason, request_id?}. Agents receive 202 with a queued receipt, replayed for the same request_id
POST/api/v1/proposals/bulkSAccept or reject several proposals {ids, action}
GET/api/v1/proposals/:idS KOne proposal (full content only for humans)
POST/api/v1/proposals/:id/acceptS (editor+)Accept, optionally with edited content; path files a new page elsewhere, replace (page id) lands it onto the page already at that path. Returns landed: applied, merged or already_on_page
POST/api/v1/proposals/:id/undo-mergeS (editor+)Undo an accepted merge in one step: both pages go back exactly as they were (the duplicate active again) and re-pointed links are put back, as a new commit. 409 undo_conflict once either page changed after the merge. Needs write on both pages
POST/api/v1/proposals/:id/rejectS (editor+)Reject {reason}

Agents, grants and tokens

MethodPathAuthWhat it does
GET/api/v1/principalsS KHumans and agents in the workspace (agents see id, name, kind only; a Guest sees people by name only; emails only for owners and admins)
POST/api/v1/principalsS, +U for secretCreate an agent {name, grants, ceiling, trust?}. When grants is present it must be a non-empty array; omit it for the default workspace-wide grant. A secret grant needs a fresh step-up and is stored clamped to the standing ceiling (confidential). Direct (default when grants include write) needs a fresh step-up; otherwise the agent starts on Suggest and the reply carries trust_note
GET/api/v1/principals/:idS KOne agent (404 for a Guest)
DELETE/api/v1/principals/:idS (creator or owner)Delete an agent
GET/api/v1/principals/:id/grantsS KAgent grants
PUT/api/v1/principals/:id/grantsS (creator or owner), +U for secret or a wider project scopeReplace grants. grants is required and must be an array; [] removes all access. Never above your own role ceiling. A step-up is needed to reach secret, and to widen the project scope (a project it did not have, or "*")
GET/api/v1/principals/:id/previewS (creator/owner)What the agent reaches: pages it sees, hidden above clearance / not shared, per project
POST/api/v1/principals/previewSWhat proposed grants {grants} would reach (connect wizard). grants must be a non-empty array, same rule as create
PUT/api/v1/principals/:id/trustS (creator/owner)Trust level {trust}: suggest, autopilot or direct (direct needs step-up)
POST/api/v1/principals/:id/resumeS (creator or owner)Un-pause an agent after undo-all or the breaker, like the Resume button: keeps its trust level, or {trust} to set one; resuming on Direct needs step-up. The agent gets agent.resumed in its inbox
GET/api/v1/principals/:id/tokensS (creator or owner)Agent keys (hints only); dead keys carry revoked_at and revoked_reason (revoked or lockdown)
POST/api/v1/principals/:id/tokensS (creator or owner)Mint an nxc_ key (secret shown once) {name, expires_in_days, ip_pin, ceiling}
DELETE/api/v1/principals/:id/tokens/:tidS (creator or owner)Revoke a key (immediate)
POST/api/v1/me/git-tokensS +UMint your own nxg_ git token (default 365 days)
GET/api/v1/me/git-tokensSYour own live git tokens: id, label, created_at, last_used_at. Never the secret, its hash or its first characters
DELETE/api/v1/me/git-tokens/:idSRevoke one of your own git tokens. Immediate: the next clone or push with it is refused. Audited. Someone else's token id is not found
POST/api/v1/elevationsS own +UTime-boxed elevation for an agent (the only way to reach secret)
GET/api/v1/principals/:id/accessS (creator or owner)The agent page Secret access card: pending access requests (code only for owner/admin), active grants with expires_at/uses_left, every audited Secret read
POST/api/v1/elevations/:id/revokeS (creator or owner)Revoke now: end an active Secret grant immediately

Operations

MethodPathAuthWhat it does
GET/robots.txtPCrawler rules for the app host
GET/sitemap.xmlPAnswers 404: the private app has no sitemap
POST/api/v1/waitlistPJoin 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/recoverPAR-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/statusPAR-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/completePAR-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/:tokenPRECA3: 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/:tokenPRECA3: does what the page said, behind a double-submit cookie token. Single use
GET/api/v1/onboardingS (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/dismissSHide the checklist for you in this workspace
GET/api/v1/settings/agentsS ownThe "Members may connect agents" setting (members_add_agents, default true) and member_agents, how many agents Members added
PUT/api/v1/settings/agentsS own +USet {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-visibilityS ownThe "What agents can see of other members and agents" setting: all (default), people or shared
PUT/api/v1/settings/agent-visibilityS own +USet {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-screenS ownWhat 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-screenS own +USet {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-writesS ownOpen 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/releaseS ownRelease 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/rejectS ownReject a held write with an optional {reason}. 404 when the id is not an open held write
GET/api/v1/settings/consolidationS ownDuplicate pages: {on, sweep, sweep_max, ai_calls_per_day, ai_calls_today, last_sweep_at}. Off by default
PUT/api/v1/settings/consolidationS own +UTurn "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/successionS (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/standbyS +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/successionS (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/cancelS (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/completeS (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-keyS (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-keyS +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/recoveryS (owner/admin)AR-04: the newest recovery nobody has acknowledged, for the banner, or null
POST/api/v1/recovery/:id/cancelS (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/acknowledgeS (owner/admin)AR-04: clear the recovery banner for this workspace
GET/api/v1/views/graphS KLinks 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/timelineS KWhat 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/savedSSaved 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/savedSSave 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/:idSRename 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/:idSDelete a saved view (yours, or a shared one if you are an Owner or Admin). Audited (view.delete)
GET/api/v1/erasuresS (owner/admin)Erasure requests (only when the server runs with ERASURE=on; otherwise 404): status, page count, titles you can open
POST/api/v1/erasuresS +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/:idS (owner/admin)One erasure request
GET/api/v1/erasures/:id/receiptS (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/approveS +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/cancelS (owner/admin)Cancel an erasure that has not run
GET/api/v1/holdsS (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/holdsS +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/:idS +U (owner/admin)Release a legal hold (optional note); the release is a commit and an audit row
GET/api/v1/storageS (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/forgetS 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_idS 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/factsS K (read)Recall: ?q=&entity=&space=&limit=&include_expired=. Facts you may read, active first
GET/api/v1/entitiesS K (read)People / Companies views: ?type=person|company|project|deal&space=. Pages with that frontmatter type, their aliases and fact counts
GET/api/v1/tidyS KTidy memory suggestions you can read, grouped: unused (90 days), duplicate, replaced, check_due, changed_dependency; can_act per page
GET/api/v1/libraryS KMemory by kind (people, companies, projects, decisions, preferences, how we work, imported chats, other) with counts, plus topic clusters that span folders
GET/api/v1/tasksS KTasks you can see. ?mine=1, ?open=1 (unassigned), ?node, ?state=all|submitted|working|...
GET/api/v1/tasks/:idS KOne task with its history
POST/api/v1/tasksS KAssign {node, title, body?, assignee?, due?} (assign grant; no assignee = open queue)
POST/api/v1/tasks/:id/:actionS Kaccept, reject, heartbeat, need_input, complete {note, result_ref}, fail, cancel, reassign {to, note}, release {note}, claim
POST/api/v1/handoffS KHandoff note {scope, summary, done?, decisions?, next?, task_id?, to?} into <scope>/handoff.md
GET/api/v1/lifecycle/candidatesS KAuto-archive candidates, mode, next run, last digest
GET/api/v1/archivedS KArchived pages you can read, newest first (Unarchive with POST /nodes/:id/restore)
POST/api/v1/lifecycle/runS own (+U for apply)Run the lifecycle job now {mode: dry|apply}
GET/api/v1/whereS KWhere 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/failuresS (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/liveSServer-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/configSAsk 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/configS (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/keyS (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/keyS (owner, step-up)Remove the workspace's own AI key; Ask falls back to the server's key, if any
GET/api/v1/changesS KApplied feed: agent changes that landed without review (principal_id, since, unreviewed)
GET/api/v1/changes/summaryS KNeeds you / applied today / unreviewed counts, per agent
POST/api/v1/changes/reviewSMark reviewed {ids} or {principal_id, since}
POST/api/v1/changes/undo-allSUndo 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/previewSWhat undo-all would revert and keep (and why); changes nothing
POST/api/v1/access-requests/:id/approveS 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/denyS ownTurn down a Secret access request; the agent is told in its inbox
POST/api/v1/importS K (write)Zip upload (multipart field file + space), raw application/zip, or JSON {space, files[]}. 50 MB, 5/hour
POST/api/v1/import/aiS (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/auditS ownHash-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/insightsS ownWorkspace 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/exportS ownThe 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/anchorS ownLatest 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/anchorS ownR8-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/logS K (propose)Append to a Space or Folder log.md {scope, entry}
GET/api/v1/admin/backupS own +U, TDisaster-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/statusS own +U, TLast backup at, bytes, sha256, and ok (a backup in the last 36 hours) for monitoring
GET/api/v1/admin/bridgesS own, K (admin)List bridges in the workspace. Config keys matching token, secret, password or key are redacted
GET/api/v1/admin/bridges/credentialsS 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/:providerS 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/:providerS 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/:providerS own, K (admin)Delete the stored credential (env fallback, if set, applies again). Audited
POST/api/v1/admin/bridgesS 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/:idS own, K (admin)One bridge plus its last 20 runs (created, updated, unchanged, skipped, error)
PATCH/api/v1/admin/bridges/:idS own, K (admin)Change {enabled, interval_minutes, mode, sensitivity_ceiling}. Audited
DELETE/api/v1/admin/bridges/:idS own, K (admin)Delete a bridge and its run history. Nodes it imported stay. Audited
POST/api/v1/admin/bridges/:id/runS 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/webhooksS own, K (admin)List outbound webhooks (URL query strings and secrets are never shown) and the supported event types
POST/api/v1/admin/webhooksS 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-emailS owner/adminRead your personal governance email preference (off by default)
PUT/api/v1/admin/webhooks/governance-emailS owner/adminSet {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/:idS own, K (admin)One webhook plus its last 20 deliveries
GET/api/v1/admin/webhooks/:id/deliveriesS 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/:idS 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/:idS own, K (admin)Delete a webhook and its delivery log. Audited
POST/api/v1/admin/webhooks/:id/rotateS own, K (admin)Replace the signing secret; the new one is returned once. Audited
POST/api/v1/admin/webhooks/:id/pingS own, K (admin)Queue a signed ping event (data: {}). 202. Audited
GET/api/v1/admin/triggersS, KList triggers: a person sees every one, an agent key only the ones watching somewhere it can read
POST/api/v1/admin/triggersS (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/firesS (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/pauseS (owner/admin)Pause a trigger; it stops matching new pages until resumed
POST/api/v1/admin/triggers/:id/resumeS (owner/admin)Resume a paused trigger and clear its failure count
DELETE/api/v1/admin/triggers/:idS (owner/admin)Remove a trigger; its fire history stays for the audit
GET/api/v1/connections/appsS own/adminThe 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/connectionsS own/adminConnections of the workspace: app, account label, status (active, paused, expired, idle, revoked), expiry. Never a token
GET/api/v1/connections/callsS own/adminThe 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/startS own/admin +UBegin 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/callbackSWhere 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/reviewsS own/adminPending 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/decideS own/admin +UApprove 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/readS own/admin or K with connection ReadRead Google data {action, params}: Gmail search/get, Calendar list/get. Missing and ungranted connections return identical 404
POST/api/v1/connections/:id/saveS own/admin or K with connection Read + vault write/proposeSave {id, space, cluster_path?} as a Restricted page through the vault scanner and trust rules
GET/api/v1/connections/:idS own/adminOne connection with its agent grants (rung, daily cap, used today). Never a token
PATCH/api/v1/connections/:idS own/adminKill switch {paused: true|false} or {extend_days: 1|7|30|365}. 409 connection_revoked once revoked. Audited
DELETE/api/v1/connections/:idS own/adminRevoke 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/:pidS 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/:pidS own/adminTake the level away (off). Audited
GET/api/v1/vault/itemsS or KSecrets: 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/itemsS + step-up, Secret write on the projectNew 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/:idS or KOne 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/:idS + step-up, Secret writeChange 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/:idS + step-up, Secret writeArchive the item page, turn agent use off and revoke open requests
POST/api/v1/vault/items/:id/revealS + step-up, Secret readReveal {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/useK named on the keycredential_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/requestsK with read on the projectvault_request (exception path): {name|id, field?, reason}. Pending until a person approves; prefer /vault/use
POST/api/v1/vault/requests/:id/collectK (the requester)Collect an approved request once within 15 minutes: the field value, then used; or pending, denied, expired
GET/api/v1/vault/requestsS (item creator, owner or admin)Recent vault_request asks for items you manage, with status
POST/api/v1/vault/requests/:id/approveS + step-up, Secret readApprove one request: the agent may collect the value once within 15 minutes
POST/api/v1/vault/requests/:id/denyS + step-upDeny one request
GET/api/v1/vault/candidates/:idS with read on the pageMove to Vault: what the credential scanner finds on a page (kind, a 4-character hint, length, line), never the text
POST/api/v1/vault/moveS + step-up, write on the page and Secret write on the projectMove 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/linkPLaptop/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/:idSWhat 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/denySRefuse the device; returns redirect_to with error=access_denied
POST/api/v1/devices/link/:id/approveS (Owner, Admin or Member) +U for trust directApprove 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/exchangeP{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/registerS 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/unregisterS human (phone session)G4: remove one of the caller’s own push tokens {token}
GET/api/v1/skillsS KSkills 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/:idS 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/pauseS K (write)Pause one install; scheduled runs stop. Idempotent with request_id
POST/api/v1/skills/installs/:id/resumeS K (write)Resume one paused install; the next run is re-armed. Idempotent with request_id
POST/api/v1/skills/installs/:id/runS 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/:idS K (write)Stop and remove one install; its run history is kept for the audit. Idempotent with request_id
GET/api/v1/skills/:slugS KOne 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/startS 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/pauseS 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/resumeS 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/runS 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/:slugS 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/appsS, KGallery 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/installedS (owner/admin)Apps installed in this workspace, with who installed each one and its state (active, paused, removed)
POST/api/v1/apps/:id/installS (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/activityS (owner/admin)Last runs and errors across every trigger this install created
POST/api/v1/apps/installs/:id/pauseS (owner/admin)Pause an app: its triggers stop firing; the agent and its grants stay
POST/api/v1/apps/installs/:id/resumeS (owner/admin)Resume a paused app
DELETE/api/v1/apps/installs/:idS (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/:idWPush 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/reposS (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/reposS (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/rotateS (owner/admin, +U)New signing secret, shown once; the old one stops working at once
DELETE/api/v1/code-pins/repos/:idS (owner/admin)Stop accepting pushes from this repo (pins and flags stay)
POST/api/v1/code-pins/checkS KCheck 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/flagsS KPages 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/captureCWrite-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-keysS own, K (admin)List capture keys (never the token)
POST/api/v1/admin/capture-keysS 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/:idS own, K (admin)Revoke a capture key (immediate)
GET/api/v1/portal/:tokenPClient-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/pagesPList 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/:idPOne 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/logoPThe link's uploaded logo image, if any. Cacheable; not sensitive
GET/api/v1/client-links/:id/viewsS own/adminPer-link view log: time, page, and a hash of the viewer IP address (never the address itself)
DELETE/api/v1/client-links/:idS own/adminRevoke a client link; it stops working on its very next request. Audited
POST/api/v1/mail-in/:providerWInbound-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-routesS own, K (admin)Mail-in domain, configured providers and routes (never the address token)
POST/api/v1/admin/mail-routesS 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/:idS own, K (admin)Revoke a mail route (immediate; later mail to it is dropped)
POST/api/v1/billing/webhookWStripe 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/billingS KPlan, billing state, read-only flag, usage against the plan limits, deletion date when read-only. Never Stripe ids
POST/api/v1/billing/checkoutS ownStripe 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/portalS ownStripe Customer Portal URL (card, seats, invoices, cancel). 409 no_billing_account before the first checkout

Platform admin

MethodPathAuthWhat it does
GET/api/platform/whoamiAThe signed-in platform admin and when the current step-up ends
GET/api/platform/overviewACounts: workspaces by plan and state, trials ending, users, agents, waitlist, MRR/ARR, failed payments, 30-day series
GET/api/platform/healthAVersion, uptime, memory, schema, data size, sign-up mode, mail and billing configured, backup status, both audit chains, recent mail delivery (no secrets)
GET/api/platform/auditAPlatform audit log (hash-chained) with chain check. ?limit, cursor, target, action
GET/api/platform/workspacesAWorkspaces with owner, plan, billing state, members, agents, last activity. ?q, plan, state (or suspended), limit, offset
GET/api/platform/workspaces/:idAOne workspace: billing, usage counts (pages, spaces, tokens, repo bytes), members, history. Never page titles, paths or content
POST/api/platform/workspaces/:id/suspendA +USuspend {reason}: members get workspace_suspended, agent keys stop. Emails the owner. Audited in both logs
POST/api/platform/workspaces/:id/unsuspendA +URestore a suspended workspace. Emails the owner
POST/api/platform/workspaces/:id/extend-trialA +UAdd {days} (1 to 365) to a trial or waitlist period from the later of now and the current end; reopens a read-only workspace
POST/api/platform/workspaces/:id/planA +USet {plan, comp?, until?, note?}. comp gives the plan without billing; until time-boxes it
GET/api/platform/usersAPeople with verified, two-step, disabled, admin flags and workspace counts. ?q, filter (unverified, disabled, no_totp)
GET/api/platform/users/:idAOne person: flags, workspaces and roles, active sessions, history
POST/api/platform/users/:id/disableA +UDisable {reason?} and end every session. Platform admins cannot be disabled here
POST/api/platform/users/:id/enableA +URe-enable a disabled person
POST/api/platform/users/:id/resend-verificationA +UEmail a fresh one-time verify link (24 h; only its hash is stored). 409 when already verified
GET/api/platform/waitlistAWaitlist entries and counts by status. ?status, q
POST/api/platform/waitlist/:id/blockA +UBlock: no invite can be sent and any outstanding link stops working
POST/api/platform/waitlist/:id/approveA +UPut a blocked entry back in the queue

OAuth 2.1

MethodPathAuthWhat it does
GET/.well-known/oauth-authorization-serverPRFC 8414 authorization server metadata
GET/.well-known/oauth-authorization-server/*PSame, path-suffixed form
GET/.well-known/openid-configurationPSame metadata (compatibility alias)
GET/.well-known/oauth-protected-resourcePRFC 9728 protected resource metadata for /mcp
GET/.well-known/oauth-protected-resource/*PPath-aware form: /mcp or /w/<ws>/mcp, resource equals the requested URL (RFC 9728 3.3); other paths 404
POST/oauth/registerPDynamic client registration (10/min per IP). Loopback or allowlisted redirect URIs only
GET/oauth/authorizeSConsent page (HTML) or JSON consent descriptor. Redirects to /login when signed out
POST/oauth/authorizeSApprove or deny; needs the consent csrf_token. Owners and editors only
POST/oauth/tokenPauthorization_code (PKCE S256) and refresh_token grants. resource must be /mcp or /w/<ws>/mcp and match the authorization, else invalid_target. 30/min per IP
POST/oauth/revokePRevoke an access or refresh token

MCP

MethodPathAuthWhat it does
ALL/mcpK OMCP streamable HTTP (stateless). 401 with WWW-Authenticate resource_metadata when no token. OAuth tokens must be bound to /mcp
ALL/w/:slug/mcpK OSame as /mcp, pinned to workspace slug (token must belong to it). Own OAuth resource: accepts tokens bound to /w/:slug/mcp or /mcp; 401 points at the path-aware metadata

Git

MethodPathAuthWhat it does
ALL/git/:repo.git/*GGit smart HTTP (Basic auth, password = nxg_ token). Fetch needs workspace-wide secret read; push needs write + admin

Examples

URL=https://app.nexara.ac
# who am I (agent key)
curl -s $URL/api/v1/whoami -H "Authorization: Bearer $NEXARA_KEY"
# a context bundle as markdown
curl -s $URL/api/v1/bundle -H "Authorization: Bearer $NEXARA_KEY" \
  -H "Content-Type: application/json" -H "Accept: text/markdown" \
  -d '{"intent":"DLP project status","budget_tokens":2000}'
# update a page without clobbering someone else's edit
curl -s -X PUT $URL/api/v1/nodes/<id> -H "Authorization: Bearer $NEXARA_KEY" \
  -H 'If-Match: "<hash from the ETag>"' -H "Content-Type: application/json" \
  -d '{"content":"---\ntitle: DLP\n---\nNew body"}'