
Connectors / Security and compliance · HTTP Connector
Automate KnowBe4 with Tray.ai
KnowBe4 is a security awareness training platform that runs simulated phishing tests, assigns training to employees, and scores each user's risk.
What can you do with KnowBe4 on Tray.ai?
KnowBe4 is a security awareness training platform that runs simulated phishing tests, assigns training to employees, and scores each user's risk. Tray.ai connects to KnowBe4 through the HTTP Connector, so your workflows can call the KnowBe4 API alongside the rest of your stack. API access comes through KnowBe4's partner program or API plan, so you need approved credentials first.
- List recipient results after each phishing test and send the people who clicked to the security team.
- Get user risk score history and include it in the security team's monthly report.
- List training enrollments and remind staff with overdue training in your team chat.
- Connects through
- HTTP Connector
- Authentication
- A bearer token
- Base URL
- https://us.api.knowbe4.com/v1
Set it up
Connect KnowBe4 to Tray.ai
Each step uses KnowBe4's own API details, from its documentation.
Step 1
Save KnowBe4's API token
Ask KnowBe4 for API access. Once it's approved, save the token KnowBe4 issues as a Tray.ai authentication. The HTTP Client sends it as a bearer token on every call. The token stays out of the workflow and out of the logs.
Step 2
Point the HTTP Client at the API
Add an HTTP Client step and use https://us.api.knowbe4.com/v1 as the base URL. Or paste a cURL example from KnowBe4's API docs, and Tray.ai fills in the method, URL, and headers.
Step 3
Start with “List users”
It's one of 17 documented actions, under Users. The response comes back as data the next step can map into your other apps.
Step 4
Hand it to an AI agent
Wrap “Get a user” and “Get user risk score history” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.
Workflows to build with KnowBe4
Each one uses actions and events from KnowBe4's own API documentation.
Report KnowBe4 risk scores to Snowflake weekly
When
On a schedule
Then
- List users
- Get user risk score history
- Load the scores into a table in Snowflake
With Snowflake
Open ServiceNow tasks for failed KnowBe4 phishing tests
When
On a schedule
Then
- List phishing tests
- List recipient results
- Create a follow-up task in ServiceNow for each failure
With ServiceNow
Apps you can build on KnowBe4 data
Internal tools your team can build with an AI assistant, each one using KnowBe4 calls from its API documentation.
Phish-prone user report
Lists users with their risk score history and phishing test results so security can target training.
Training completion tracker
Shows training enrollments by group so managers can chase people who have not finished.
Give your AI agents KnowBe4 tools
Build an MCP server on KnowBe4 in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works
- List users
- List groups
- List phishing campaigns
- List phishing tests
- List training campaigns
- List events
- Get a user
- Get user risk score history
What the KnowBe4 API covers
6 resources and 17 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. KnowBe4 gives API access on request, so approved credentials come first. Connecting it takes a few clicks: here's how.
Users
- List users
- Get a user
- Get user risk score history
Groups
- List groups
- Get a group
- List group members
Phishing campaigns
- List phishing campaigns
- Get a phishing campaign
Phishing security tests
- List phishing tests
- Get a phishing test
- List recipient results
Training
- List training campaigns
- List training enrollments
- Get a training enrollment
User events
- List events
- Post new events
- Delete an event
Checked against KnowBe4's own documentation on 2026-10-22
How Tray.ai makes this work
KnowBe4 plugs into the whole Tray.ai platform
Intelligent Integration
Integrate and automate across 12,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn more →Agent Builder
Build AI agents that read, write, and take action in KnowBe4 — with guardrails, audit, and human-in-the-loop.
Learn more →Agent Gateway for MCP
Expose KnowBe4 actions as governed MCP tools — observable, rate-limited, authenticated.
Learn more →Tray Helix
Build apps on KnowBe4 data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn more →More security and compliance apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every security and compliance connector →
Frequently asked questions
What can a Tray.ai workflow do in KnowBe4?
+
The KnowBe4 API documents 17 actions across 6 resources (Users, Groups, Phishing campaigns, Phishing security tests, Training, User events). For example: List users; List groups; List phishing campaigns. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with KnowBe4?
+
The KnowBe4 API uses a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
Do I need special access to the KnowBe4 API?
+
Yes. KnowBe4 gives API access on request, so you need approved credentials before a Tray.ai workflow can call it.
See KnowBe4 working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks — someone from our team will be in touch soon.