v1

latestOpenAPI 3.1.02026-08-04222461539.5 KB
agents

Create an agent

post/agents

Query parameters

environmentIdstring required

Environment ID

Headers

Authorizationstring required

Bearer authentication

X-Disable-Hooks'true' required

Request body

topicsTypeEventsEventTopic[]

The topics the agent should listen for

compiler'js'

The compiler of the agent

sourcestring

The source of the agent

sourceMapstring

The source map of the agent

slugstring

The slug of the agent

optionsobject

This field is deprecated and will be removed in the future. Use the template and templateOptions fields instead.

template'constraints' | 'autobuild' | 'autocast' | 'webhook-egress' | 'action-listener' | 'automap'

The template of the agent

isSystemboolean

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

namespacestring

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.

packageVersionsobject

Package versions information for the agent

commitInfoobject

Commit information for the agent

Response

Response with status 200