Actions
| Action | Description |
|---|---|
| ListAgents | List all registered agents |
| CreateAgent | Register a new agent |
| GetAgent | Get details for a specific agent |
| UpdateAgent | Update an agentβs configuration |
| DeleteAgent | Delete a registered agent |
ListAgents
Returns a list of all agents registered to your account.Request Syntax
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| include_archived | Boolean | No | Include archived agents. Default: false. |
Response Syntax
Response Elements
| Element | Type | Description |
|---|---|---|
| data | Array | List of agent objects. |
| data[].id | String | Unique agent identifier. Format: agent-{uuid}. |
| data[].name | String | Agent display name. |
| data[].hub | String | Model provider. See Supported Hubs. |
| data[].model_name | String | Model identifier at the provider. |
| data[].status | String | Agent status: active or archived. |
| data[].trust_score | Number | Latest Trust Score (0.0β1.0). Null if not evaluated. |
| data[].created_at | String | ISO 8601 timestamp of creation. |
Example
Request:CreateAgent
Registers a new agent with Vijil. The agent can then be evaluated and protected with Dome guardrails.Request Syntax
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| agent_name | String | Yes | Display name for the agent. Must be unique within your account. |
| hub | String | Yes | Model provider. See Supported Hubs. |
| model_name | String | Yes | Model identifier (e.g., gpt-4o, claude-3-sonnet). |
| api_key_value | String | Conditional | API key for the model provider. Required if api_key_name not provided. |
| api_key_name | String | Conditional | Name of a stored API key. Required if api_key_value not provided. |
| agent_system_prompt | String | No | System prompt to use when evaluating the agent. |
| model_url | String | Conditional | Endpoint URL for custom hub. Required if hub is custom. |
| hub_config | Object | Conditional | Provider-specific configuration. Required for bedrock and vertex. See Hub Configuration. |
Hub Configuration
For AWS Bedrock:Response Syntax
Response Elements
| Element | Type | Description |
|---|---|---|
| id | String | Unique agent identifier. Format: agent-{uuid}. |
| name | String | Agent display name. |
| hub | String | Model provider. |
| model_name | String | Model identifier. |
| status | String | Initial status. Always active for new agents. |
| created_at | String | ISO 8601 timestamp of creation. |
Errors
| Error | HTTP Status | Description |
|---|---|---|
InvalidRequestException | 400 | Request body is malformed or missing required fields. |
InvalidApiKeyException | 401 | Vijil API key is invalid or expired. |
AgentAlreadyExistsException | 409 | An agent with this name already exists. |
InvalidHubException | 400 | The specified hub is not supported. |
Example
Request:GetAgent
Retrieves details for a specific agent.Request Syntax
URI Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| agent_name | String | Yes | The agentβs display name. |
Response Syntax
Response Elements
| Element | Type | Description |
|---|---|---|
| id | String | Unique agent identifier. |
| name | String | Agent display name. |
| hub | String | Model provider. |
| model_name | String | Model identifier. |
| status | String | Agent status: active or archived. |
| trust_score | Number | Latest Trust Score (0.0β1.0). Null if not evaluated. |
| agent_system_prompt | String | System prompt. Null if not set. |
| created_at | String | ISO 8601 timestamp of creation. |
| updated_at | String | ISO 8601 timestamp of last update. |
Errors
| Error | HTTP Status | Description |
|---|---|---|
AgentNotFoundException | 404 | Agent does not exist. |
Example
Request:UpdateAgent
Updates an existing agentβs configuration.Request Syntax
URI Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| agent_name | String | Yes | Current agent name. |
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| new_agent_name | String | No | New display name for the agent. |
| agent_system_prompt | String | No | Updated system prompt. |
| api_key_value | String | No | New API key for the model provider. |
| api_key_name | String | No | Name of a stored API key to use. |
Response Syntax
Errors
| Error | HTTP Status | Description |
|---|---|---|
AgentNotFoundException | 404 | Agent does not exist. |
AgentAlreadyExistsException | 409 | An agent with the new name already exists. |
Example
Request:DeleteAgent
Permanently deletes an agent and disassociates it from any evaluations.Request Syntax
URI Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| agent_name | String | Yes | The agentβs display name. |
Response Syntax
Errors
| Error | HTTP Status | Description |
|---|---|---|
AgentNotFoundException | 404 | Agent does not exist. |
Example
Request:Supported Hubs
| Hub | Description |
|---|---|
openai | OpenAI GPT models (GPT-4, GPT-4o, etc.) |
anthropic | Anthropic Claude models |
bedrock | AWS Bedrock foundation models |
bedrockAgents | AWS Bedrock Agents |
vertex | Google Vertex AI |
digitalocean | DigitalOcean GenAI |
custom | Any OpenAI-compatible endpoint |
See Also
- API Overview β Authentication and error handling
- Python Client Reference β Full Python SDK documentation
- Evaluations API β Evaluation endpoints