Self-Service Events API
Overview
The Self-Service Events API tells you the moment something happens in AttackForge, such as a vulnerability being created or a project changing status. Your systems react straight away, instead of checking the API over and over for changes.
Each user can receive only the events an administrator has given them access to.
Why it matters
Benefit
What it means
Real time
React as soon as something changes, not on the next scheduled check
Less load
No need to poll the Self-Service API repeatedly
Event-driven automation
Start Flows, tickets, alerts and AI agents from AttackForge events
Least privilege
Every event is off by default. Each user, or group, gets only the events they need.
Each user has their own key
Connections are tied to a person, so they're easy to trace
Who uses it
Role
Typical use
Administrators
Grant events to users and groups
Automation builders
Trigger Flows and AI agentic workflows from events
Developers and integration engineers
Stream events into ticketing, chat, SIEM and data platforms
Security operations teams
Get alerted when Critical findings are raised or SLAs change
Choose how to use events
Option
Best for
How
Flows
Automation inside AttackForge, with no code to host
Choose an event as a Flow's trigger. See Flows.
WebSocket client
Your own service that listens for events
Connect to the Events channel with your API key. See the Events API documentation.
See which events you can use
Go to Integration Docs in the main menu to see the events.
A padlock next to an event means you don't have access to it.
You can get access in two ways:
An administrator gives you access to the event directly.
An administrator gives a group access to the event, and you're a member of that group.

Give users access to events
Give one user access
Go to Users, select the user, and click Access.
Expand Events (Flows / Self-Service API), and click Add Events.
Select the events, and click Add.




Give a group access
Go to Groups, select the group, and click Other Access.
Expand Events (Flows / Self-Service API), and click Add Events.
Select the events, and click Add.





Create your API key
You need an API key to connect to the Events channel. It's the same key you use for the Self-Service RESTful API.
Log in to AttackForge, and go to Profile.
Click Secrets.
Under API Key, click View Key, Copy Key or Rotate Key.


Receive events
In a Flow
Create a Flow, and choose an event as its trigger. The Flow runs each time the event happens. See Flows.
With a WebSocket client
Connect your own WebSocket client to the Events channel, sign in with your API key, and subscribe to the events you have access to. For the connection URL, message format and event payloads, see the Events API documentation.
Tips
Use Flows unless you need your own service. Flows react to events with no code to host. Use a WebSocket client when your own system needs the events.
Grant events to groups. Group access is easier to manage and review than user-by-user access.
Subscribe only to what you need. Fewer events means less noise and less processing.
Use a dedicated user for integrations. A listener with its own user and key is easy to trace and to switch off.
Reconnect automatically. WebSocket connections can drop, so build your client to reconnect and resubscribe.
Fetch details with the API. When an event arrives, use the Self-Service RESTful API to get any extra data you need.
Start an AI agent from an event. Combine an event-triggered Flow with an agent. See AI agentic workflows.
Keep your key secret, and rotate it if it may have been exposed.
FAQ
Why do I see a padlock next to an event? You don't have access to it. Ask an administrator to give you, or one of your groups, access.
I'm an administrator. Why can't I receive events? Every event is off by default, including for administrators. Give yourself access to the events you need.
What's the difference between events and the Self-Service RESTful API? The API answers when you ask. Events tell you when something changes, without you asking.
Do I need to write code? No, if you use Flows. Yes, if you connect your own WebSocket client.
Is the Events API key the same as my Self-Service API key? Yes.
Can an administrator create or see my API key? No. Only you can create, view and rotate your own key.
Where's the list of events? In Integration Docs in the app, and in the Events API documentation.
Related pages
Events API documentation: every event, and how to connect.
Flows: trigger automation from events.
Self-Service RESTful API: read and change data, and create your API key.
AI agentic workflows: start AI agents from Flows.
AI MCP and Skills: let AI assistants work with your data.
Administration: manage users and groups.
Last updated