kennraDocs

Apps

Every integration with Kennra is an app. An app is software outside the Kennra core that uses the public API with its own identity, a manifest and a grant that a workspace admin approved. Kennra's own integrations are apps too, with no more access than yours would have.

Use an app when you sync data with another system, react to Kennra events, or run machine jobs such as a nightly ERP import. Use a personal agent token when a person's agent or script acts for them.

Kinds of app

KindWho builds itWho can install it
First-partyKennraEvery workspace
PartnerA registered partnerEvery workspace if listed, or through an install link
PrivateYour own developers, or an agency for one customerOnly the workspace that created it

Private apps replace API keys: every machine client gets an identity, a grant and an entry on the Apps page, so the DPO has one list of everything that reads or writes customer data.

An MCP client app is a special case. It carries only data: the client's name, icon and how Kennra recognises it. Installing it lets that AI client connect over OAuth, and each connection is an agent that acts for the person who approved it. See MCP.

Kennra's own apps

Workspace admins find these under Settings → Apps → Available.

Each app card says who it works for:

  • For the whole workspace. An admin installs the app once, and it works for everyone. Crystallize, Tripletex and the business registers work this way.
  • Each member connects. An admin installs the app, then each member connects their own account, such as their calendar and mailbox. Nothing is captured for a member who hasn't connected. Google Workspace, Microsoft 365, Fireflies and the MCP client apps work this way.

On the app's page an admin sees how many members have connected each kind, for example "7 of 12 members have connected their calendar", and can send Remind to the rest. The reminder is a card in their For you. Each member sees and disconnects their own accounts, and the AI clients they connected, under Settings → My connections.

AppWhat it does
CrystallizeMirrors customers, organizations, orders, quotes and subscription contracts from Crystallize, and imports their history with the original dates. Sets up its own webhooks in Crystallize when you connect. Fetches order and subscription details live, booked rental periods included. Keeps Crystallize customer groups in step with the segments you connect. Provides products and variants for external fields, read through Crystallize's Discovery API
ResendSends your email through your own Resend account. The people in a segment who may get marketing email become Resend contacts, a program stage starts a Resend automation, and unsubscribes, bounces, complaints, opens and clicks come back to Kennra. Resend stores contacts and email data in the United States
Google WorkspaceEach member connects their own Google Calendar and Gmail. Their Google profile photo becomes their picture in Kennra. The app records meetings and email with known customers as interactions, with a one-sentence summary. Meeting details and message text are fetched live and never stored. When a workspace admin turns on Meet transcripts and a member connects them, a Google Meet meeting with known customers also gets a summary note, marked as written by AI, and suggested next steps as tasks a person accepts. The transcript is never stored. When an admin turns on Google Drive, each member can link contracts and other files from their own Drive to companies, people and deals with Google's file picker. Kennra gets access only to the files they pick and never stores the file. From a contract's text Kennra suggests its terms, which a person accepts
Microsoft 365Each member connects their own Outlook calendar and mailbox. An admin installs it with Connect with Microsoft and a work or school account, and Kennra reads the organization's own domains from Microsoft. The app records meetings and email with known customers as interactions, with a one-sentence summary, and leaves out internal and private items. Meeting details, message text and the Teams join link are fetched live and never stored. Kennra asks Microsoft for read access only: User.Read, Calendars.Read and Mail.Read. In an organization where only admins may approve apps, the Microsoft 365 admin approves Kennra once for everyone. The member's Microsoft profile photo becomes their picture in Kennra. Until Kennra has registered its own Microsoft Entra app, the app says it is not set up. A workspace can use its own single-tenant Entra app under Advanced instead
FirefliesMeeting notes from Fireflies on meetings with known customers. Each member connects with their own Fireflies API key and adds a signed webhook. Kennra keeps Fireflies' summary as a note marked as written by AI, on the meeting their calendar captured, its company, people and deal, and suggests their action items as tasks a person accepts. The transcript and the recording stay in Fireflies, which stores and processes them in the US. See Meeting notes
Business register (Norway)Enriches companies that have a Norwegian organization number with the brreg.organization trait, sets their parent companies from the register's group structure, and adds Find in the business register to New company. Checks the register for changes every hour. Officers become contacts only when the workspace turns that setting on
Bolagsverket (Sweden)Fills in Swedish companies by organization number with the bolagsverket.organization trait: name, legal form, industry, address and status. Reads each company again every week and writes a note when it goes bankrupt, into liquidation or is deregistered
GravatarProfile pictures for contacts, off by default. Kennra sends Gravatar (Automattic, in the United States) a SHA-256 hash of each contact's email address, never the address, and only after an admin also turns on Profile pictures for contacts under Privacy. The picture is kept with the contact and deleted with them
TripletexShows each company's invoices and what it owes, from Tripletex. Matches Tripletex customers to companies by organization number, then email or web domain, then name (a name match is an unverified link a person confirms or removes). An overdue invoice becomes a suggested task for the company owner, closed when Tripletex records the payment. Invoices and payments stay in Tripletex: Kennra keeps the number, dates, amounts and status, and reads lines, payments and the PDF from Tripletex when you open an invoice. Private customers are left out. Visma hosts Tripletex in the EU and EEA
SlackPosts deals that move, won and lost deals, large orders and new tasks to a channel. Sends agent suggestions and suggested contacts to the person who decides them, as a direct message, and they approve or reject them in Slack. /kennra <company, person or org number> answers as the person who asks, by delegation
RuleSends segments and program steps to your Rule account as tags, so Rule's journeys send the email and text messages. Unsubscribes, preferences, opens, clicks and bounces in Rule come back as consent changes and engagement. Each workspace uses its own Rule API key; Rule processes the data in the EU/EEA
MailchimpSends the segments and program stages you connect to a Mailchimp audience as tags, or starts a Customer Journey. Only people with email consent in Kennra are sent, and new contacts confirm by email first. Subscribers in the audience become people in Kennra, at the company that has their email domain. Unsubscribes, spam complaints and bounced addresses update consent in Kennra, and opens and clicks show as engagement. Mailchimp stores the contacts in the United States
Claude, ChatGPT, Gemini, MistralMCP client apps. They let those AI clients connect to the workspace with Kennra's OAuth

Build status

PartStatus
Manifest kennra.app/v1 and validatorBuilt
Install with a consent screen, pause, resume, uninstallBuilt
Installation tokens (client credentials with a client secret)Built
Acting for a member: token exchange and delegation, for private and published appsBuilt
Installation store: settings, secrets, stateBuilt
Ingest (POST /ingest) with per-item resultsBuilt
Webhooks, lifecycle calls, schedules, live lookupsBuilt
Erasure receipts, segment sync targets, member connections, setup flow, connection testBuilt
MCP client appsBuilt
Sending tools: consent changes in and out, engagement signals, program targets, addresses for sync targetsBuilt
App-owned trait namespacesBuilt
@kennra/app-sdk with a test harnessBuilt, on npm (bun add @kennra/app-sdk)
Open in the app on an order, quote or subscription, from the lookup's urlBuilt
Deep links on records (capabilities.ui.links): Open in the app on companies, people, deals, orders and interactionsBuilt
Registering app versions outside local development (kennra apps deploy)Planned
private_key_jwt client authentication, key rotation with overlapPlanned
Public app directory, review and certificationPlanned
Conformance suite as a CLI command (kennra apps test)Planned
Event feed (GET /events) and stream (GET /events/stream), with kennra:events:read. See WebhooksBuilt
A workspace's own events: capabilities.events.emits and emitEvent, with kennra:events:emitBuilt
Asynchronous ingest status (GET /ingest/{batchId})Planned
Record actions and declarative cards in the adminPlanned

The manifest

One file, kennra-app.yaml, declares what the app is and what it may do. Kennra generates the consent screen from it and enforces it on every call. What isn't declared is denied.

A minimal private app that writes payment terms from an ERP:

apiVersion: kennra.app/v1
id: fjellsport--erp-sync
version: 0.1.0
name: ERP sync
publisher: { name: Fjellsport AS, kind: private }
description:
  en: Writes credit limits and payment terms from the ERP to companies.
  nb: Skriver kredittgrenser og betalingsbetingelser fra ERP-en til virksomheter.
access:
  piiLevel: none
  scopes:
    - scope: kennra:trait:write
      purposes: [organization.management]
      why: Writes credit limit and payment terms from the ERP to companies.
  writes: { traits: [custom.erp_terms] }

Validate it with kennra apps validate -f kennra-app.yaml. Every field, the validation rules and the versioning rule are in App manifest.

Apps can request these scopes: kennra:read, kennra:party:write, kennra:commerce:write, kennra:interaction:write, kennra:trait:write, kennra:deal:write, kennra:work:write, kennra:consent:write, kennra:import:backdate, kennra:export, kennra:segment:read, kennra:schema:draft, kennra:suggestions:decide, kennra:consent:grant, kennra:consent:import, kennra:engagement:write, kennra:events:read and kennra:events:emit. Apps never get kennra:privacy or workspace scopes, and never publish or change the schema.

With kennra:schema:draft, an app proposes a new trait or custom Kind. Nothing changes until a schema owner publishes it. In a test, development or demo workspace, Kennra publishes it at once.

A private app holds the scopes an agent may hold and kennra:commerce:write, and kennra:import:backdate only when a workspace admin turns on Keep original dates (import). An admin can change a private app's scopes, purposes and personal data level later, under Edit access on the app's page.

Scopes are bound to purposes

Each scope in the manifest lists the purposes it may be used for. Kennra checks the pair on every call: an app granted kennra:party:write for organization.management can't use it under marketing.email.

The admin approves a grant within what the manifest asks for. The grant is a list of { scope, purposes } pairs plus a PII level.

A workspace admin installs an app under Settings → Apps. The consent screen shows, in plain language, what the app will write and read, the purposes, the PII level, where it processes data, and when Kennra will call it. Approving records the event kennra.app.installed with who approved what.

The same flow runs through the API (installApp) and the CLI:

kennra apps install erp-sync            # prints the consent summary
kennra apps install erp-sync --yes      # installs

Installing, pausing and uninstalling need kennra:apps:manage or kennra:workspace:write. Agents can never do it.

An app with its own setup flow (capabilities.setup), such as Google Workspace or Slack, shows one button instead of a form, for example Connect with Google. Kennra installs the app, then sends the admin to the app with a signed ticket. The app finishes setup with its provider and reports back with POST /apps/installation/setup.

ActionWhat happens
PauseTokens are refused, lookups fall back to Kennra's stored copy, schedules stop, webhooks wait
UninstallAccess ends at once. Kennra deletes the app's settings, secrets and state and destroys its key. Data the app wrote stays, with the app as its source

Tokens

An app gets a 15-minute token per installation from POST /apps/token:

{ "grant_type": "client_credentials", "client_id": "fjellsport--erp-sync", "client_secret": "…", "installation": "<installation id>" }

An app can also get a token that acts for one member, with the intersection of the member's access and the app's grant:

  • Token exchange. An app that declares access.actsForMembers exchanges a signed-in member's Kennra token.
  • Delegation. A private app, or a published app that declares access.delegation, names the member with requested_subject. A workspace admin turns delegation on per installation and picks the members. The Slack app answers /kennra this way.

With kennra:suggestions:decide, an app that acts for a member by delegation can pass on that member's own approve or reject of a suggestion, for example a button the member pressed in Slack. Kennra records the decision as the member's, via the app. The member decides only what they could decide in Kennra, and agents never decide.

See Acting for a member for the requests and errors.

An app that serves many workspaces from one URL, such as one command endpoint for a chat platform, finds its installation with POST /apps/installations/lookup and its client credentials. It sends externalOrganization, the provider organization its setup reported, and gets its own installations for it.

What an app can call

EndpointUse
POST /graphqlEvery persisted operation the grant allows, with kennra-purpose
POST /ingestA batch of commands with per-item results
GET /apps/installationSettings, signing secrets and secret names; add ?include=secrets for the secret values
GET/PUT /apps/installation/state/{key}Cursors and other state
POST /apps/runsReport the outcome of a schedule tick or sync
POST /apps/installation/setupFinish the app's own setup flow
POST /apps/installations/lookupFind the app's installations by the provider organization its setup reported
POST /apps/privacy/receiptsSend an erasure receipt later, for an app that answered pending

An app calls GraphQL operations by name, with its installation token and a purpose its grant holds:

// In a handler of createApp (see The App SDK below), ctx.kennra is this installation's client.
const { data } = await ctx.kennra.graphql(
  { operationName: 'OrganizationBrief', variables: { id: '01jd3k9q7xw2m8c4v6t5hpa1rz' } },
  'organization.management',
);

Ingest

POST /ingest takes a lane and a list of at most 500 items, in a body of at most 16 MB. The SDK sends 200 items per request. Each item is one command: resolveIdentity, linkIdentifier, recordMirroredFact, attributeMirroredFacts, captureInteraction, captureMeetingNotes (see Meeting notes), setTraitValues, recordConsentChange or recordEngagement.

{
  "lane": "live",
  "items": [
    {
      "idempotencyKey": "erp:customer:10442:v7",
      "command": "resolveIdentity",
      "input": {
        "partyType": "organization",
        "identifiers": [{ "type": "org_number", "country": "NO", "value": "923609016" }],
        "legalName": "Fjellsport AS",
        "createIfMissing": true
      }
    }
  ]
}

The rules are the same for every app:

  • (installation, idempotencyKey) is idempotent. Choose keys that stay stable across retries and app versions. With delegation, the member is part of the key too.
  • Every write gets the app and installation as its source.
  • Past occurredAt values need kennra:import:backdate. For a private app, the token must ask for it in scope (see Migrate to Kennra).
  • Use the import lane (the kennra-lane header or the lane field) for backfills, so live traffic isn't held up.
  • Writes outside access.writes fail with UNDECLARED_WRITE.

A recordMirroredFact snapshot holds an order, quote or subscription at reference level: amounts, SKUs, quantities and the customer's identifiers. A line that books something for a period carries booking { start, end, unitId }. Names, images and payment details stay in the source system, and Kennra fetches them through a live lookup.

Sending tools

Kennra never sends email or SMS. An app does, and Kennra gives it the people, the consent and the timing.

  • Who to send to. A segment sync target or a program target can declare contactPoints: [email]. Each member then carries its usable address and name, if the app's PII level is contact_basic or full. A program target gets the enrollments that enter, move between stages and leave as a signed program.delta, answered with a receipt (.programTarget in the SDK).
  • Consent changes in. recordConsentChange records an unsubscribe, a bounce or complaint (suppressed) or a new consent. A withdrawal always applies. A grant applies only with kennra:consent:grant for the purpose, and only when it is newer than the latest consent in Kennra.
  • Earlier consents, with proof. Moving a list from another sending tool brings opt-ins from months or years ago. Send them with historical: true and evidence: the tool (provider) and at least one of the opt-in IP address, the signup source, form or URL, the double opt-in time, or the tool's own record id. A historical grant needs kennra:consent:import, which an admin approves on its own line of the consent screen. A newer withdrawal in Kennra always wins (NEWER_WITHDRAWAL_WINS), each person, purpose, channel and externalRef is imported once, and an installation imports at most 25,000 grants a day. A historical withdrawal needs no more than kennra:consent:write.
  • Consent changes out. Subscribe to kennra.consent.changed. You get every change for people you hold in a sync or program target, with only your own identifiers, and the next delta removes people who lost consent.
  • Engagement. recordEngagement reports delivered, opened, clicked, bounced, complained and unsubscribed. Kennra keeps daily totals per person and channel, never one record per message, and counts each event id once. Totals show on the person, in segments (engagement condition) and in the MCP person context.

The App SDK

@kennra/app-sdk is a TypeScript library built on web-standard Request and Response. An app is one fetch handler. The SDK routes Kennra's calls from the manifest, verifies every signature before your handler runs, and fetches and caches installation tokens.

import { createApp } from '@kennra/app-sdk';
import manifest from './kennra-app.yaml' with { type: 'text' };
 
const app = createApp({
  manifest,
  kennra: {
    baseUrl: 'https://api.kennra.com',
    clientId: 'fjellsport--erp-sync',
    clientSecret: process.env.KENNRA_APP_CLIENT_SECRET!,
  },
}).on('kennra.deal.won', async ({ event, ctx }) => {
  // ctx.kennra is a client for this installation: graphql, ingest, state, reports.
  await ctx.state.put('lastDealWon', event.id);
});
 
Bun.serve({ port: 4300, fetch: app.fetch });
PartWhat it gives you
createAppHandlers: .on(eventType), .lookup(object), .schedule(id), .onLifecycle, .onErasure, .segmentSync, .programTarget, .onConnectionTest, .onDisconnect, .route
ctxinstallationId, workspace, config, secrets, state and kennra, the installation client
InstallationClientgraphql, ingest (chunked, retries on 429 and 503), reportRun, completeSetup, the installation store, and forMember(email or user id) for a delegated client
KennraAppClientforInstallation(id) and installationsFor(externalOrganization)
@kennra/app-sdk/signaturesign and verify for Standard Webhooks signatures
@kennra/app-sdk/manifestdefineManifest, validateManifest and the manifest schema
@kennra/app-sdk/testingFakeKennra, recordedFetch and conformance checks for tests

Build and test an app

kennra apps init fjellsport--erp-sync --template automation   # manifest, handler and a test with recorded fixtures
cd fjellsport--erp-sync && bun install
bun test                                                      # runs the app against FakeKennra, no workspace needed
kennra apps validate -f kennra-app.yaml

Templates are connector (mirrors records from your system) and automation (reacts to events). The test runs the app against FakeKennra from @kennra/app-sdk/testing, so you need no workspace and no network.

To run the app against a workspace, a workspace admin creates a private app in a test workspace under Settings → Apps → Private apps, with the scopes the manifest asks for. Put its client id and secret in the app's environment and start it:

KENNRA_URL=https://api.kennra.com KENNRA_APP_CLIENT_SECRET='<client secret>' PORT=4300 bun start

The app gets its installation token from https://api.kennra.com/apps/token. Without a public URL for webhooks, read the event feed, or forward the workspace's events to your machine with kennra listen. See Webhooks.