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.
https://app.getagentid.com/api/v1/agent/configOnly 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.clientstringOptional. 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"const response = await fetch("https://app.getagentid.com/api/v1/agent/config", {
method: "GET",
headers: {
"x-agentid-api-key": process.env.AGENTID_API_KEY!,
},
});
if (!response.ok) throw new Error(`AgentID request failed: ${response.status}`);
const data = await response.json();import os
import requests
response = requests.get(
"https://app.getagentid.com/api/v1/agent/config",
headers={"x-agentid-api-key": os.environ["AGENTID_API_KEY"]},
timeout=10,
)
response.raise_for_status()
data = response.json()Responses
200Effective runtime configuration.
›Response schemaAgentConfigResponse
system_idstring<uuid>requiredsourcestringrequiredValue:
remoteshadow_modebooleanrequiredstrict_security_modebooleanrequiredfailure_modestringrequiredShadow 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_closeblock_pii_leakagebooleanrequiredenable_sdk_pii_maskingbooleanrequiredallow_client_deanonymizationbooleanrequiredversioninteger | string | nullupdated_atstring<date-time> | null<date-time>policy_revisionstringChanges whenever the effective configuration changes.
protection_noticeobjectOptional. 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 setsshowProtectionNoticeoverrides it.›Show child attributes
enabledbooleanrequiredtextstringrequiredFixed wording; the client holds the localised sentences.
One of:
monitored,secured
attachment_deliveryobjectWhether clients may opt in to native attachment delivery and restore output files.
›Show child attributes
versionintegerValue:
1nativebooleanmax_inline_bytesintegerdownload_restorationbooleanacceptsarray<string>Values a client may send in
attachment_delivery.accepts.
token_continuityobjectPresent when Guard keeps tokens stable across a conversation (send
token_continuityon Guard requests).›Show child attributes
versionintegerValue:
1
integration_mismatchobjectPresent only when the request names a
clientand the AI system is set up for another integration. Showmessageto the user; nothing else changes.›Show child attributes
errorstringValue:
integration_type_mismatchreasonstringValue:
integration_type_mismatchmessagestringHuman-readable explanation, naming the integration the system is set up for.
system_integrationstringThe integration the AI system is set up for.
clientstringThe
clientvalue from the request.
block_on_heuristicbooleanblock_on_injectionbooleanblock_on_jailbreakbooleanblock_secret_leakagebooleanenable_sdk_secret_maskingbooleanblock_code_executionbooleanblock_toxicitybooleanblock_db_accessbooleaninject_transparency_metadatabooleantransparency_metadata_enabledbooleanrequire_bidirectional_auditbooleanblock_piibooleanLegacy alias of
block_pii_leakage.block_codebooleanLegacy alias of
block_code_execution.block_toxicbooleanLegacy alias of
block_toxicity.block_dbbooleanLegacy 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
errorstringrequiredreasonstringdetailsanyValidation 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 asinvalid_type: expected string,too_small: minimum 1,too_big: maximum 10,invalid_enum_value,invalid_stringorunrecognized_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 classesconstraint_violation,permission_denied,timeout,schema_mismatch,networkorparse_error, or the fallbackruntime_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
errorstringrequiredreasonstringdetailsanyValidation 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 asinvalid_type: expected string,too_small: minimum 1,too_big: maximum 10,invalid_enum_value,invalid_stringorunrecognized_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 classesconstraint_violation,permission_denied,timeout,schema_mismatch,networkorparse_error, or the fallbackruntime_error. Do not parse these values for content.
Additional properties are accepted.
{
"error": "Config unreachable",
"reason": "system_id_mismatch"
}500Internal processing failure.
›Response schemaSimpleErrorResponse
errorstringrequiredreasonstringdetailsanyValidation 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 asinvalid_type: expected string,too_small: minimum 1,too_big: maximum 10,invalid_enum_value,invalid_stringorunrecognized_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 classesconstraint_violation,permission_denied,timeout,schema_mismatch,networkorparse_error, or the fallbackruntime_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
errorstringrequiredreasonstringdetailsanyValidation 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 asinvalid_type: expected string,too_small: minimum 1,too_big: maximum 10,invalid_enum_value,invalid_stringorunrecognized_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 classesconstraint_violation,permission_denied,timeout,schema_mismatch,networkorparse_error, or the fallbackruntime_error. Do not parse these values for content.
Additional properties are accepted.
{
"error": "Database dependency unavailable.",
"reason": "system_failure_db_unavailable"
}