Create an agent
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
X-Disable-Hooks
Query parameters
environmentId
Environment ID
Request
This endpoint expects an object.
topics
The topics the agent should listen for
compiler
The compiler of the agent
Allowed values:
source
The source of the agent
sourceMap
The source map of the agent
slug
The slug of the agent
options
Options for the agent
isSystem
Whether the agent is a system agent. This should be false for all agents created by users.
namespace
The namespace this agent should be limited to. Right now, this is information only and not used to actually filter agents that run, so you must still specify the namespace filter in the agent code.
Response
This endpoint returns an object.
data