Actions
| Action | Description |
|---|---|
| GetAgentConfig | Get guardrail configuration for an agent |
| GetDefaultConfig | Get the default guardrail configuration |
| UpdateAgentConfig | Update an agent’s guardrail configuration |
| DeleteConfig | Delete a guardrail configuration |
| ListDetectors | List available detection methods |
| GetDetectorInfo | Get details for a specific detector |
GetAgentConfig
Retrieves the guardrail configuration for a specific agent.Request Syntax
URI Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| agent_id | String | Yes | The agent identifier. Format: agent-{uuid}. |
Response Syntax
Response Elements
| Element | Type | Description |
|---|---|---|
| id | String | Configuration identifier. Format: dome-config-{uuid}. |
| agent_id | String | Associated agent identifier. |
| input-guards | Array of String | Guards to run on input. |
| output-guards | Array of String | Guards to run on output. |
| input-early-exit | Boolean | Stop on first input guard trigger. Default: false. |
| output-early-exit | Boolean | Stop on first output guard trigger. Default: false. |
| input-run-parallel | Boolean | Run input guards in parallel. Default: false. |
| output-run-parallel | Boolean | Run output guards in parallel. Default: false. |
| <guard-name> | Object | Guard configuration. See Guard Object. |
Guard Object
| Element | Type | Description |
|---|---|---|
| type | String | Guard type: security, moderation, or privacy. |
| methods | Array of String | Detection methods to use. See Available Detectors. |
| threshold | Number | Detection threshold (0.0–1.0). Default varies by method. |
Errors
| Error | HTTP Status | Description |
|---|---|---|
AgentNotFoundException | 404 | Agent does not exist. |
ConfigNotFoundException | 404 | No configuration exists for this agent. |
Example
Request:GetDefaultConfig
Retrieves the default guardrail configuration. Use this as a starting point for custom configurations.Request Syntax
Response Syntax
Example
Request:UpdateAgentConfig
Updates or creates a guardrail configuration for an agent. The configuration is replaced entirely—include all guards you want active.Request Syntax
URI Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| agent_id | String | Yes | The agent identifier. |
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| input-guards | Array of String | No | Guards to run on input. Default: []. |
| output-guards | Array of String | No | Guards to run on output. Default: []. |
| input-early-exit | Boolean | No | Stop on first input guard trigger. Default: false. |
| output-early-exit | Boolean | No | Stop on first output guard trigger. Default: false. |
| input-run-parallel | Boolean | No | Run input guards in parallel. Default: false. |
| output-run-parallel | Boolean | No | Run output guards in parallel. Default: false. |
| <guard-name> | Object | Yes | Configuration for each guard listed in input-guards or output-guards. |
Guard Configuration
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | String | Yes | Guard type: security, moderation, or privacy. |
| methods | Array of String | Yes | Detection methods. See Available Detectors. |
| threshold | Number | No | Detection threshold (0.0–1.0). |
Response Syntax
Errors
| Error | HTTP Status | Description |
|---|---|---|
InvalidRequestException | 400 | Configuration is malformed. |
AgentNotFoundException | 404 | Agent does not exist. |
InvalidDetectorException | 400 | One or more detection methods do not exist. |
Example
Request:DeleteConfig
Permanently deletes a guardrail configuration.Request Syntax
URI Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| dome_config_id | String | Yes | The configuration identifier. |
Response Syntax
Errors
| Error | HTTP Status | Description |
|---|---|---|
ConfigNotFoundException | 404 | Configuration does not exist. |
Example
Request:ListDetectors
Returns a list of available detection methods that can be used in guard configurations.Request Syntax
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | String | No | Filter by detector type: security, moderation, or privacy. |
Response Syntax
Response Elements
| Element | Type | Description |
|---|---|---|
| data[].id | String | Detector identifier used in configurations. |
| data[].name | String | Human-readable detector name. |
| data[].type | String | Detector type: security, moderation, or privacy. |
| data[].description | String | What the detector catches. |
| data[].default_threshold | Number | Default detection threshold. |
Example
Request:GetDetectorInfo
Retrieves detailed information about a specific detection method.Request Syntax
URI Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| detector_id | String | Yes | The detector identifier. |
Response Syntax
Errors
| Error | HTTP Status | Description |
|---|---|---|
DetectorNotFoundException | 404 | Detector does not exist. |
Example
Request:Available Detectors
Security Detectors
| Detector ID | Description |
|---|---|
prompt-injection-mbert | Multilingual BERT-based injection detection |
prompt-injection-deberta-v3-base | DeBERTa-based injection detection (recommended) |
encoding-heuristics | Base64, Unicode, and encoding attack detection |
security-embeddings | Semantic similarity to known attack patterns |
Moderation Detectors
| Detector ID | Description |
|---|---|
moderation-flashtext | Fast keyword-based toxicity detection |
moderation-deberta | Neural toxicity classification |
moderations-oai-api | OpenAI Moderation API |
moderation-llamaguard | Llama Guard safety model |
Privacy Detectors
| Detector ID | Description |
|---|---|
privacy-presidio | PII detection (names, emails, SSN, etc.) |
detect-secrets | API keys, passwords, credentials |
Loading Configuration in Dome SDK
Pull configuration from the API when initializing the Dome SDK locally:See Also
- API Overview — Authentication and error handling
- Protection Overview — Dome concepts and usage
- Configuring Guardrails — Detailed guard configuration
- Python Client Reference — Full Python SDK documentation