Skip to content
AgentIDDocs

Type at least two characters to search titles, headings and content.

↑ ↓ to navigate↵ to open
AgentID Docs

API reference · Config

Get the effective runtime configuration

Returns the effective guardrail configuration of the API key's AI system. SDKs read it to decide shadow mode, fail-open or fail-closed behaviour, SDK-side masking and restoration. /api/v1/config is an alias of this endpoint.

GEThttps://app.getagentid.com/api/v1/agent/config

Only sk_live_ keys are accepted.

Authentication

Send one of these headers (either is accepted):

x-agentid-api-key: <API key>

AgentID API key of the AI system, for example x-agentid-api-key: sk_live_....

Authorization: Bearer <API key>

The same API key passed as Authorization: Bearer sk_live_....

Parameters

query parameters

system_idstring<uuid>

Optional check. If it does not match the API key's system, the endpoint returns 436.

clientstring

Optional. The integration that is calling. When the API key's AI system is set up for a different integration (for example a Claude Desktop key used in the browser extension), the response carries integration_mismatch. It is informational: the key, its permissions and the failure policy are unchanged.

One of: browser_extension, claude_desktop, windows_endpoint

Example request

curl -X GET "https://app.getagentid.com/api/v1/agent/config" \
  -H "x-agentid-api-key: $AGENTID_API_KEY"

Responses

200Effective runtime configuration.

›Response schemaAgentConfigResponse
system_idstring<uuid>required
sourcestringrequired

Value: remote

shadow_modebooleanrequired
strict_security_modebooleanrequired
failure_modestringrequired

Shadow Mode always resolves to fail_open. Failure mode and shadow mode follow the organization default unless the AI system overrides them.

One of: fail_open, fail_close

block_pii_leakagebooleanrequired
enable_sdk_pii_maskingbooleanrequired
allow_client_deanonymizationbooleanrequired
versioninteger | string | null
updated_atstring<date-time> | null<date-time>
policy_revisionstring

Changes whenever the effective configuration changes.

protection_noticeobject

Optional. The organization's shadow-mode notice setting for the browser extension (a muted line under the AI tool's own disclaimer). Present only when the server sends it (feature switch on and the setting could be read); a client that does not know it ignores it. It is not part of policy_revision. A Chrome managed policy that sets showProtectionNotice overrides it.

›Show child attributes
enabledbooleanrequired
textstringrequired

Fixed wording; the client holds the localised sentences.

One of: monitored, secured

attachment_deliveryobject

Whether clients may opt in to native attachment delivery and restore output files.

›Show child attributes
versioninteger

Value: 1

nativeboolean
max_inline_bytesinteger
download_restorationboolean
acceptsarray<string>

Values a client may send in attachment_delivery.accepts.

token_continuityobject

Present when Guard keeps tokens stable across a conversation (send token_continuity on Guard requests).

›Show child attributes
versioninteger

Value: 1

integration_mismatchobject

Present only when the request names a client and the AI system is set up for another integration. Show message to the user; nothing else changes.

›Show child attributes
errorstring

Value: integration_type_mismatch

reasonstring

Value: integration_type_mismatch

messagestring

Human-readable explanation, naming the integration the system is set up for.

system_integrationstring

The integration the AI system is set up for.

clientstring

The client value from the request.

block_on_heuristicboolean
block_on_injectionboolean
block_on_jailbreakboolean
block_secret_leakageboolean
enable_sdk_secret_maskingboolean
block_code_executionboolean
block_toxicityboolean
block_db_accessboolean
inject_transparency_metadataboolean
transparency_metadata_enabledboolean
require_bidirectional_auditboolean
block_piiboolean

Legacy alias of block_pii_leakage.

block_codeboolean

Legacy alias of block_code_execution.

block_toxicboolean

Legacy alias of block_toxicity.

block_dbboolean

Legacy alias of block_db_access.

Additional properties are accepted.

{
  "system_id": "00000000-0000-0000-0000-000000000000",
  "version": 3,
  "updated_at": "2026-10-01T11:49:55.662Z",
  "policy_revision": "p1:4f9a0c2e7b1d4a6f8e3c5b7d9a1f2e4c",
  "source": "remote",
  "shadow_mode": false,
  "strict_security_mode": true,
  "failure_mode": "fail_close",
  "block_on_heuristic": true,
  "block_on_injection": true,
  "block_on_jailbreak": true,
  "block_pii_leakage": false,
  "enable_sdk_pii_masking": true,
  "block_secret_leakage": false,
  "enable_sdk_secret_masking": true,
  "allow_client_deanonymization": true,
  "block_code_execution": false,
  "block_toxicity": true,
  "block_db_access": false,
  "inject_transparency_metadata": false,
  "transparency_metadata_enabled": false,
  "require_bidirectional_audit": false,
  "block_pii": false,
  "block_code": false,
  "block_toxic": true,
  "block_db": false
}

401Missing, invalid or revoked API key, or a `system_id` that does not match the key.

›Response schemaSimpleErrorResponse
errorstringrequired
reasonstring
detailsany

Validation details or a short diagnostic. Never the value you sent. Validation failures (400) are { formErrors: string[], fieldErrors: { <field>: string[] } } whose messages are stable codes such as invalid_type: expected string, too_small: minimum 1, too_big: maximum 10, invalid_enum_value, invalid_string or unrecognized_keys. A server-side failure (5xx, and the 404 of /feedback) carries one lowercase string: a sentinel with an underscore (rpc_failed), one of the classes constraint_violation, permission_denied, timeout, schema_mismatch, network or parse_error, or the fallback runtime_error. Do not parse these values for content.

Additional properties are accepted.

{
  "error": "Unauthorized"
}

436The API key is valid, but the requested `system_id` does not match it or the system could not be found.

›Response schemaSimpleErrorResponse
errorstringrequired
reasonstring
detailsany

Validation details or a short diagnostic. Never the value you sent. Validation failures (400) are { formErrors: string[], fieldErrors: { <field>: string[] } } whose messages are stable codes such as invalid_type: expected string, too_small: minimum 1, too_big: maximum 10, invalid_enum_value, invalid_string or unrecognized_keys. A server-side failure (5xx, and the 404 of /feedback) carries one lowercase string: a sentinel with an underscore (rpc_failed), one of the classes constraint_violation, permission_denied, timeout, schema_mismatch, network or parse_error, or the fallback runtime_error. Do not parse these values for content.

Additional properties are accepted.

{
  "error": "Config unreachable",
  "reason": "system_id_mismatch"
}

500Internal processing failure.

›Response schemaSimpleErrorResponse
errorstringrequired
reasonstring
detailsany

Validation details or a short diagnostic. Never the value you sent. Validation failures (400) are { formErrors: string[], fieldErrors: { <field>: string[] } } whose messages are stable codes such as invalid_type: expected string, too_small: minimum 1, too_big: maximum 10, invalid_enum_value, invalid_string or unrecognized_keys. A server-side failure (5xx, and the 404 of /feedback) carries one lowercase string: a sentinel with an underscore (rpc_failed), one of the classes constraint_violation, permission_denied, timeout, schema_mismatch, network or parse_error, or the fallback runtime_error. Do not parse these values for content.

Additional properties are accepted.

{
  "error": "Internal server error"
}

503A dependency is temporarily unavailable. Retry with backoff.

›Response schemaSimpleErrorResponse
errorstringrequired
reasonstring
detailsany

Validation details or a short diagnostic. Never the value you sent. Validation failures (400) are { formErrors: string[], fieldErrors: { <field>: string[] } } whose messages are stable codes such as invalid_type: expected string, too_small: minimum 1, too_big: maximum 10, invalid_enum_value, invalid_string or unrecognized_keys. A server-side failure (5xx, and the 404 of /feedback) carries one lowercase string: a sentinel with an underscore (rpc_failed), one of the classes constraint_violation, permission_denied, timeout, schema_mismatch, network or parse_error, or the fallback runtime_error. Do not parse these values for content.

Additional properties are accepted.

{
  "error": "Database dependency unavailable.",
  "reason": "system_failure_db_unavailable"
}