Skip to main content

Create an agent

POST 

/agent

Registers an agent to test in the caller's organization, owned by the caller. config is a hackagent model configuration: the model name and its connection. agent_type and endpoint are copied from config.connection and cannot be set directly. Credentials are never stored with the agent: config.connection.api_key must be a ${VARIABLE} reference to an organization secret (see POST /secret), and a literal credential anywhere in config is refused with 400. Names are unique within an organization. 403 when the caller has no organization.

Request​

Responses​

Created