
Everything you need to know about using Cognitia AI, connecting your tools, and getting the most out of your AI assistant.
For Consumers
For Developers
For Businesses
For Consumers
For Developers
For Businesses
Visit the login page and create your account using one of three methods:
Google Sign-In -- One-click sign up with your Google account. Fastest way to get started.
iCloud Sign-In -- Sign up with your Apple ID for seamless iCloud integration.
Email & Password -- Create an account with any email address and a secure password.
Already have an account? On the login page you can also choose Email me a code instead and sign in with a six-digit code.
All new accounts start with a free tier. No credit card required.
After signing in, navigate to the sidebar and connect your first service. We recommend starting with Gmail as it unlocks both email and calendar capabilities:
Click the Email & Calendar button in the sidebar
Select Gmail and authorize Cognitia to access your account
Once connected, you can ask Cognitia to search and recall your emails and Google Calendar
Navigate to the Chat page and start a conversation. Cognitia adapts to natural language -- just tell it what you need:
"Summarize my unread emails from today"
"What meetings do I have this week?"
"Search the web for the latest AI news"
"What did I spend on dining this month?"
MCP & backups is where you install Cognitia as a memory MCP server in other apps and import assistant memory (ChatGPT, Claude, Gemini). Other apps call Cognitia’s MCP endpoint. Connecting generic remote MCP servers from Cognitia is turned off.
Key highlights:
Available to all subscription tiers
No additional cost beyond LLM credits
Use Cognitia from any MCP client
Recent additions to the memory layer and Memory Explorer:
Five-tool external MCP — Hosts get unified_memory_agent (Ask: context + optional evidence), unified_memory_retrieve (profile + scored entities, facts, and edges; optional evidence), origin-grant config, unified_memory_store, and unified_memory_forget. Specialty identity/temporal tools stay first-party.
Identity review queue — Approve or dismiss newly discovered identities before they join your graph.
Memory-conditioned image generation — Temporarily disabled. Returns in Q4 as multimodal memory (photos/video → identity), not a general image studio.
Photo identify — Upload a photo to find matching people already in your memory.
Retract a stored note — Call unified_memory_forget with the source_id from store. This does not delete a person or another client's notes. Forgetting a person is in Memory Explorer.
Manual & reviewed merge — Merge duplicate entities manually or from the merge-candidate review queue.
Device files — Browse and search files indexed from your connected devices.
The MCP Memory Layer lets you use the personal memory you've built with Cognitia from any external MCP-compatible client — including Cursor, Claude Desktop, Claude Code, Windsurf, and more. Your knowledge graph, conversation history, emails, files, financial data, social media, and multimodal identity data are all accessible through a single unified endpoint.
Instead of your memory being locked inside Cognitia, external AI agents can query it as context. For example, a coding agent in Cursor could retrieve your project-related knowledge, or Claude Desktop could recall your preferences and recent conversations.
Memory layers available:
Knowledge Graph
Entities & relationships
Temporal facts & timeline
Time travel (as-of / since)
Behavioral profile
Store new knowledge
Retract a stored note
Data Sources
Email search
Financial data
Social media
Cloud files
Multimodal (Pro)
Face recognition
Voice identification
Visual object matching
Connecting takes one step — add the Cognitia MCP endpoint URL to your client. OAuth handles everything else automatically.
Cursor / Claude Desktop / Claude Code
Add this to your MCP client configuration file:
{ "mcpServers": { "cognitia-memory": { "url": "https://www.cognitia-ai.com/api/mcp" } } }
Add the configuration above to your MCP client settings.
On first connection, your client opens a browser window. Log into Cognitia if prompted.
On the consent screen, choose fidelity for the five origin groups, then click Allow Access.
Done. The external client now has access under those origin groups. Token refresh is automatic.
Cognitia's MCP server supports OAuth 2.1 with PKCE, the same industry-standard protocol used by Notion, Linear, and other MCP services. Clients that support OAuth (Cursor, Claude Desktop, Claude Code) handle the entire flow automatically.
OAuth 2.1 (automatic)
No tokens or API keys to manage. The client handles login, consent, token exchange, and automatic refresh. You just add the URL and approve the connection once.
Personal API key
For automation, scripts, or clients where you want a credential that does not expire every hour. Keys start with cog_usr_ and are sent the same way: Authorization: Bearer YOUR_KEY.
Create and revoke keys under MCP & backups → Personal API key. You can have up to five active keys; store them like any secret and revoke them if they leak.
External OAuth clients and personal API keys may call the six memory tools below, plus unified_memory_list for counts and complete lists. Specialty tools (identity search, memory_as_of / memory_diff, share cards) stay on the first-party app session.
Which tool to call
Call unified_memory_access to see what this app may read. Use unified_memory_retrieve for people, facts, or a profile. Use unified_memory_agent for a written answer, today's inbox, or calendar — set include_evidence when you will cite. Store only text the user asked to remember, and keep source_id. Call unified_memory_forget with that source_id to retract it. Do not invent tools that are not listed. Personal initialize also returns these instructions plus memory.ask / memory.retrieve / memory.remember / memory.forget prompts and cognitia://status / cognitia://profile.
Ask memory. Send a natural-language query; the server returns one synthesized context string. Use for freshness, mail, calendar, or a written answer — not to list entities. Pass include_evidence: true to attach evidence for sources the answer actually used. Each item includes snippet, locator, and an open URL only when a provider permalink or signed file exists. Use as_of / since as ISO 8601. Optional focus pins the answer to one person or place name. hydrate_from re-opens sources from this client's recent evidence[]. Personal Ask may read official live APIs internally. Responses do not include entities, facts, or signals. This tool cannot store or delete.
Example queries: "What do I know about Project Atlas?", "Find my recent emails about the budget meeting", "What are my current goals?"
Retrieve graph (no LLM). Use at session start or when you will reason over structs. Send query, entity, or entity_id (graph UUID from a prior retrieve), plus optional as_of / since, origins, limit, entity_types / fact_types / relation_types, threshold. Returns compiled profile plus scored entities, facts, and edges — no synthesized answer and no live inbox. entities[] include id; edges include source_id / target_id. query ranks the graph; it does not parse time or names into structured fields. include_evidence: true attaches used-source evidence for the returned slice plus extract artifacts of returned graph rows. Evidence items are Ask-shaped. Personal retrieve is 2 credits, or 4 with evidence.
unified_memory_access returns the grants this app has on the five groups (email, finance, social, storage, mcp_companion) as off, kg or raw, plus multimodal_query, local_files and last_ingest_at per source family (null when Cognitia has no sync time; updatedAt is when the grants last changed). unified_memory_access_update lowers them with origin_grants; only the user can raise them. kg is the synthesized graph only; raw adds vectors and live APIs.
Remember a note the user asked to save — not a chat dump. Queue text (origin mcp). Returns queued and source_id after the raw row is written; embedding and graph extraction continue in the background. Keep source_id. This tool cannot delete. Call unified_memory_forget with that source_id to retract this note. Company API-key clients cannot write.
Retract a note this client stored. Pass source_id from unified_memory_store. Tombstones that artifact and facts from that write. Cannot undo. Does not delete a person.
agent_actions_record is the write (mode=record below) and agent_actions_query the read (mode=query). The combined agent_actions_ledger stays callable for existing hosts but is no longer listed.
Agent action ledger. mode=record saves what this agent did (intent, target, outcome, counterparty, instruction) as a pending or final row keyed on run_id; a later write for the same run replaces it. mode=query returns what any connected agent already did, filtered by query, app, counterparty, outcome, since, as_of, and limit (1–100). Rows are attributed to this client. Ask and Retrieve never read the ledger, and Store is for notes, not actions.
JSON Schemas for these tools, the evidence object, and agent actions are published under Apache-2.0 at /spec
Identify-a-photo, person media galleries, memory_as_of / memory_diff, and shareable memory cards remain available in the Cognitia app and first-party sessions. They are not on the external MCP allowlist. Voice generation and ChatGPT-style image generation are turned off.
When a new client connects via OAuth, you choose how much of each origin group that app may see. Each client has its own grants. Change them later from MCP & backups or by calling unified_memory_access_update.
Every group has a fidelity: off (hidden), kg (synthesized graph only), or raw (graph plus vectors and live APIs). Default is raw. Writes from connected apps land in MCP & Companion.
Origin groups (5)
Email, Finance, Social (social, chat, backups, calendar, contacts, imported history), Storage (cloud files, photos, health, uploads), MCP & Companion (app sync, device companion, connected-app writes).
Fidelity
off — hide this group. kg — graph facts only. raw — graph plus stored memory and live APIs for accounts you connected.
Optional capability
search_local_files follows MCP & Companion at Detailed (companion raw). search_by_identity is first-party Pro only — not an OAuth grant.
The host never picks sub-tools. An inner Ask agent searches granted origins inside unified_memory_agent.
Go to MCP & backups to see all external apps that have been granted access to your memory layer. Each connected app shows:
App name and connection date
Number of active sessions
Last used date
Click Revoke to immediately disconnect an app and invalidate all its tokens. The app will need to re-authorize through the OAuth flow to regain access.
Query prices are explained in Understanding Cognitia query costs.
Internal calls from the Cognitia web and mobile apps are not double-billed — credit deduction only applies when the request comes from an external OAuth client.
A rate limit of 60 requests per minute is applied per user across all MCP endpoints to prevent abuse.
When an external client calls unified_memory_agent, the request flows through several layers:
Authentication — The MCP endpoint validates an OAuth access token ( cog_at_… ) or personal API key ( cog_usr_… ), extracting the user ID and client ID. Session JWTs are not accepted; they are for first-party apps (iOS) only.
Rate Limit Check — A sliding-window counter ensures the user hasn't exceeded 60 requests/minute.
Caller Scoping & Config Lookup — The server enforces a caller-scope allowlist at the MCP boundary: external OAuth clients only see and can call unified_memory_agent, unified_memory_retrieve, unified_memory_list, unified_memory_access, unified_memory_access_update, unified_memory_store, unified_memory_forget, agent_actions_record, and agent_actions_query. tools/list is filtered to match. It then loads per-client origin grants.
Agent Execution — Personal Ask runs an inner agent over the origins you granted. The host never sees those internal tools.
Tool Execution — Graph and vector search run on granted origins; live APIs run when those origins are raw. Store writes a raw mcp/note row and finishes embed + extract in the background.
Billing — Total input and output tokens from all LLM calls are accumulated. Credits are calculated and deducted (external OAuth clients only).
Personal Ask returns a synthesized context string and, when requested, evidence for sources the answer actually used — not entities, facts, signals, or every retrieved hit. Token usage metadata is stripped before the response reaches the client.
All endpoints are served from the base URL https://www.cognitia-ai.com/api/mcp. The server speaks JSON-RPC 2.0 at a single endpoint. Personal OAuth and API-key clients use prompts/* and resources/* (filtered to memory.* and cognitia://status / cognitia://profile). Company API-key clients stay tools-only.
MCP Protocol (JSON-RPC 2.0)
/api/mcp/jsonrpc
JSON-RPC endpoint (all MCP methods)
OAuth 2.1 Endpoints
/.well-known/oauth-authorization-server
Server metadata (RFC 8414)
/api/mcp/oauth/register
Dynamic client registration
/api/mcp/oauth/authorize
Authorization (redirects to consent)
/api/mcp/oauth/token
Token exchange and refresh
/api/mcp/oauth/connected-apps
List connected apps
/api/mcp/oauth/connected-apps
Revoke app access
The authorization flow follows the OAuth 2.1 Authorization Code grant with PKCE (S256). Most MCP clients handle this automatically — the details below are for client developers and advanced users.
Discovery — The client fetches /.well-known/oauth-authorization-server to discover endpoints and supported capabilities.
Client Registration — The client registers itself via POST /api/mcp/oauth/register with its name and redirect URIs. Returns a client_id.
Authorization — The client generates a PKCE code_verifier/code_challenge pair and redirects the user to the authorization endpoint with response_type=code, code_challenge_method=S256, and the code_challenge.
Consent — The user logs into Cognitia (if not already), sets Off / High-level / Detailed on Email, Finance, Social, Storage, and MCP & Companion, and clicks Allow Access.
Code Exchange — The server redirects back to the client with an authorization code. The client exchanges it at POST /api/mcp/oauth/token with the code_verifier.
Token Response — Returns an access token (1 hour TTL) and refresh token (90 day TTL). The client uses the access token in the Authorization: Bearer header for all MCP requests.
Refresh — When the access token expires, the client exchanges the refresh token at the token endpoint for a new access/refresh token pair. Refresh tokens are rotated on each use.
Token Formats
OAuth access token — 64-character hex, 1-hour TTL, stored as SHA-256 hash
OAuth refresh token — 64-character hex, 90-day TTL, rotated on each use
Personal API key — long-lived, revocable, for scripts or clients without OAuth
unified_memory_agent — Input
{ "query": "string (required) — natural language query", "as_of": "string (optional) — ISO 8601 instant; view the knowledge graph as it existed at this point in time", "since": "string (optional) — ISO 8601 instant; restrict to what is new or changed at/after this time. Combine with as_of to ask 'what changed between X and Y'", "include_evidence": "boolean (optional) — attach evidence[] for sources the answer used (not every retrieved hit)", "focus": "string (optional) — person/place name to pin", "hydrate_from": [{ "source_type": "email", "source_id": "...", "chunk_index": 0 }] }
unified_memory_agent — Output
{ "success": true, "context": "The user …", "evidence": [ { "origin": "storage", "source_label": "Google Drive", "source_type": "google_drive", "source_id": "drive-1", "title": "Lease.pdf", "snippet": "Page 2 names Ada as tenant.", "locator": { "chunk_index": 2, "page": 2 }, "occurred_at": "2025-10-05T18:00:00.000Z", "participants": [], "open": { "kind": "provider_url", "url": "https://...", "label": "Open original" } } ] }
unified_memory_retrieve — Input
{ "query": "string — ranking / search text (or entity / entity_id)", "entity": "string — name, not an id (or query / entity_id)", "entity_id": "string — graph UUID from a prior retrieve", "include_evidence": "boolean (default false)", "origins": ["email", "social"], "as_of": "ISO 8601 (optional)", "since": "string (optional)", "until": "string (optional) — alias for as_of", "limit": "number (default 20, max 100)", "entity_types": ["person"], "fact_types": ["event"], "relation_types": ["works_at"], "threshold": "number 0–1 (default 0, off)" }
unified_memory_retrieve — Output
{ "success": true, "profile": "compiled body_text…", "entities": [ { "id": "uuid", "name": "...", "type": "person", "mentionCount": 5, "lastSeen": "2026-02-19T...", "score": 0.81 } ], "facts": [ { "type": "state", "subject": "...", "predicate": "...", "object": "...", "validAt": "...", "confidence": 0.95, "score": 0.74 } ], "edges": [ { "source": "Ada", "relation": "works_at", "target": "Acme", "score": 0.55, "source_id": "uuid", "target_id": "uuid" } ], "evidence": [ { "origin": "email", "source_label": "Email", "source_type": "email", "source_id": "...", "title": "...", "snippet": "...", "locator": { "chunk_index": 0, "page": null }, "occurred_at": "2026-01-15T...", "participants": [], "open": { "kind": "provider_url", "url": "https://...", "label": "Open original" } } ] } (evidence is omitted unless include_evidence is true)
unified_memory_access — Input
{}
unified_memory_access — Output
{ "originGrants": { "email": "raw", "finance": "kg", "social": "raw", "storage": "raw", "mcp_companion": "raw" }, "multimodal_query": false, "updatedAt": "2026-02-19T...", "local_files": { "granted": true, "indexed": true }, "origins": { "email": { "last_ingest_at": "2026-02-19T..." }, "mcp": { "last_ingest_at": null } } }
unified_memory_access_update — Input
{ "origin_grants": { "email": "kg", "social": "off", "mcp_companion": "raw" } }
unified_memory_access_update — Output
{ "success": true, "originGrants": { "email": "kg", "social": "off", "mcp_companion": "raw" }, "updatedAt": "2026-02-19T..." }
unified_memory_store — Input
{ "text": "string (required) — text to remember", "title": "string (optional)", "occurred_at": "string (optional) — ISO 8601", "participants": ["string"], "external_id": "string (optional) — host idempotency key" }
unified_memory_store — Output
{ "queued": true, "source_id": "uuid-of-ingested-artifact" }
unified_memory_forget — Input
{ "source_id": "string (required) — source_id from this client's unified_memory_store call" }
unified_memory_forget — Output
{ "forgotten": true, "source_id": "uuid-of-ingested-artifact" }
All MCP endpoints return standard HTTP status codes. The 401 response includes a WWW-Authenticate header pointing to the authorization server metadata, allowing clients to auto-discover the OAuth flow.
Success — tool result in response body
Bad request — missing or invalid parameters
Unauthorized — invalid/expired token. Includes WWW-Authenticate: Bearer resource_metadata="..." header
Forbidden — user ID mismatch
Method not allowed — wrong HTTP method
Rate limited — includes Retry-After: 60 header. Wait and retry.
Internal server error
Rate Limits
Requests per minute
60 per user (sliding window)
Auth code TTL
5 minutes (single use)
Access token TTL
1 hour
Refresh token TTL
90 days (rotated on each use)
Agent max steps
6 LLM calls per query
CORS
All origins allowed (Access-Control-Allow-Origin: *)
When you send a message, Cognitia's orchestrator analyzes your request and determines which tools and agents are needed. For complex requests, it breaks the task into parallel operations:
Automatic tool selection: Cognitia picks the right tools based on your connected integrations and the nature of your request.
Parallel execution: Independent tasks run simultaneously. For example, searching emails while checking your calendar happens at the same time.
Context awareness: The orchestrator uses your conversation history and persistent memory to provide personalized responses.
Document generation from chat is turned off. Search connected Drive, OneDrive, or Dropbox for memory instead.
Cognitia uses a credit-based system to manage usage. Each message, tool call, and AI interaction consumes credits based on complexity. Your subscription tier determines your monthly credit allocation.
Work, not a model menu: Credits scale with task complexity and tools (search, browser, memory). You do not pick an underlying model.
Tool calls count: When Cognitia uses tools (email search, browser automation, etc.), each tool invocation adds to the credit cost of that message.
Track your usage: Monitor your credit balance in your Account settings.
Connected access lets an app or a company you choose query your memory so they can personalize their product for you. It is not a listing or a way to sell your data. You choose what they can use and can revoke at any time.
Open the Data Platform and connect an app you use or a company you choose, or use the Connect button inside an app that offers one. It is the same product either way: they may query your memory to personalize their product for you.
You choose — pick what they can use before you approve.
Revoke — disconnect anytime to stop new queries.
A connected app or company may query only you, and only what you granted. They never get the logins or tokens of the accounts you connected to Cognitia. On Detailed, Cognitia may read a source live to answer them, only within what you allowed. Connecting is not a data sale.
Ask and Retrieve are billed in credits. A personal MCP call deducts those credits from the person's balance. A business call uses the same credit count on the business account.
Chat in the Cognitia apps uses the same credit. A Retrieve run inside those apps is not billed again as a separate Retrieve call.
Retrieve is priced on the records actually returned. The limit you set is a ceiling, not the price. Including evidence does not change the price.
1 credit covers the first 20 records.
Each further 20 records, or a part of 20, is 1 more credit.
A successful call that returns no records is still 1 credit.
200 records is 10 credits, and that is the maximum. A limit above 200 is rejected.
Ask is priced after the call from the input and output tokens it used. The total is rounded up to a whole credit. There is no minimum and no token ceiling. Including evidence does not add a separate charge.
The same business, user, and query within 60 minutes is not billed again. A different query, a different user, or a later call is billed as usual.
Store, forget, list, agent configuration, the agent actions ledger, and Partner Connect are free. A request rejected before it runs is not billed.
A limit above 200 is rejected. Ask and Retrieve return 402 when the account is exhausted and 429 when the plan rate limit is reached.
Starter includes $20 of free usage each billing period, which runs monthly from the day your business was created, not by calendar month. Unused usage does not carry over and has no cash value. The Standard minimum is $100 per month. Pay-as-you-go above that stops at the spend cap. A call that crosses the cap is still returned. The next billable call is refused.
The default Standard spend cap is $500 per month. Enterprise is $1,000 per month minimum, and annual billing is available.
A business can pay for a connected person's personal Ask and Retrieve. Those calls are then billed to the business. Otherwise they use that person's credits, or the call is blocked when the business has chosen to block it.
On Standard and Enterprise, a client that sponsors usage also gives a person who connects through Partner Connect the paid sync limits from Allow. Sync is never billed to the business. The higher limits stop when that person's access ends or the client stops sponsoring usage.
The Data Connector API is connected access for a person who authorized your company. It is the same product as access the person turns on for an app they use: a query that personalizes the product for them. It is not a public user pool and not a data purchase. Every query is logged.
Start on the free plan and create an API key in the dashboard. Authenticate every request with Authorization: Bearer cog_biz_.... REST endpoints: POST /api/marketplace/ask-query, POST /api/marketplace/retrieve-query. MCP tool (Retrieve only): marketplace_enrichment_query.
Ask and Retrieve use the user-facing contracts (query / since / as_of / include_evidence), scoped to users who connected this company through Partner Connect, its app, or the Connected companies sheet.
Ask / Retrieve
Source groups the person approved (email, finance, social, storage, mcp_companion). Retrieve returns each person entity under a pseudonym. A fact’s subject or object, or an edge’s source or target, that is exactly a returned person’s name gets that person’s pseudonym, and a short subject of a preference fact is a pseudonym too, which may match no returned entity. Names inside longer fact text, and other entity names, are returned as stored. Evidence adds quoted snippets from those groups — not inbox dumps, full files, or open URLs.
Sensitive
Optional company-sheet toggle for health data (Apple Health summaries and device health exports). Without it, health records are left out of every answer and the profile, even when their source group is shared. Card, bank and ID numbers and passwords stay masked either way. Connecting their app does not turn it on.
Ask returns synthesized context (email addresses and phone numbers are stripped unless a group is shared at Detailed; a name can still appear in the sentence). Retrieve returns a scored graph with stable entity ids — iterate with entity_id, not the pseudonym. Retrieve also returns a profile text that, like Ask, can name people and keeps email addresses and phone numbers when a group is shared at Detailed. Evidence items are quoted snippets only. No response has an email, phone, or address field, and a person entity’s name field holds its pseudonym.
Query prices are explained in Understanding Cognitia query costs.
A limit above 200 is rejected. Ask and Retrieve return 402 when the account is exhausted and 429 when the plan rate limit is reached. A 503 with billing_unavailable means billing is temporarily unavailable, and the call can be retried.
Start freeAll routes require Authorization: Bearer cog_biz_... and are subject to per-business rate limits.
/api/marketplace/ask-query
Ask (consent required; no identity fields)
/api/marketplace/retrieve-query
Retrieve (consent required; people as pseudonyms)
Ask — Query
POST /api/marketplace/ask-query Authorization: Bearer cog_biz_... { "target_user_id": "string (required)", "query": "string (required)", "focus": "optional person or place name", "since": "optional ISO 8601", "as_of": "optional ISO 8601", "include_evidence": "boolean (needs a group shared at Detailed)", "request_sensitive_use": "boolean (if true, refused with 403 unless the person turned on Sensitive for your company)" }
Retrieve — Query
POST /api/marketplace/retrieve-query Authorization: Bearer cog_biz_... { "target_user_id": "string (required)", "query": "string — required unless entity or entity_id is set", "entity": "string — required unless query or entity_id is set", "entity_id": "graph UUID from a prior retrieve", "since": "optional ISO 8601", "as_of": "optional ISO 8601", "origins": "optional array: email | finance | social | storage | mcp_companion", "limit": "1–200, default 20", "include_evidence": "boolean (needs a group shared at Detailed)", "request_sensitive_use": "boolean (if true, refused with 403 unless the person turned on Sensitive for your company)" }
Partner Connect lets an app builder start a connection from their own server and open one hosted Connect page for the person: in a popup with connect.js, or as a full page. The page shows your app name and what you ask for per channel and for how long, signs the person in if needed, and connects the sources you requested. You get a one-time code, from connect.js or on the redirect to your return_url, and exchange it on your server for an MCP token. Available on every plan.
Users own the result. Sources land in their graph, your app holds a revocable grant, and Store writes from your app wait in their inbox until approved unless they switch your app to direct saves.
Your user already has Cognitia or you do not want to hold their email on your side. Point them at Connect Cognitia in your app; the standard MCP OAuth flow runs and they consent in the browser. No provisioning call, no return code: the token arrives through the OAuth redirect.
POST the email and your OAuth client id, get a Connect link that must be opened within 15 minutes, and open it for the user in a popup or as a full page. By default the link is for that email address: the person signs in with it, or creates a Cognitia account with it, before the consent step (Email as a hint, below, is the opt-in alternative). Except on Enterprise, the call never tells you whether the address already has an account, and never creates one. When the person allows access, the redirect back to your return_url carries cognitia_status=completed, cognitia_user_id (left out on a link made with email as a hint), and a cognitia_code valid for 5 minutes. When they deny it, it carries cognitia_status=denied, and cognitia_user_id only on Enterprise when they decline on the consent card (never from Not now on the intro).
Authenticate with your business key. Register the OAuth client in the dashboard first; the return_url must share an origin with one of its redirect URIs.
/api/marketplace/partner/users
Connect link for a person, by email
/api/marketplace/partner/connect-sessions
New Connect link for a person, e.g. to re-consent
/api/marketplace/partner/connect-sessions?action=exchange
Trade cognitia_code for an MCP token pair
/api/marketplace/partner/connect-sessions/:id
Status of a Connect link
/api/marketplace/partner/users/:external_user_id
Unlink one person from a client
Get a Connect link
POST /api/marketplace/partner/users Authorization: Bearer cog_biz_... { "email": "string (required)", "external_user_id": "your id for this user (optional)", "client_id": "OAuth client registered to your business (required)", "return_url": "https://… same origin as a redirect URI (required)", "providers": ["google", "plaid"], // optional: google | microsoft | plaid | dropbox | x // | linkedin | spotify (also gmail, google-drive, // outlook, onedrive); required for Allow, below "origin_grants": { "email": "raw", "storage": "kg", // optional: off | kg | raw per channel; ask for "finance": "kg" }, // each channel a listed source feeds "grant_duration": "30d", // optional: 7d | 30d | 90d | until_revoked "origin_groups": ["email", "storage"], // legacy: these at kg; ignored when origin_grants // or the client's Default access is set "code_challenge": "base64url(SHA-256(code_verifier))", // optional: email as a hint (below) "code_challenge_method": "S256" // optional; S256 is the only method } → { "user_id": null, "created": null, "link_token", "connect_url", "connect_session_id", "expires_at" } // link_token: for connect.js (the popup). connect_url: the same link as a full page (the redirect). // Enterprise: user_id and created are filled in, and the account is created if needed. // POST /api/marketplace/partner/connect-sessions takes the same body for a fresh link and answers // the same without created (Enterprise: only for a person you already linked, else 404).
Requested access
origin_grants sets what the link asks for per channel: email, finance, social, storage and mcp_companion, each "off", "kg" (High-level: facts in the knowledge graph only) or "raw" (Detailed: also messages, files, live reads and search). A channel you leave out is Off, and at least one must be on. grant_duration is 7d, 30d, 90d or until_revoked. Sensitive (health) data cannot be asked for; anything else is a 400.
Each field is decided on its own. Levels: origin_grants, else the client's Default access (set under Clients and Connect), else origin_groups at High-level (every channel when you send none). Duration: grant_duration, else the client's default duration, else 30 days. The link stores what it asks for when it is made, so changing the default later does not change a link already sent.
The request is a ceiling. The person sees one card with what you asked for and chooses Allow, Not now or Customize. They can lower or turn off any channel except one fed by a source you listed in providers, which starts and stays at your request, and pick another duration, never go above your request, and Cognitia caps the grant on the server. Someone already connected starts each other channel at the lower of what they share today and your request, and keeps or lowers any channel they share that you did not ask for. Detailed on Social or MCP & Companion needs a tick before Allow.
Exchange the return code
POST /api/marketplace/partner/connect-sessions?action=exchange Authorization: Bearer cog_biz_... { "code": "cognitia_code from the redirect, or the code onSuccess gave you", "code_verifier": "the verifier behind code_challenge (only for a link made with one)" } → { "user_id", "client_id", "connect_session_id", "external_user_id", "email_matched", "access_token", "refresh_token", "expires_in", "token_type" } // Link the account only if connect_session_id is the session you minted for the user signed in to your app. // email_matched: whether the person's proven address is the one you sent (always true without a hint). // A wrong, used or expired code, or a missing or wrong code_verifier: 400 { "error": "invalid_grant" }. // Refresh later at POST /api/mcp/oauth/token with grant_type=refresh_token, refresh_token and client_id.
Webhooks
Register a URL under Webhooks in the business dashboard and choose its events. Every delivery is signed like the example below. consent.approved is sent when the person's choice takes effect (at Allow; with email as a hint, at the exchange) with at least one channel on. For a Connect it carries connect_session_id and external_user_id next to userId, consentId, dataLayer, approvedOrigins, approvedFidelity and grantSource. consent.revoked is described in the review packet below.
Memory ready
memory.ready is sent once per completed Connect when the person has facts you may read in the channels they allowed: at once if they already do, otherwise when their first facts land, usually within minutes. With email as a hint, only after you exchange the code.
To get there sooner, right after Allow (with email as a hint, the exchange) Cognitia turns up to 50 waiting items of the person's first source in a channel they allowed into memory at once, instead of in the hourly batch. This happens once per person, and only when they have no facts you may read yet.
It is never sent before Allow, twice for one Connect, or after their access ended. Its data is only connect_session_id, external_user_id and ready_groups (channel ids such as email): no user id, counts or content. Sync progress is shown to the person in Cognitia, never to you.
A newer Connect for the same person replaces an older one still waiting, and if no facts you may read land within 7 days, none is sent.
POST https://your-server.example/webhook X-Cognitia-Signature-V2: <hex HMAC-SHA256 of "<X-Cognitia-Timestamp>.<raw body>" with your whsec_ secret> X-Cognitia-Timestamp: 2026-11-06T12:00:00.000Z { "event": "memory.ready", "timestamp": "2026-11-06T12:00:00.000Z", "data": { "connect_session_id": "…", "external_user_id": "your id for the person", "ready_groups": ["email"] } }
Expiry and reconnect notices
consent.expiring is sent once for each end date of a company grant: 1 day before a 7-day grant ends, 3 days before a 30- or 90-day grant ends, never for a grant without an end. Its data: userIds; external_user_id when you linked the person with one; client_id of your client that still holds the person's grant (the one of their latest completed Connect when several do), when there is one; expires_at (an ISO 8601 timestamp) and granted_groups. To renew, send the person a new Connect link: the duration they choose sets a new end date, which can warn again.
source.reauth_required is sent once each time a source of the person stops syncing until they reconnect it, to each business whose grant covers a channel that source feeds. Its data: the same ids, affected_groups (only channels you were granted) and reconnect_url, a Cognitia page with no token. It names no provider, error or count. Neither event is sent without a live company grant: never before Allow, after a revoke or after the end.
{ "event": "consent.expiring", "data": { "userIds": ["…"], "external_user_id": "your id for the person", "client_id": "…", "expires_at": "2026-12-07T12:00:00.000Z", "granted_groups": ["email", "storage"] } } { "event": "source.reauth_required", "data": { "userIds": ["…"], "external_user_id": "your id for the person", "client_id": "…", "affected_groups": ["email"], "reconnect_url": "https://www.cognitia-ai.com/data-platform" } }
Unlink a person
Call it with your business key and client_id (in the query or the body). It ends what that client holds for the person: their grant to it, unfinished sign-ins and tokens. Your company grant ends too, with consent.revoked (scope business), unless another of your clients still holds a grant for them; then it stays and the answer says so. The person's Cognitia account and memory are never changed. An unknown id, another business's id and a repeat call all get the same 404.
DELETE /api/marketplace/partner/users/:external_user_id?client_id=… Authorization: Bearer cog_biz_... → 200 { "unlinked": true, "external_user_id", "client_id", "app_access_removed", "company_access": "revoked" | "none" | "kept", "company_access_kept_because": "another_client_links_this_person", // only with "kept" "link_removed" } // 403: a client_id of another business. 404: unknown, another business's, or already unlinked.
Sponsored sync
If your client sponsors usage (Sponsor user usage under Clients and Connect) and your business pays for it (the Standard or Enterprise plan, or sync sponsorship Cognitia turned on for your business), the person syncs at the paid sync limits from Allow (with email as a hint, from the exchange), and when their first source is a mailbox or Google Drive, its first sync reads more of it. You are not charged for syncing. It stops when their access ends, the client stops sponsoring usage or your business no longer pays for it, and only a new Connect starts it again.
providers lists the sources you need: google (Gmail with Google Calendar, and Google Drive), microsoft (Outlook mail and calendar, and OneDrive), plaid (bank accounts), dropbox, x, linkedin and spotify. The single names gmail, google-drive, outlook and onedrive still work. Anything else is a 400.
The card always shows source tiles for Google, Microsoft, Dropbox, bank accounts (Plaid) and X, plus LinkedIn and Spotify when you list them. Each says whether you will see that source at the levels the person chose, and a More data row sends the person to their Cognitia dashboard for social media, chat apps, files on their Mac and the rest.
The sources you list come first, marked as requested and pre-selected, and they are required: Allow works only once each one is connected and working (one that needs reconnecting does not count). Each channel a listed source feeds is locked at the level you ask for it: under Customize the person cannot lower it or turn it Off, so they share exactly what you asked for there, or choose Not now. Channels no listed source feeds, the duration and the write mode stay theirs to change. Cognitia enforces both on its server: on Cognitia's own page, an Allow without a listed source is refused with requested_sources_missing and one below a locked level with requested_level_required, and nothing changes. You never see those refusals, and onExit and the status endpoint say nothing about which sources the person has; closing the window or choosing Not now ends the flow as before. List only the sources you need.
List a source only for a channel you ask for. A listed source whose channels are all Off (and Spotify, which feeds none) is still required for Allow, but you never see its data.
Bank accounts connect through Plaid Link inside the Connect window. Cognitia keeps the Plaid tokens; you only get the answers the person allows in Finance.
Everyone first sees an intro: your name (and on Standard and Enterprise, the logo you set under Settings), the host the link was requested from (the page that opened the popup, else your return_url), marked Verified only when that host is the domain you verified under Settings or under it, and Continue or Not now. Continue (or the popup opening) starts a 60-minute window to finish; the link itself must be opened within its 15 minutes, and the status endpoint's expires_at is that open-by deadline. Not now on the intro ends the flow for you (onExit denied, or cognitia_status=denied on the redirect) but writes nothing: the link stays pending until it expires.
A signed-out person signs in right there: with a six-digit code emailed by Cognitia, or with Google or Apple. The code works once, only in the browser that asked for it, for 10 minutes, and five wrong tries end it. The email names only www.cognitia-ai.com, never your text. A new account is created only after a correct code, and the answer is the same whether or not the address has one. Two-factor runs in the same window before Allow.
If a person creates a Cognitia account inside your Connect, connects a source and leaves without Allow, Cognitia emails them once that their own memory is syncing and that you got no access. Their background sync pauses after 14 days without signing in to Cognitia and resumes when they sign in.
By default a link is for one email address. To let any Cognitia account connect, for example when your user signed up with another address, send code_challenge with the link: base64url(SHA-256(code_verifier)), S256 only. Make a random code_verifier of 43 to 128 characters (letters, digits, - . _ ~) for each attempt of the user signed in to your product, and keep it on your server. On Enterprise, where the link is for an account you provisioned, code_challenge only adds the verifier check to the exchange.
Use email as a hint when you do not know the person's real address: for example, people who signed up to your app with Sign in with Apple and Hide My Email (an @privaterelay.appleid.com address), or with a phone number. An email-bound link needs the exact address of their Cognitia account, and Cognitia's sign-in code email cannot reach an Apple relay address made for another company, so the person could not finish.
Then the email is a hint. If the person proves another address, Cognitia tells them which of your accounts they are connecting before Allow and asks for a fresh code. If their Cognitia account is already linked to another of your users, they must confirm Move this connection.
Nothing reaches you before the verified exchange: no user id in the return URL, the popup or the status endpoint, no company grant and no consent.approved. Send code_verifier with the exchange; without it, or with another one, the answer is invalid_grant. The exchange answer adds email_matched. A code you never exchange expires after 5 minutes and leaves nothing behind.
Load connect.js from www.cognitia-ai.com with its integrity hash. Mint the link token on your server when the person clicks: open() opens the window at once, so browsers do not block it, and the page behind it dims. The person allows or declines in the popup, which closes; you get onSuccess with a one-time code to exchange on your server, or onExit.
<script src="https://www.cognitia-ai.com/connect/v1.0.0/connect.js" integrity="sha384-P1Up8K/cblkSvg3Gu49EesL5enfUThn5HAmXuGJEXQkF92CGLksqbqpUMcu317FG" crossorigin="anonymous"></script> <script> const connect = CognitiaConnect.create({ // Minted on click by your server: POST /api/marketplace/partner/connect-sessions // → { link_token, connect_url, connect_session_id } token: () => fetch('/api/cognitia/link-token', { method: 'POST' }).then((r) => r.json()), onSuccess: (code, meta) => { // From the popup: code, meta.channels ({ email: 'kg', ... }), meta.expires_at, meta.session_id. // Your server exchanges it within 5 minutes and links it only if the answer's connect_session_id // is the session it minted for the user signed in here. // Through your return page (meta.via === 'redirect'): code is null; that page already exchanged it. if (code) fetch('/api/cognitia/exchange', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ code }) }) }, onExit: (err) => { // err.code: denied | expired | closed | cancelled | popup_blocked | token_failed; err.session_id // closed: confirm with GET /api/marketplace/partner/connect-sessions/:id; a result can still follow it. }, onEvent: (name) => {}, // OPEN, SUCCESS, EXIT, WINDOW_LOST // labels: { title, text, reopen, cancel, waitingTitle, waitingText, lang: 'ja' }, // the overlay's text }) document.getElementById('connect').addEventListener('click', () => connect.open()) </script> <!-- On your return_url page: your server first checks your state and exchanges cognitia_code. Then: --> <script>CognitiaConnect.handleRedirect().then((result) => { /* result.handled: the tab that opened the popup was told */ })</script>
Allowed origins: the popup posts its result only to the page that opened it, and only when that page's origin is one of the client's allowed origins (Clients and Connect, next to the redirect URIs). When none are set, the origins of the redirect URIs are allowed. Any other origin gets an error and no message. Do not send Cross-Origin-Opener-Policy: same-origin on that page; same-origin-allow-popups keeps the popup connected.
Events: before Allow the popup reports only OPEN, the same for everyone: never a step, a sign-in or whether the person has an account. Then one SUCCESS (the code, the level per channel and the end date, never a user id) or one EXIT (denied or expired); connect.js acknowledges it and the window closes. If the window can no longer be reached (closed, or cut off by the browser during sign-in), onEvent gets WINDOW_LOST and the overlay waits with Cancel. onExit closed comes only after two minutes without a result, and a result can still follow it: check the status endpoint before you treat closed as final.
Fallbacks: on a phone or tablet, and when the browser blocks the popup, connect.js opens the link as a full page in the same tab (connect_url from your token call, or connectUrl; a blocked popup without either is onExit popup_blocked). If the popup loses its link to your page, for example during Google sign-in, Connect ends with the usual redirect to your return_url, with the open's nonce in the fragment. On that page your server exchanges the code after checking your own state; then call CognitiaConnect.handleRedirect(), and the tab that opened the popup gets onSuccess with code null and meta.via 'redirect' (or onExit denied). A code never travels between tabs.
Linking: the exchange answer names connect_session_id and external_user_id. Link the Cognitia account only when connect_session_id is the session you minted for the person signed in to your app; a code from anyone else's session, even a valid one, must not be linked to them. connect.js passes the connect_session_id your token call returned as err.session_id and meta.session_id.
The overlay is in English unless you pass labels: title, text, reopen, cancel, waitingTitle and waitingText, with lang (and dir for right-to-left text).
Web views and native apps: Connect refuses apps' built-in browsers (Instagram, Facebook, TikTok, a WKWebView or an Android WebView) and asks the person to open the link in their browser. A native app opens connect_url in ASWebAuthenticationSession (iOS) or Chrome Custom Tabs (Android), with an https universal link as return_url.
Status of a Connect link
GET /api/marketplace/partner/connect-sessions/:connect_session_id Authorization: Bearer cog_biz_... → { "id", "status", "created_at", "expires_at", "external_user_id", "user_id" } // status: pending | completed | exchanged | denied | expired // user_id only once the person allowed access (completed or exchanged); // with email as a hint, only once you exchanged the code (an unexchanged code reads expired after 5 minutes). // Your business's sessions only: an unknown id and another business's id get the same 404.
Deleting a client
Admins and the Owner can delete a client under Clients and Connect, after typing its name. Its tokens, unfinished sign-ins and Connect links end at once, and calls that send its client_id are refused. Each person's access settings for it are removed, and saves from it still waiting for their approval are dismissed. Sponsored sync through it ends, and no memory.ready is sent for its Connects. People stay linked to your business and their company grant is not changed, so Ask and Retrieve with your business key keep working for them. No webhook is sent, since you made the change. It cannot be undone: register a new client and use its client_id.
Claude and ChatGPT directory reviews ask the same questions. Copy these answers into your submission.
Included on every plan, Starter too.