Create an agent

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

X-Disable-Hooks"true"Required

Query parameters

environmentIdstringRequired

Environment ID

Request

This endpoint expects an object.
topicslist of enumsOptional

The topics the agent should listen for

compilerenumOptional

The compiler of the agent

Allowed values:
sourcestringOptional

The source of the agent

sourceMapstringOptional

The source map of the agent

slugstringOptional

The slug of the agent

optionsmap from strings to anyOptional

Options for the agent

isSystembooleanOptional

Whether the agent is a system agent. This should be false for all agents created by users.

Response

This endpoint returns an object.
dataobjectOptional

Errors