Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

KnowBe4

KnowBe4 connects Stackyapper to your security awareness account summary, risk-score history, users, groups, phishing campaigns and test results, training campaigns and enrollments, ModStore purchases, and security policies. All 24 KnowBe4 tools in Stackyapper are read-only.
See the KnowBe4 tools and API reference to match any Stackyapper knowbe4_* tool to its KnowBe4 Reporting API endpoint and access level.

How authentication works

KnowBe4 uses an Organization connection in Stackyapper. A workspace owner or admin sets up the shared connection once; if you use managed customer workspaces, start in your managing workspace.
The connection stores two values fixed to one KnowBe4 account and region:
  • KnowBe4 reporting API key: your KnowBe4 Reporting API token, sent as a Bearer token in the Authorization header.
  • API region (us, eu, ca, uk, or de): selects the matching regional KnowBe4 Reporting API host.

Prepare KnowBe4

Confirm your KnowBe4 region and generate a Reporting API token before connecting in Stackyapper.
  1. Confirm your KnowBe4 region
    Match the region where your KnowBe4 console is hosted to the exact lowercase code Stackyapper expects (see the KnowBe4 Reporting API documentation):
    RegionValue to enter in StackyapperAPI host used
    United Statesushttps://us.api.knowbe4.com
    European Unioneuhttps://eu.api.knowbe4.com
    Canadacahttps://ca.api.knowbe4.com
    United Kingdomukhttps://uk.api.knowbe4.com
    Germanydehttps://de.api.knowbe4.com
  2. Generate a KnowBe4 Reporting API token
    Your KnowBe4 account must have Reporting API access enabled.
    1. Sign in to your KnowBe4 console as an administrator.
    2. Select your account email in the top-right corner and open Account Settings → Account Integrations → API.
    3. Turn on Enable Report API Access, then open Reporting API.
    4. Select + Create New API Token, give it a clear name (for example, Stackyapper), and copy the generated token immediately.
    Copy the Reporting API token when KnowBe4 displays it and store it securely. Never paste API tokens into chat messages or tickets.

Connect in Stackyapper

  1. Save the KnowBe4 connection
    1. Open Apps → KnowBe4 in Stackyapper and select Add connection.
    2. Paste only the raw token (without a Bearer prefix) into KnowBe4 reporting API key.
    3. In API region (us, eu, ca, uk, or de), enter your lowercase region code: us, eu, ca, uk, or de.
    4. Select Connect.
    Stackyapper saves the connection as Configured and checks it on the first real call.
  2. Verify with a read-only call
    Grant yourself access to read account details (knowbe4_account_get), run that read from a connected AI client, and confirm it returns the intended KnowBe4 account in Audit.

Rotate credentials or change region

  • Rotate the API token: Create a replacement token in KnowBe4 (Account Settings → Account Integrations → API → Reporting API), open Apps → KnowBe4 → Manage connection in Stackyapper, enter the new KnowBe4 reporting API key, and select Save changes. Confirm a read call succeeds in Audit before revoking the previous token in KnowBe4.
  • Change the region: Open Apps → KnowBe4 → Manage connection, update API region (us, eu, ca, uk, or de) together with the Reporting API token for that regional KnowBe4 account, and select Save changes.

Permissions and access controls

  • Read-only surface: All 24 KnowBe4 tools perform GET reads only. To create or edit users, groups, phishing campaigns, training campaigns, or policies, open KnowBe4 directly.
  • Access controls: Connecting KnowBe4 does not grant every user every tool. Workspace owners and admins control which groups and users can run KnowBe4 tools in Tools & access and App limits. See Understand access.

What your AI client can work with

Stackyapper’s KnowBe4 app provides 24 read-only tools:
AreaExamples
Account and risk historyCurrent account subscription, seats, admins, and risk score; account risk-score history
Users and groupsList users (with optional status of active or archived and group_id filters), inspect user details and risk-score history, list groups, inspect group members and group risk-score history
Phishing simulationsList and inspect phishing campaigns, list Phishing Security Tests across campaigns or for one campaign, inspect test details and recipient-level results
Training and ModStoreList and inspect training campaigns, review training enrollments and completion state, list and inspect ModStore purchases
Security policiesList and inspect security policies and acknowledgement details

Pagination and IDs

List tools return up to 500 records per page (default per_page is 100, starting at page 1). Detail lookups use KnowBe4’s positive numeric IDs for users, groups, campaigns, Phishing Security Tests, recipients, enrollments, purchases, and policies.
KnowBe4 tools and API reference
Search all 24 KnowBe4 tools and match each one to its KnowBe4 Reporting API endpoint and access level.

Troubleshooting

Connection is saved, but every call fails immediately
Cause: API region (us, eu, ca, uk, or de) was not entered as one of the exact lowercase codes (us, eu, ca, uk, or de) — for example, it includes uppercase letters, extra spaces, or a full URL.
Fix: Open Apps → KnowBe4 → Manage connection, enter lowercase us, eu, ca, uk, or de in API region (us, eu, ca, uk, or de), and select Save changes.
Credentials rejected (401)
Cause: The Reporting API token is invalid, expired, or revoked, was pasted with a Bearer prefix, or belongs to a different KnowBe4 region.
Fix: Confirm API region (us, eu, ca, uk, or de) matches your KnowBe4 console’s region, paste only the raw token in Manage connection, and retry.
Access denied (403)
Cause: Reporting API access is not enabled for your KnowBe4 account, or the token cannot access the requested reporting endpoint.
Fix: In KnowBe4, confirm Enable Report API Access is enabled under Account Settings → Account Integrations → API and verify your account includes Reporting API access.
Rate limited by KnowBe4 (429)
Cause: KnowBe4 temporarily throttled requests for this Reporting API token.
Fix: Wait briefly before retrying and narrow list queries using page, per_page, or user filters (status, group_id).
Teammates cannot see or run KnowBe4 tools
Cause: Saving the organization connection supplies the credential, but tool access is still governed by workspace permissions.
Fix: Open Tools & access in Stackyapper and assign the required KnowBe4 tools to the appropriate groups or users. See Understand access.