Skip to content
Français
Try it

REST API

  • Base: /api/v1.
  • Interactive documentation: /api/docs, and schema: /api/v1/openapi.json. Published only if api_docs = true (variable SYNAPTANE_API_DOCS): they list every route, so there is no need to expose them on a production instance.

Create a personal token in My account → Personal tokens, then send it in a header:

Terminal window
curl -H "Authorization: Bearer syn_…" https://brain.example.com/api/v1/spaces

A token has at most the rights of its owner. It is revoked automatically if the password changes or the account is deactivated.

A token can be restricted when it is created (web, or POST /me/tokens with {"name": …, "days": …, "read_only": true, "spaces": ["acme/infra"]}):

  • read_only: read and search only, no writes and no drops;
  • inbox_only: read, search, and drop, correct or remove notes in the inbox, but no direct change to pages (not together with read_only);
  • spaces: only these spaces, among those the account is a member of (or whose organization it administers); absent: all of them, including future ones. The web form checks only the spaces of the first organization (in alphabetical order) when the account belongs to several; the API applies no such default.

A restricted token administers nothing (instance, organization) and does not manage the account: it cannot create a token, or change the password or email (403).

Organizations and spaces are designated by their readable identifiers: /organizations/acme/spaces/infra/members/alice.

An error returns {"error": "<code>", "message": "<text>"}, with the matching HTTP status. The code never changes; the message is in English, or in French with Accept-Language: fr. Test the code, not the message.

Code Status
invalid 400
unauthenticated 401
forbidden 403
not_found 404
conflict 409
secret_detected 422
check_failed 422 (a team check refuses the content: see below)
too_many_requests 429 (rate limit of an account or an organization: try again later)
unavailable 503 (database, repository or server temporarily unavailable; Retry-After header)

A malformed request body (missing field, wrong type) returns 422 in FastAPI’s format: {"detail": [{"loc": […], "msg": …, "type": …}]}, without the values received (they may hold a secret sent in the same body). Too many sign-in attempts, or OAuth registrations, return 429 as well.

too_many_requests limits, over a sliding window:

  • inbox drops: 120 notes per hour per account, across all spaces and interfaces (web, REST, MCP), notes moved to another space included;
  • Tidy now (POST …/tidy): 5 manual runs per person and per space over 24 hours (20 for an organization admin);
  • invitations: 30 per organization per hour;
  • email verification links: 3 per account per hour.

secret_detected: the content sent (drop, file write) seems to contain a secret (password, API key, private key…). Nothing is committed. Remove it, or send the request again with "allow_secrets": true if it is not one. For an existing page, only the added lines are checked.

check_failed: the content breaks one of the space’s team checks whose level is block (a personal email, a local path…). Nothing is committed; the message gives the rule, the page, the line and what to do. Unlike a secret, it cannot be confirmed: fix the content. For an existing page, only what the change adds counts.

A resource the caller cannot see returns 404, like a resource that does not exist.

Rights: super admin (instance), admin (of the organization), contributor and reader (of the space). An organization admin has all rights on its spaces.

Method and path Purpose
GET /me Calling account: username, display_name, email, locale, is_superadmin, is_active
GET /me/tokens Personal tokens: id, name, hint (last 4 characters), created_at, expires_at, last_used_at, read_only, inbox_only, space_ids
POST /me/tokens {"name": …, "days": 90, "read_only": false, "inbox_only": false, "spaces": ["acme/infra"]} (201); days: null: no expiry. Returns the token, once only
DELETE /me/tokens/{id} Revokes (204)
GET /spaces All visible spaces: organization, slug, name, description, repo_url, branch, role (effective: given in the space or through a group, the organization’s default role, or admin), restricted
Method and path Purpose
GET /users All accounts
POST /users {"username": …, "display_name": …, "password": …, "email": …, "is_superadmin": false} (201)
PATCH /users/{username} display_name, email, locale, is_active, is_superadmin. Anyone can change their own name and language; the rest is reserved for the super admin
Method and path Right Purpose
GET /organizations member Visible organizations: slug, name, description, role, default_space_role (none, reader or contributor: role of every member on every space without being added to it, restricted spaces excepted)
POST /organizations super admin {"slug": …, "name": …, "description": …, "join": true} (201); join: the creator becomes its admin
GET /organizations/{org} member Details
PATCH /organizations/{org} admin name, description, default_space_role (none, reader, contributor; 422 otherwise)
DELETE /organizations/{org} super admin Deletes an organization that has no space (204; 400 if any remain)
GET /organizations/{org}/members member username, display_name, role (admin or member)
PUT /organizations/{org}/members/{username} admin {"role": "member"}: adds, or changes the role
DELETE /organizations/{org}/members/{username} admin Removes (204), from the organization’s spaces and groups too
Method and path Right Purpose
GET /organizations/{org}/spaces member Visible spaces of the organization
POST /organizations/{org}/spaces admin {"slug": …, "name": …, "description": …, "repo_url": …, "branch": "main", "restricted": false} (201). restricted: true: closed to the organization’s default role from its creation. With create_repository instead of repo_url, Synaptane creates the repository on GitHub or GitLab (see below)
GET …/spaces/{space} reader Details, with the caller’s effective role, review_every (default review interval of the pages, "": never) and restricted (the organization’s default role does not apply)
PATCH …/spaces/{space} admin name, description, repo_url, branch, review_every (90d, 6m, 1y, never, ""; 400 if unreadable), restricted (true: only the members added to the space, the members of the groups given a role on it, and the organization’s admins, access it). Changing repo_url removes the Git credentials
DELETE …/spaces/{space} admin Deletes the space in Synaptane; the remote repository is not touched (204)
GET …/spaces/{space}/members reader Members added to the space: username, display_name, role (reader or contributor, the role given there). Those who access it only through a group or the default role are not listed (GET …/spaces/{space}/groups and GET /organizations/{org}/members list them)
PUT …/spaces/{space}/members/{username} admin {"role": "contributor"}. An account that is not a member of the organization becomes one: with a default role (default_space_role), it then also gets that role on every space of the organization that is not restricted
DELETE …/spaces/{space}/members/{username} admin Removes (204)
GET …/spaces/{space}/groups reader Groups with a role on the space: id, name, role, members (username, display_name)
GET …/spaces/{space}/vocation reader Purpose of the space (.synaptane/vocation.md): path, text ("" if it does not exist), sha, pending (waiting for the first sync), history (last 5 changes: commit, author, date, subject)
PUT …/spaces/{space}/vocation admin {"text": …, "base_sha": …, "allow_secrets": false}: a commit in the caller’s name, then a sync. text: 20,000 characters at most, "" removes the file. base_sha: hash read before editing ("": the file must not exist); 409 if it changed in the meantime. 422 if a likely secret is detected. Returns commit (null if nothing changed) and pending: before the first sync, the text is held and written by that sync
GET /vocation-templates account Purpose templates: key (infra, marketing, product, client, personal, family, job-search, blank), label, summary, text (in the language of the account: English or French)

… stands for /organizations/{org}. To create a space with a purpose, create it, then send PUT …/vocation (the text waits for the first sync).

Creating the repository (see Git repositories): POST /organizations/{org}/spaces with, instead of repo_url:

{"slug": "infra", "name": "Infra",
"create_repository": {"provider": "github", "owner": "acme", "name": "", "token": "github_pat_…"}}
  • provider: github or gitlab; gitlab_url: address of a self-hosted GitLab, in https:// (empty: gitlab.com);
  • owner: GitHub organization, or GitLab group path (acme/team); empty: the token’s own account. name: empty, the space’s slug;
  • token: used for this request only, never stored nor returned.

The answer (201) adds repository: provider, host, path (acme/infra), url (page on the provider), access (ssh: deploy key, https: GitLab project access token, null: not set up), access_error (why, in the caller’s language: the repository exists, send its credentials with PUT …/git/credentials) and token_expires (expiry of the GitLab token). Nothing is created on a refused token or right, an unknown owner or, on GitLab.com, a free plan (400), a name already taken (409), a provider limiting requests (429), unreachable or too slow (503). Giving both repo_url and create_repository is refused (400).

A group gives some members of an organization a role (reader or contributor) on several of its spaces at once. A member’s effective role on a space is the highest of the role given in the space, the roles of their groups on it, and the organization’s default role (which a restricted space ignores). A group’s role applies to a restricted space too: that is how it is opened to a team. A group is referred to by its id (its name can change); its name is unique in the organization, whatever the case (409 otherwise).

Method and path Right Purpose
GET /organizations/{org}/groups admin Groups of the organization, by name: id, name, description, members (username, display_name), spaces (space: slug, name, restricted, role)
POST /organizations/{org}/groups admin {"name": …, "description": ""} (201)
GET /organizations/{org}/groups/{id} admin A group, with its members and spaces (404 for a group of another organization)
PATCH /organizations/{org}/groups/{id} admin name, description
DELETE /organizations/{org}/groups/{id} admin Deletes the group (204): its members lose the access it gave, unless they have it otherwise
GET /organizations/{org}/groups/{id}/members admin username, display_name
PUT /organizations/{org}/groups/{id}/members/{username} admin Adds a member of the organization (200, also if already in the group); 400 for an account that is not a member of the organization
DELETE /organizations/{org}/groups/{id}/members/{username} admin Removes from the group (204)
GET /organizations/{org}/groups/{id}/spaces admin space, name, restricted, role
PUT /organizations/{org}/groups/{id}/spaces/{space} admin {"role": "reader"}: gives or changes the group’s role on a space of the organization
DELETE /organizations/{org}/groups/{id}/spaces/{space} admin Removes the group’s role on the space (204)

Removing someone from the organization removes them from its groups; deleting a space removes the groups’ roles on it. A token limited to some spaces, to reading or to the inbox stays limited, whatever its owner’s groups. Changes are written to the audit log (group.created, group.updated, group.deleted, group.member_added, group.member_removed, group.space_role_set, group.space_role_removed).

Method and path Right Purpose
GET …/spaces/{space}/git reader State: status, last sync, conflicts, webhook URL; for an organization admin, credentials (https, ssh or null) and credentials_expire (expiry date of the HTTPS token when known, otherwise null)
PUT …/spaces/{space}/git/credentials organization admin {"kind": "https", "token": …} or {"kind": "ssh", "private_key": …, "known_hosts": …}. An HTTPS token’s expiry date is read from GitHub or GitLab when they give it (see Token expiry)
DELETE …/spaces/{space}/git/credentials organization admin Deletes the credentials
POST …/spaces/{space}/git/sync contributor Requests a sync (202)
POST …/spaces/{space}/git/webhook-secret organization admin Generates a secret, returns the URL and the secret
POST …/spaces/{space}/git/conflicts/resolve organization admin {"choices": {"content/a.md": "local" or "remote"}} (202)

Incoming webhook (Git hosts): POST /hooks/git/{org}/{space}. It is authenticated by X-Hub-Signature-256 (GitHub), X-Gitea-Signature (Gitea) or X-Gitlab-Token (GitLab).

Paths are relative to content/: …/spaces/infra/files/servers/proxmox.md.

Method and path Right Purpose
GET …/spaces/{space}/tree reader All files: path, size, hash
GET …/spaces/{space}/files/{path} reader kind, sha, and text: the content, or the text extracted from a PDF, an Office document or an image; for a Markdown page, freshness (see below)
GET …/spaces/{space}/raw/{path} reader Raw bytes
PUT …/spaces/{space}/files/{path} contributor {"content": "…"} or {"content_base64": "…"}, with message. Creating a file needs nothing more; replacing an existing file requires its base_sha (the sha read by GET …/files/{path}), otherwise 409: you do not overwrite a change you have not read. 409 as well if the file has changed since; "base_sha": "" requires a creation; "force": true knowingly replaces without base_sha
DELETE …/spaces/{space}/files/{path} contributor Deletes
POST …/spaces/{space}/move contributor {"from": "a.md", "to": "b/a.md"}; links to the file and its own links are rewritten in the same commit
GET …/spaces/{space}/files/{path}/related?limit=8 reader Related pages (See also panel): path, title, score (0 to 1, nothing below 0.2), reason (main signal: meaning same topic, words shared words, backlink cites this page, link linked from this page, shared shared links, folder same folder), reasons (all of them, strongest first), label (the reason in plain words) and linked (the page already links to it). Empty list if nothing is close enough; limit from 1 to 20. A file named exactly related is read through …/raw/{path}
POST …/spaces/{space}/verify/{path} contributor Marks a Markdown page as verified today: {"owner": …, "review_every": "6m", "verify": true}, all optional (owner absent: unchanged, or the caller if the page has none; review_every "": the space’s interval; "verify": false: owner and interval only). Returns commit (null if nothing changed), path and freshness. The commit only touches the front matter and is not reported to the tidy-up; 400 for a file that is not a Markdown page
GET …/spaces/{space}/reports/{path} reader Open reports that the page is outdated: reason, by, at
POST …/spaces/{space}/reports/{path} reader {"reason": "…"} (500 characters at most): reports a Markdown page as outdated; again: updates your reason. 201
DELETE …/spaces/{space}/reports/{path} reader Withdraws your report; ?all=true dismisses them all (contributor). A verification of the page closes them too
GET …/spaces/{space}/history/{path} reader Commits that touched the file (a deleted one too): sha, author, date, subject
POST …/spaces/{space}/restore contributor Puts a file back as it was in a past version, a deleted file too: {"path": …, "commit": …} (commit: a sha from the history), with message, base_sha (the current sha, 409 if the file changed since; "" for a deleted file) and allow_secrets, optional. Returns commit (null if this version is already the current one). A page keeps its current verification fields
GET …/spaces/{space}/health?months=12&limit=500 reader Wiki health: broken (page, link, suggestion), orphans, empty, untitled, stale (page, date), due (pages to review: path, owner, verified, due), unowned (verified without an owner), drifts (tables that disagree: key, column, first and second with page, line, value), checks (team checks broken: rule, level, page, line, excerpt with personal data masked, message), check_rules (rules of .synaptane/checks.md), check_errors (its faulty lines: line, message) and their totals counts (with verified: verified, up-to-date pages, and checks)

freshness (page read, search results, verification): state (verified, stale or never), verified and stale (booleans), verified_at, owner, review_due (due date, null without an interval) and review_every (effective interval). The fields are read from the page’s front matter (owner, verified, review_every), see the guide.

Each write produces a commit in the caller’s name, pushed at once. The commit message ends with the channel and the token (Source: api, Via: API · <token name>); the page shows up as a change item in the inbox, computed from the Git history.

GET /api/v1/search?q=…&spaces=acme/infra&spaces=perso/notes&regex=false&limit=20&mode=auto

Search covers all readable spaces if spaces is absent. Each result gives space, path, title, score, match (text: by words, meaning: by meaning, both), extracted (found in extracted text), verified and stale (page verified and up to date, or due for review), freshness (details, null for non-Markdown files), the last change (edited, its date; edited_by, its author; edited_by_ai: tidy, routine or assistant when an AI wrote it, null for a person), reported_outdated (open reports that the page is outdated) and up to three snippets (line, text, before, after). mode=text: by words only. A verified, up-to-date page ranks a little higher (+10%), a page due for review a little lower (−7%).

Pending notes. A dropped note can only be found among the pages once it has been tidied. To avoid breaking existing clients, the response remains a list of pages: the X-Pending-Count header counts the pending notes that contain all the words of q (20 at most), and GET /api/v1/search/pending?q=…&spaces=… lists them: space, name (for GET …/inbox/{name}), title, deposited_by, deposited_at, newest first.

Method and path Right Purpose
GET …/spaces/{space}/inbox reader Pending items, paginated (limit, offset; total in X-Total-Count), filtered by kind (note, change or left: left by the tidy-up): name, type (note or change), title, deposited_by, deposited_at, status, reason, hint, source (channel), via (client or token), origin (where the information comes from), attachments
POST …/spaces/{space}/inbox contributor {"title": …, "content": …, "hint": …, "source": …, "attachments": [{"name": …, "content_base64": …}]} (201). source: where the information comes from (URL, meeting…), stored in origin
GET …/spaces/{space}/inbox/{name} reader One item, with body: the text of a note, or the commits and the diff of a changed page
PATCH …/spaces/{space}/inbox/{name} contributor Corrects a note: title, content, hint, source, allow_secrets; an absent field stays unchanged. A note left by the tidy-up goes back to “to process”. Returns the note
DELETE …/spaces/{space}/inbox/{name} contributor Removes a note and its attachments (204). For a problem an agent routine reported, ?not_a_problem=… (why, 500 characters at most) records that it is not one: the routine will not report it again while its pages stay the same
POST …/spaces/{space}/inbox/{name}/move contributor of both spaces {"space": "acme/other"}: moves the note to the inbox of another space; returns space and path
POST …/spaces/{space}/inbox/{name}/seen contributor Marks a changed page (change) as seen: it asks nothing of the tidy-up until its next change (204)
GET …/spaces/{space}/inbox/{name}/files/{filename} reader Attachment of a note, as raw bytes (downloaded, never executed)
Method and path Right Purpose
GET /organizations/{org}/ai admin AI settings, or null: provider, model, base_url, effort, has_key, price_input, price_output (per million tokens), monthly_budget, month_spent, metered (provider billed per use: without monthly_budget, spending has no limit)
PUT /organizations/{org}/ai admin {"provider": "anthropic", "model": …, "effort": "medium", "api_key": …, "monthly_budget": …}. api_key absent: the key is kept, unless the provider or address changes; base_url is reserved for the super admin. A monthly_budget is refused (400) if the organization’s model, or the model chosen by one of its spaces, has no known price and no price is entered
POST /organizations/{org}/ai/test admin Test call: {"message": …}
GET …/spaces/{space}/tidy-rules admin Tidy-up rules of the space (.synaptane/prompts/tidy.md, or its former name .synaptane/prompts/rangement.md if it is the only one; path says which): same shape as GET …/vocation
PUT …/spaces/{space}/tidy-rules admin Same fields and same rules as PUT …/vocation
GET …/spaces/{space}/checks admin Team checks of the space (.synaptane/checks.md): same shape as GET …/vocation. The pages that break them are in GET …/health
PUT …/spaces/{space}/checks admin Same fields and same rules as PUT …/vocation; 400 if a rule is faulty (the message names each faulty line)
GET …/spaces/{space}/tidy-settings admin enabled, time, timezone, model, delay, maintain, and the night’s report: report_email ("", admins, members), report_always, report_webhook (true if a Slack webhook is configured: its address is never returned)
PATCH …/spaces/{space}/tidy-settings admin enabled, time ("03:00", local time), timezone (Europe/Paris), model ("": the organization’s), delay (minutes between a drop and the continuous tidy-up, 0: off), maintain (nightly wiki maintenance, true by default), report_email, report_always, report_webhook_url (Slack incoming webhook, stored encrypted; null: unchanged, "": removed) (204)
POST …/spaces/{space}/tidy-settings/test-report admin The last night’s report, marked as a test: by email to the caller only, and to the Slack webhook (202); 400 if nobody receives the report; 429 beyond 5 tests an hour for the space
GET …/spaces/{space}/nights reader The last 7 nights: day, status (queued, running, done), steps in order (kind: routine or tidy, when: before or after, name, title, routine_id, run_id, status, reason: why a step was skipped or failed), report (quiet, emails, slack)
POST …/spaces/{space}/tidy contributor Starts a tidy-up (202); 429 beyond the manual run limit (see Errors)
GET …/spaces/{space}/tidy/runs reader Runs: status, trigger, model, items_done, items_left, summary, operations, commit, tokens used, cost, error, reverted_at
POST …/spaces/{space}/tidy/runs/{id}/revert admin Reverts a run with an inverse commit
GET …/spaces/{space}/tidy/runs/{id}/pages reader Pages the run changed: path, status (created, edited, deleted, moved), old (former path of a moved page), state (undoable, changed since the run, undone)
POST …/spaces/{space}/tidy/runs/{id}/undo-pages contributor {"paths": […]}: puts these pages back as they were before the run, in one commit. 409 for a page changed since the run (restore it from its history). Returns commit, pages, notes_back (notes back in the inbox: all their pages are undone) and notes_kept (still filed: other pages keep them)

A routine is a scheduled AI agent that rereads the wiki of a space and only writes to its outputs, and to the folders it keeps if it has any (see Agent routines). Paths under …/spaces/{space}/routines. Each routine is a file of the repository, .synaptane/routines/<name>.md: every write is a commit of that file in the caller’s name, and a push can change it too.

Method and path Right Purpose
GET …/routines contributor Routines of the space: id, name (file name), title, description, path (file in the repository), sha (hash of the file, for base_sha; null until the next synchronization writes it, then pending is true), error (invalid file: why it does not run; null otherwise), warnings (what was ignored, such as an unknown field), template (coherence, digest, archive or ""), instructions, frequency (daily, weekly, monthly), weekday (0 = Monday), monthday (1 to 28), at ("06:00", the space’s local time), night (before or after the tidy-up, in the night; "": at at), scope (folders; empty: the whole space), writes (folders it keeps; empty: none), output_page, output_inbox, output_email ("", admins, members), output_webhook, enabled, memory (keeps notes from one run to the next), sources (names of the external sources it reads), next_run, last_run
POST …/routines admin Creates a routine (201). {"template": "coherence"} starts from a provided template (its settings, then the given fields); blank: title, instructions and at least one output (writes, the folders it keeps, counts as one). name: file name (lowercase letters, digits, dashes), made from the title if omitted; a free text is taken as the title, as before routines were files. 409 if the name is taken, 422 for a likely secret (allow_secrets: true to confirm)
GET …/routines/{id} contributor One routine
PATCH …/routines/{id} admin Changes the given fields (enabled: false disables it; writes omitted keeps the folders, [] removes them) and rewrites the file. base_sha: the sha read before; 409 if the file changed since (push, another admin). The file name does not change (400); an invalid file is fixed in the repository (400)
DELETE …/routines/{id} admin Removes the routine’s file and its memory (204; ?base_sha= as for PATCH); its runs still count toward the budget, its report page stays in the wiki
POST …/routines/{id}/run admin Runs the routine as soon as the worker is free (202); refused (400) if the month’s budget is reached or the file is invalid
GET …/routines/{id}/runs contributor Runs, newest first: status (running, done, failed), trigger, model, summary, report (output text), outputs (page, inbox: titles of the items dropped, written: pages written in its folders, with path, change and from for a move, conflicts: pages someone changed during the run, their version kept, emails: number sent, webhook, memory: saved, cleared, or changed when someone changed it during the run, which kept their version, fetches: calls to the external sources, with source, path (sensitive query values hidden), status and size; never a secret nor a body), commit, tokens, cost, quota, error
GET …/routines/{id}/memory contributor What the routine remembers from one run to the next (Memory): enabled (memory: true in its file), path (.synaptane/memory/<name>.md), text ("": none), sha (null: no memory yet), size (bytes), too_large (not shown, nor read by the routine)
DELETE …/routines/{id}/memory admin Clears the memory (204): a commit in the caller’s name; a run in progress keeps it cleared

The services a space’s routines may read over HTTP (External sources). Paths under …/spaces/{space}/sources, for the organization’s administrators only. A secret is accepted when writing and never returned; the audit log records each change.

Method and path Right Purpose
GET …/sources admin Sources of the space: name, url (base address, normalized), auth ("", bearer, header, basic), header (name of the header for header), secret (true if one is saved), secret_saved_at, used_by (titles of the routines that read it), created_at, updated_at
POST …/sources admin {"name": "status", "url": "https://status.example.com/api/v2/", "auth": "bearer", "secret": "…"} (201). HTTPS only, without a query nor a user; a local address is refused (400). 409 if the name is taken; 20 sources at most per space
GET …/sources/{name} admin One source
PATCH …/sources/{name} admin Changes url, auth, header; secret replaces the saved one (omitted: kept). Moving to another host without a new secret is refused (400): a saved secret is never sent elsewhere. auth: "" removes the secret. The name does not change (400)
DELETE …/sources/{name} admin Removes the source and its secret (204); the routines that name it become invalid
POST …/sources/{name}/test admin A GET on the base address, with the secret: status (HTTP), type (of the answer, never its content), error (why the call failed, null otherwise)
Method and path Right Purpose
GET /organizations/{org}/embeddings admin Embeddings provider, or null: provider, model, base_url, has_key, meaning_min_similarity
PUT /organizations/{org}/embeddings admin {"provider": "openai", "model": …, "api_key": …, "meaning_min_similarity": 0.55} (similarity floor, null by default; dropped when the model changes)
PUT …/spaces/{space}/semantic admin {"enabled": true}: enables the space’s index; returns the files and chunks indexed
Method and path Purpose
GET /sso-providers Providers: slug, kind, name, issuer, client_id, auto_create, link_by_email, allowed_domains, enabled, callback_url, open_to_anyone (automatic creation without allowed domains on GitHub, Google or gitlab.com: anyone with an account there gets one here)
PUT /sso-providers/{slug} Creates or updates: {"kind": "gitlab", "name": …, "client_id": …, "client_secret": …, "issuer": …, "auto_create": false, "link_by_email": null, "allowed_domains": ["example.com"], "enabled": true} (client_secret: null keeps the secret; auto_create absent: false; link_by_email: null: yes for GitHub and Google, no otherwise; allowed_domains: email domains accepted for automatic linking and creation, exact match, []: no restriction)
DELETE /sso-providers/{slug} Deletes (204)

See SSO.

Method and path Purpose
GET /organizations/{org}/webhooks List: id, url, events, active, last_delivery_at, last_status, failures (consecutive failed deliveries)
POST /organizations/{org}/webhooks {"url": …, "events": [...]} (all events by default). Returns the secret, once only (201)
DELETE /organizations/{org}/webhooks/{id} Deletes (204)
POST /organizations/{org}/webhooks/{id}/test Sends a ping event (202)
POST /organizations/{org}/webhooks/{id}/reactivate Puts back into service a webhook switched off after repeated failures (204)

See Webhooks for the format and the signature.

Method and path Purpose
GET /organizations/{org}/invitations Pending invitations: id, email, org_role, expires_at, groups (id and name of the groups joined on acceptance; a group deleted since is no longer listed)
POST /organizations/{org}/invitations {"email": …, "org_role": "member", "spaces": {"infra": "reader"}, "groups": ["<id>"]} (201). groups: identifiers of groups of the organization (GET /organizations/{org}/groups, 200 at most, 422 beyond), joined on acceptance, after becoming a member; an unknown group, or one of another organization, is refused (404). For an existing account, groups in the answer lists the groups it actually joined. Returns the link to pass on, once only; granted: true if the address already had an account (access granted and groups joined at once). 30 per organization per hour at most (429 beyond)
DELETE /organizations/{org}/invitations/{id} Cancels (204)

/mcp (Streamable HTTP), authenticated by OAuth 2.1 (dynamic client registration, PKCE) or by a personal token. See the MCP guide. The server speaks the handshake protocols (up to November 25, 2025) and the stateless protocol of July 28, 2026. Client ID metadata documents (CIMD), which replace dynamic registration in that revision, are not accepted yet: the SDK does not handle them on the server side.

Dynamic registration (POST /register) is limited to 20 per hour per IP address (429 beyond). A client that registered but was never authorized is deleted after 24 hours.