# KnowBe4 integrations: phishing campaigns

> KnowBe4 is a security awareness training platform that runs simulated phishing tests, assigns training to employees, and scores each user's risk.

**Canonical page:** https://tray.ai/connectors/knowbe4-integrations/
**Categories:** Security and compliance
**Connects through:** HTTP Connector

## Overview

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.

## Use cases

### Users

Read users in KnowBe4 from any Tray.ai workflow. The KnowBe4 API covers calls such as list users and get a user.

- List users
- Get a user
- Get user risk score history

### Groups

Read groups in KnowBe4 from any Tray.ai workflow. The KnowBe4 API covers calls such as list groups and get a group.

- List groups
- Get a group
- List group members

### Phishing campaigns

Read phishing campaigns in KnowBe4 from any Tray.ai workflow. The KnowBe4 API covers calls such as list phishing campaigns and get a phishing campaign.

- List phishing campaigns
- Get a phishing campaign

### Phishing security tests

Read phishing security tests in KnowBe4 from any Tray.ai workflow. The KnowBe4 API covers calls such as list phishing tests and get a phishing test.

- List phishing tests
- Get a phishing test
- List recipient results

### Training

Read training in KnowBe4 from any Tray.ai workflow. The KnowBe4 API covers calls such as list training campaigns and list training enrollments.

- List training campaigns
- List training enrollments
- Get a training enrollment

### User events

Read, create, and delete user events in KnowBe4 from any Tray.ai workflow. The KnowBe4 API covers calls such as list events and post new events.

- List events
- Post new events
- Delete an event

## Challenges Tray.ai solves

### Keeping KnowBe4 credentials out of logs

A raw API call usually means pasting a key or token into the request, where it ends up in step inputs, logs, and screenshots.

**How Tray.ai helps:** Store KnowBe4 credentials once as a Tray.ai authentication and reference them from the HTTP Connector. Tray.ai masks authentication values in logs, so the secret never shows up in a step's input or output.

### Going from the KnowBe4 API docs to a working call

Translating an example request from API docs into a workflow step means copying the method, URL, headers, and body by hand.

**How Tray.ai helps:** Paste a cURL example from the KnowBe4 API docs into the HTTP Connector and Tray.ai fills in the method, URL, headers, and body for you.

### Handling files and non-JSON responses

Not every API answers in JSON. Some return XML, files, or binary data, or expect a multipart upload.

**How Tray.ai helps:** The HTTP Connector parses JSON and XML responses, returns files you can pass to the next step, and sends multipart form data for uploads.

## Frequently asked questions

### Does Tray.ai connect to KnowBe4?

Yes. Tray.ai connects to KnowBe4 through the HTTP Connector, which calls the KnowBe4 API directly. Any call the KnowBe4 API documents can run as a step in a Tray.ai workflow. API access comes through KnowBe4's partner program or API plan, so you need approved credentials first.

### 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.

### Can I get a dedicated KnowBe4 connector?

KnowBe4 runs through the HTTP Connector rather than a dedicated connector. If your team wants one, the Tray.ai connector SDK can build a dedicated KnowBe4 connector from the KnowBe4 API.

## Learn more

- Intelligent Integration: https://tray.ai/platform/intelligent-ipaas/
- Merlin Agent Builder: https://tray.ai/platform/merlin-agent-builder/
- Agent Gateway for MCP: https://tray.ai/platform/agent-gateway/
- Book a demo: https://tray.ai/contact/
