Skip to main content

Agents

The AI agents you test: a name and a model configuration (provider, endpoint and a ${VARIABLE} reference to the secret holding its key). Campaigns and runs target an agent.

📄️Create an 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.