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
template
The template of the agent; Template options are required for templated agents.
templateOptions
The options for a templated agent. Must be provided if template
is provided.
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.
packageVersions
Package versions information for the agent
commitInfo
Commit information for the agent
optionsDeprecated
This field is deprecated and will be removed in the future. Use the template
and templateOptions
fields instead.
Response
This endpoint returns an object.
data