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
- 201
- 400
- 401
- 403
- 429
Created
Validation error: the request is invalid and nothing was changed.
Missing, invalid, expired or revoked credential, or a credential this endpoint does not accept.
The credential may not do this (for example a run token outside its own run, or a caller without an organization), or the installation is read-only because its license is not valid (code: license_read_only).
Rate limited: retry after the number of seconds in the Retry-After header.