Team & admin
Integrations
Post to Slack and answer "Needs you" from Slack DMs, send signed webhooks to your services, add the comity/coordination check to pull requests with the GitHub App, and turn Notion pages into shared task lists.
On this page
- Slack
- Connect
- A webhook URL instead
- What gets posted
- Slack DMs: "Needs you" in Slack
- What happens when you press a button
- Whose Slack account is whose
- What Comity stores
- Set up the Slack app (self-hosting)
- Webhooks
- Create an endpoint
- Event types
- Payload
- Headers
- Verify the signature
- Delivery and retries
- GitHub App
- Set up
- What it does
- GitHub Issues as shared task lists
- Notion
- Who connects
- Connect
- Sync and rate limits
- What Comity stores
- API
- Self-hosting
- Granola
Integrations are set up by owners and admins in the dashboard under Integrations, grouped as Source control (GitHub), Task sources (Notion, GitHub Issues, spec files in your repo), Notifications (Slack channel, Slack DMs, the weekly digest, webhooks) and Agents. Each row shows its status; Connect sets it up and Manage opens its settings. Other roles see the Notion, Slack DMs and agent status, and "Managed by admins" for the rest. The weekly digest, a summary for whoever runs the team, is set up on the same tab.
Slack
Slack is one integration: Integrations → Slack. Connecting it installs Comity's Slack app in your workspace, which does two things:
- Channel posts: conflicts, blocked agents, work requests and autopilot summaries in the channel you pick on Slack's install screen. Every plan.
- Needs you as DMs: the person who must act on something in Needs you gets a DM and answers it from Slack. Team plan and up; on Free the app posts to the channel only.
Connect
- Integrations → Slack → Connect → Add to Slack (owners and admins).
- On Slack's screen, pick the channel Comity posts to and click Allow. Comity asks for
chat:write,im:write(DMs),users:read,users:read.email(to match members by email) andincoming-webhook(posting to the channel you picked). It reads no channels and no messages. - Slack sends you back to Comity with the workspace and channel listed. Send test message: the channel gets "Comity is connected".
Change channel goes through Slack's install screen again and switches the destination to the channel you pick. Uninstall revokes Comity's token at Slack and stops both channel posts and DMs.
Slack's install and Link my Slack screens only finish in the browser that started them: Comity takes Slack's answer only when that browser is still signed in to Comity as the person who clicked Add to Slack (or Link my Slack), in the same session, with the role it needs (owner or admin to install; owner, admin or member to link). Otherwise nothing is installed or linked, and the Integrations tab says why. A Slack link someone else sends you therefore can't connect your workspace, or your Slack account, to their org. Each link works once and for an hour.
A webhook URL instead
Orgs that connected Slack before the app keep their pasted incoming webhook URL: it works exactly as before, and the Slack row shows "Connected (webhook URL)" with a prompt to add the app. Adding the app makes the channel you pick the one destination and removes the pasted URL. A server without a Slack app (self-hosted without SLACK_*) uses a pasted URL: in the Slack drawer, Use a webhook URL instead (create one in Slack with an incoming webhook and pick the channel). Comity stores it encrypted and never shows it again.
API equivalent (owner/admin personal token):
curl -X PUT https://api.comity.so/v1/integrations/slack \
-H "Authorization: Bearer $COMITY_TOKEN" -H "Content-Type: application/json" \
-d '{"webhook_url": "https://hooks.slack.com/services/T000/B000/XXXX"}'{"webhook_url": null} disconnects. GET /v1/integrations/slack shows connected, source (app: picked at install; webhook: pasted), channel (the channel's name for app), url_host, failing_since and the last_post (status pending, sending, sent, failed or superseded). POST /v1/integrations/slack/test sends the test message.
What gets posted
Controlled by the notify policy (in the Slack drawer under What gets posted, or Settings → Coordination → Protected paths → Edit → Slack notifications):
- New or escalated conflicts at or above the minimum severity. By default only blocking conflicts (
conflict.detected:block). - Agent action blocked (
hook.blocked), titled "Agent blocked in<repo>", naming the file the agent was stopped on. A block by a conflict the channel was just told about as blocking doesn't get a post of its own: the conflict's post counts the blocked calls ("Blocked: 2 agent calls of Sam's codex agent"). Further blocks of the same agent by the same conflicts are one episode: counted while the post is pending ("was stopped 3 times"), never posted again. A delayed "Agent blocked" post whose conflicts were resolved, overridden or went stale before it went out is dropped. - Resolved, overridden, went stale (
conflict.resolved,conflict.overridden,conflict.stale): posted when selected, and always for a conflict the channel was already told about, to close the loop. - While you were away (
autopilot.summary): when a member turns Autopilot off and their agent did work meanwhile, one post with the summary of what it did. On by default.
Each post shows the repo, severity, subject, the two sides and the suggested next step. Updates to the same conflict are batched: at most one post per conflict per minute, later updates fold into it ("N more updates collapsed"). Failed posts (429, 5xx, network errors) retry with backoff for 24 hours.
Slack DMs: "Needs you" in Slack
With Slack connected (Team plan and up), the person who must act gets a Slack DM and answers it there, without opening the dashboard:
| Needs you item | DMed to | Buttons |
|---|---|---|
| A teammate asks you to take shared tasks (work request) | You | Accept (queues the tasks for your agents) / Decline… (optional note) |
| A teammate's agent asks you a question | You | Answer… (a form; your answer reaches their agent at its next step) |
| An agent is blocked by a conflict, or asks to override it | Everyone the repo's override policy lets override (owners and admins by default) | Override… (reason required) / Leave blocked |
| A team decision, or a change or retirement of one, is proposed | Owners and admins; for a change or retirement, also the decision's owner | Confirm / Reject… (optional note) |
Every DM also has Open in Comity. DMs are part of the Team plan and up; on Free the Slack drawer shows them as a Team feature and none are sent.
What happens when you press a button
- It acts as your Comity account, with your current role: the same as doing it in the dashboard. A member whose role can't override gets "Nothing was done: override needs one of the roles: owner, admin", and nothing changes.
- It is recorded exactly like the dashboard's action (same events, same messages to the teammate) with
via: "slack"in the event payload (work_request.accepted,work_request.declined,question.answered,conflict.overridden); a decision confirmed or rejected from Slack records the version as writtenvia: "slack". - The DM updates in place: the buttons go away and it says what happened, for example "Accepted by Tyler via Slack".
- First answer wins. If it was answered somewhere else first (the dashboard, an agent's approval popup, another admin's DM), the DM updates to say so ("Accepted by Tyler in Comity") and its buttons stop working: pressing one says "Nothing was done: this was already settled" and changes nothing.
- Leave blocked keeps the agent blocked and takes the item off your Needs you list (like Dismiss in the dashboard). Other admins' DMs stay.
Whose Slack account is whose
Comity only acts for a Slack user linked to a Comity member of the org. A click from an unlinked Slack account, from someone else's DM or from another workspace does nothing and says why.
- By email (automatic): right after the install, Comity looks up the members' Comity emails in the workspace (
users.lookupByEmail, up to 100 members; anyone else at their first DM). This only happens when Comity has verified the email (sign-up confirmation, GitHub or SSO sign-in). - Link my Slack: if your Slack email differs, or Comity hasn't verified yours, open Integrations → Slack → Link my Slack and sign in with Slack. A Slack account can belong to one member per org.
- Unlink forgets the link and turns your DMs off. Send me DMs (on by default) turns your own DMs off or on without unlinking; the dashboard's Needs you is unchanged either way.
Owners and admins choose under Needs you as DMs which kinds of items go out (work requests, questions, blocked agents and override requests, decision proposals), and see there who gets DMs ("3 of 5 members get DMs") and why the others don't (no Slack account with their email, email not verified, DMs turned off), to nudge them.
Nobody misses DMs silently. If Comity can't match you (your Slack email differs, or your email isn't verified):
- Right after you install, Slack sends you back with "Link your Slack (below) to get Needs-you DMs", and the Slack drawer shows a Link my Slack box until you do.
- The Slack row says "Link your Slack to get DMs", and the Overview's Needs you shows the same prompt with Link my Slack (Dismiss hides it for you).
- The first DM that can't reach you sends you one Comity message (your agents see it too) saying why and where to link.
- Once you link, what's still waiting on you is DMed right away; items already answered elsewhere are not.
Orgs that require SSO: members the enforcement covers (everyone but owners) still get their DMs, as notifications with only Open in Comity and the line "Your org requires single sign-on for actions: answer in Comity." Slack can't prove an SSO sign-in, so a button press from them does nothing and replies "Your org requires single sign-on for actions. Open in Comity:" with a link to the item.
If the app is removed in Slack, or Slack stops accepting its token, the Slack row shows Reinstall needed and no DMs go out until you install it again (removing the app in Slack also removes the channel it posted to).
What Comity stores
The workspace id and name, the bot token (encrypted per org), each member's Slack user id and how it was linked, their DM preference, and per DM: who it went to, about what (WR-n, a question, CF-n, D-n), its Slack message id and how it ended. Message text is not stored: DMs are built from Comity's data when sent. Answers, notes and override reasons typed in Slack are stored like the dashboard's (encrypted). All of it is in the org and account exports. Deleting your account deletes your link, preference and DM records, and Comity deletes its DMs to you in Slack (best effort: a DM Slack won't delete, for example after the app was uninstalled, stays in the workspace and doesn't hold up the deletion).
Set up the Slack app (self-hosting)
Comity's hosted service has its own Slack app. A self-hosted server needs one of its own:
- At api.slack.com/apps, Create New App → From an app manifest, pick a workspace and paste this manifest, with
https://comity.example.comreplaced by yourPUBLIC_URL:
display_information:
name: Comity
description: Conflicts in your channel, and Needs-you items from Comity answered in Slack
background_color: "#0b0b0c"
features:
app_home:
home_tab_enabled: false
messages_tab_enabled: true
messages_tab_read_only_enabled: true
bot_user:
display_name: Comity
always_online: false
oauth_config:
redirect_urls:
- https://comity.example.com/v1/slack/callback
scopes:
bot:
- chat:write
- im:write
- users:read
- users:read.email
- incoming-webhook
user:
- openid
settings:
event_subscriptions:
request_url: https://comity.example.com/v1/slack/events
bot_events:
- app_uninstalled
- tokens_revoked
interactivity:
is_enabled: true
request_url: https://comity.example.com/v1/slack/interactivity
org_deploy_enabled: false
socket_mode_enabled: false
token_rotation_enabled: false- Under Basic Information → App Credentials, copy the Client ID, Client Secret and Signing Secret into
SLACK_CLIENT_ID,SLACK_CLIENT_SECRETandSLACK_SIGNING_SECRETon the API and worker (see Self-hosting), and restart them. Slack verifies the events URL when you save the manifest, so the server must be reachable and configured by then; if it wasn't, re-save Event Subscriptions afterwards. - To install the app in more than the workspace it was created in, enable Manage Distribution → Public Distribution.
Without these variables the Slack drawer offers only Use a webhook URL instead (channel posts, no DMs). A server that already had the app configured needs incoming-webhook added to its bot scopes (Slack asks the workspace to reinstall) before installs pick a channel.
Webhooks
Webhooks send signed JSON events to your own services: alerting, dashboards, a SIEM, automations. An org can have up to 20 endpoints.
Create an endpoint
Integrations → Webhooks → Add endpoint: enter an HTTPS URL, an optional description, and either All events or Choose events. After Create endpoint, copy the signing secret (whsec_…): it is shown only once. To rotate it, create a new endpoint and delete the old one.
curl -X POST https://api.comity.so/v1/webhooks \
-H "Authorization: Bearer $COMITY_TOKEN" -H "Content-Type: application/json" \
-d '{"url": "https://example.com/comity/events", "event_types": ["conflict.detected", "conflict.resolved", "hook.blocked"], "description": "on-call alerts"}'{
"id": "0199c3d1-…",
"url_host": "example.com",
"event_types": ["conflict.detected", "conflict.resolved", "hook.blocked"],
"description": "on-call alerts",
"active": true,
"disabled_reason": null,
"failing_since": null,
"last_success_at": null,
"created_at": "2026-10-19T10:02:11.000Z",
"secret": "whsec_…"
}event_types takes up to 64 event types, or ["*"] (the default) for every type except the noisy conflict.updated, including types added later. Other routes: GET /v1/webhooks, DELETE /v1/webhooks/:id, POST /v1/webhooks/:id/test, GET /v1/webhooks/:id/deliveries.
URLs must be HTTPS and resolve to a public address; private, loopback and internal addresses are rejected. Redirects are not followed.
Event types
| Group | Types |
|---|---|
| Conflicts | conflict.detected, conflict.updated, conflict.acknowledged, conflict.resolved, conflict.overridden, conflict.reopened, conflict.stale |
| Hooks | hook.blocked, hook.warned, hook.fail_open (a developer's fail-open override let agent calls through while Comity was unreachable; sent once Comity answers again) |
| Intents & claims | intent.declared, intent.updated, intent.status_changed, intent.closed, intent.reopened (the owner or an admin undid a close within 24 h), intent.handed_off, intent.adopted (the new owner's agent took over a handed-off intent), claim.added, claim.released, claim.expired, snapshot.recorded |
| Team decisions | decision.proposed, decision.confirmed, decision.rejected (withdrawn: true when the proposer withdrew it), decision.updated (changed directly), decision.retired, decision.superseded (by: the new D-n). Payload {decision: {id, ref}, repo_id, version, change?, status?}, never the decision's text. See Team decisions |
| Sessions | session.started, session.ended, session.expired, session.status_shared |
| Autopilot | autopilot.updated (a member turned Autopilot on or off, or changed who or which repositories; payload {user, enabled, trust, repos, via}), autopilot.summary (what their agent did while they were away; payload {user, since, until, minutes, tasks, requests, text}) |
| Messages | message.sent, message.acked, question.asked, question.answered |
| Members | member.added, member.removed, member.role_changed, invite.created, invite.accepted, invite.revoked, token.created, token.revoked |
| Repos & projects | repo.created, project.created, project.updated, project.deleted |
| Org | org.created, org.data_mode_changed, org.settings_changed, policy.updated, integration.connected, integration.removed, integration.connect_rejected, billing.updated, billing.payment_failed |
| Single sign-on | sso.connection_created, sso.connection_updated, sso.connection_deleted, sso.domain_added, sso.domain_verified, sso.domain_removed, sso.enforcement_changed, sso.login, sso.login_failed, sso.break_glass_used (details) |
Payload
Every delivery is a POST of one event envelope. Event payloads carry identifiers, counts and enums, never message text, code or secrets. autopilot.summary is the exception: it carries the summary text and the titles of the tasks the agent worked on. Events caused by a button in a Slack DM carry "via": "slack" in their payload; the Slack app's install, uninstall and member links are integration.connected / integration.removed with provider: "slack_app" (object: "workspace" or "user").
{
"id": "18342",
"type": "conflict.detected",
"version": 1,
"occurred_at": "2026-10-19T12:00:00.000Z",
"org_id": "0199a0b2-…",
"actor": { "kind": "session", "id": "0199c3a4-…" },
"subject": { "kind": "conflict", "id": "0199c3e0-…" },
"payload": { "repo_id": "0199a0c7-…", "number": 37, "kind": "contract_break", "severity": "warn", "confidence": 0.9, "a": "…", "b": "…" }
}actor.kind is user, session, system or token. A test delivery has type webhook.test and an empty payload.
Headers
| Header | Value |
|---|---|
X-Comity-Signature |
t=<unix seconds>,v1=<hex HMAC-SHA256> |
X-Comity-Event |
The event type |
X-Comity-Delivery |
Delivery id, the same across retries; use it to deduplicate |
Content-Type |
application/json |
User-Agent |
Comity-Webhooks/1 |
Verify the signature
The signature is a lowercase hex HMAC-SHA256 of "<t>.<raw request body>", keyed with the full whsec_… secret. Verify against the raw bytes before parsing JSON, compare in constant time, and reject timestamps older than 5 minutes.
import { createHmac, timingSafeEqual } from "node:crypto";
export function verifyComity(rawBody: string, header: string | undefined, secret: string, toleranceSec = 300): boolean {
if (!header) return false;
const parts = header.split(",").map((p) => p.trim());
const t = Number(parts.find((p) => p.startsWith("t="))?.slice(2));
if (!Number.isFinite(t) || Math.abs(Date.now() / 1000 - t) > toleranceSec) return false;
const expected = Buffer.from(createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex"));
return parts
.filter((p) => p.startsWith("v1="))
.some((p) => {
const got = Buffer.from(p.slice(3));
return got.length === expected.length && timingSafeEqual(got, expected);
});
}// Express: keep the raw body for verification
app.post("/comity/events", express.raw({ type: "application/json" }), (req, res) => {
const raw = req.body.toString("utf8");
if (!verifyComity(raw, req.header("X-Comity-Signature"), process.env.COMITY_WEBHOOK_SECRET!)) return res.sendStatus(401);
const event = JSON.parse(raw);
// handle event.type …
res.sendStatus(204);
});Delivery and retries
- Any 2xx response is success. Respond within a few seconds: the connection timeout is 5 s and the total timeout 10 s.
- Failures retry with exponential backoff (30 s, doubling, capped at 2 h, with jitter) for 24 hours, then the delivery is marked
failed. - An endpoint that keeps failing for 3 days is disabled (
disabled_reason: "deliveries failed for 3 days"). Send test re-enables it. - The endpoint drawer lists recent deliveries with status, HTTP status, attempts, last error and the payload.
GitHub App
The GitHub App lets Comity follow pushes and pull requests, including branches no agent hook reported, publishes a comity/coordination check run on pull requests (Team and up), and turns a repo's GitHub Issues into a shared task list. Each org creates its own private app, owned by your GitHub account or organization.
Set up
- Integrations → GitHub → Connect. Optionally enter a GitHub organization to own the app; empty creates it under your personal account.
- Create GitHub App sends you to GitHub with a prefilled app manifest. Confirm it.
- GitHub sends you back to Integrations. Install on GitHub and pick the repositories.
Each step that leaves for GitHub starts from your signed-in dashboard and gives GitHub a single-use link, valid for an hour, that only works in that same browser session. When GitHub sends you back, Comity checks that you are still signed in there, are the owner or admin who started it and still have that role; otherwise nothing is created or linked and you see "Nothing changed". So a creation or install link someone sends you can't attach your GitHub account or repositories to their Comity org. An installation you add or change on GitHub itself is linked when an owner or admin of the app's org finishes it signed in to Comity in that browser.
GitHub Enterprise Server: an owner enters the server's address (for example https://github.example.com) in the same form before Create GitHub App; it is saved as an org setting (PUT /v1/github/settings) and the app is then created on that server. The address must be https and resolve only to public addresses; Comity checks every request it sends there (app creation, installation checks, repository reads, check runs) against the same rules as outgoing webhooks and never follows redirects, so a server that later resolves to a private address is refused. Self-hosted Comity with EGRESS_ALLOW_PRIVATE=1 also reaches private addresses and plain http (see Self-hosting).
The app (named Comity <org slug>) requests the minimum it needs:
| Permission | Access |
|---|---|
| Contents | read |
| Pull requests | write |
| Checks | write |
| Issues | read |
| Metadata | read |
Events: push, pull_request, create, delete, issues. Installation is confirmed against the installing user's own GitHub access, and an installation can belong to only one Comity org.
What it does
- Pushes to non-default branches and pull requests (opened, reopened, synchronized, ready for review, base changed, closed) are compared with the base. With
data_modefull, Comity reads the changed files to analyze symbols and contracts in memory; withmetadata_onlyit records only paths and line counts. See Security & data. - Each branch becomes a participant in conflict detection: a pushed branch that no agent session is working on still shows up in teammates' conflicts.
- Check run
comity/coordinationon pull requests (Team and up; see Billing & plans):
| Situation | Conclusion | Title |
|---|---|---|
A live conflict with severity block |
failure |
"N open conflicts, M blocking" |
| Other live conflicts | neutral |
"N open conflicts" |
| No live conflicts | neutral |
"No open coordination conflicts" |
The check never reports success. It is updated when the PR's conflicts change and when you re-run it on GitHub. To gate merges on it, add comity/coordination as a required status check in your branch protection.
Check runs are readable by anyone who can read the repository (everyone, on a public repo), so the check carries only coordination metadata: its summary lists the open conflicts (kind, severity, the other side, the contract or path, and the explanation) and names the PR's intent by ref, status and owner, with its title (secrets redacted; in a metadata_only org, no title). The intent's summary and plan are never posted to GitHub: the check's Details link opens the intent (or, without one, the conflicts) in the Comity dashboard, for members of your org only.
On Free, pushes and pull requests are still analyzed and take part in conflict detection, but no check run is created or updated (Integrations → GitHub shows the check with a Team pill). After a downgrade, checks already on GitHub stay as they were and no new ones are posted; upgrading posts the check again at the next push or re-run. If you require comity/coordination in branch protection, remove that requirement before moving to Free, or pull requests will wait for it.
Branches idle for 14 days are closed. Repositories beyond your plan's repo limit are skipped.
GitHub Issues as shared task lists
A shared task list can follow a repo's issues, optionally narrowed to issues carrying all of some labels and/or one milestone (title or number). Create one in the Shared tasks tab (Import from GitHub or Notion → GitHub Issues: pick a repository linked through the app, add labels or a milestone if you like). Agents create one with the task_add tool (source: "github", filter: {labels, milestone}), and scripts call POST /v1/task-lists with {"repo": "acme/app", "source": "github", "filter": {"labels": ["ready"]}}. The same filter on the same repo always gives the same list.
- On creation Comity imports the repo's open issues that match (pull requests excluded). The task key is the issue number, the title reads
#12 <issue title>, and each task links to its issue. - After that,
issueswebhooks keep the list current. A new or newly labeled matching issue is added. An edited issue updates its task. An issue closed as completed makes its taskdone, while one closed as not planned or a duplicate makes itdropped. A reopened issue reopens its task. An issue that is deleted or transferred, or that stops matching the filter, is dropped, unless an agent is working on it (deleted and transferred issues are dropped anyway). POST /v1/github/task-lists/:id/syncre-reads the open issues, for example after webhook deliveries were missed.- When a task is done in Comity (its work landed, or someone marked it done), Comity leaves the issue alone with the default Issues: read permission. If an admin grants the app Issues: Read and write, Comity comments
Done in <commit> as Comity shared task T-n.and closes the issue as completed. An issue already closed on GitHub is never touched.
Apps created before shared tasks don't have the Issues permission. To add it, open the app on GitHub (Settings → Developer settings → GitHub Apps → Comity <org slug> → Permissions & events). Set Issues to Read-only (or Read and write if Comity should close issues), tick the Issues event, and save. Then accept the new permissions on the installation (GitHub emails the installation's owners, or use Settings → Integrations → Applications → Configure). Until then, creating a GitHub list answers 409 github-not-connected and explains this.
Notion
The Notion integration turns a Notion page or database into a shared task list that stays in sync. A page's to-dos (or, without to-dos, its headings) become tasks; a database's rows become tasks. When a task is done in Comity, Comity can check it off in Notion.
Who connects
Owners and admins connect Notion. Each connection is one person's authorization in Notion, and it reaches only the pages and databases that person picked in Notion's page picker. Several admins can connect: different workspaces, or the same workspace with different pages. Every connection serves the whole org, so once one exists, members (not viewers or billing contacts) can make task lists from the pages it can read.
Connect
- Integrations → Notion → Connect, then Connect Notion workspace.
- Notion asks you to pick a workspace and shows a page picker. Pick the pages or databases that hold your task lists, or a parent page that contains them.
- Notion sends you back to the Integrations tab with the workspace listed.
Notion's answer only counts in the browser that started it, signed in to Comity as the same owner or admin (same session, still an owner or admin); otherwise nothing is connected. So a Notion link someone else sends you can't hand them your pages. Each link works once and for an hour.
Comity asks for the Read content capability and, to check off finished tasks in Notion, Update content. It asks for no user information. To share more pages later, connect again and pick them; Connect another workspace adds a workspace.
The Notion drawer lists each connection with who connected it, how many lists read through it, and whether Comity may check off tasks:
| State | Meaning |
|---|---|
| Checks off done tasks once one finishes, if allowed | No task from this connection has finished yet. |
| Checks off finished tasks in Notion | The connection has Update content. |
| Read only: Notion refused updates | The connection lacks Update content. Tasks done in Comity stay unchecked in Notion; everything else works. |
| Reconnect | Notion rejected the token, for example because access was removed in Notion. Its lists stop syncing. Connect the workspace again with the same Notion account: the connection comes back and its lists sync again. |
Disconnect revokes the token at Notion and deletes it. Lists that read through that connection stop syncing (their sync line says why) until another connection can read their page; their tasks stay.
Sync and rate limits
Comity reads each Notion list about every 5 minutes, and on Sync now in the Shared tasks tab (POST /v1/notion/task-lists/:id/sync). It stays within Notion's rate limit of about 3 requests per second per connection. A list whose reads fail backs off, up to 6 hours between attempts, and shows the error in the tab.
What Comity stores
The titles of the to-dos or rows that became tasks (plaintext, like other task titles) and their bodies (encrypted), the Notion ids and links of the page, database and items, the workspace name and icon, and the OAuth token (encrypted). Nothing else from Notion is kept, and no user emails are requested.
API
GET /v1/notion (any member) shows whether the server has a Notion app and lists the connections. POST /v1/notion/connect (owners and admins) returns the Notion authorization URL; DELETE /v1/notion/connections/:id disconnects. See the REST API reference.
Self-hosting
Create a public connection (integration) in Notion's developer portal with the redirect URI <PUBLIC_URL>/v1/notion/callback, the Read content capability and, for check-off, Update content. No user information capability is needed. Then set NOTION_CLIENT_ID and NOTION_CLIENT_SECRET on the server (see Self-hosting). Without them the Notion row shows "Not available on this server".
Granola
Comity has no server-side Granola integration. Each person connects Granola's own MCP server to their coding agent, which then records meeting decisions as proposed team decisions (with a link to the note) and action items as shared tasks. See Granola meeting notes.