---
title: "GET /guardrails/{guardrailIdentifier}"
method: GET
path: "/guardrails/{guardrailIdentifier}"
---

# GET /guardrails/{guardrailIdentifier}

`GET /guardrails/{guardrailIdentifier}`

Gets details about a guardrail. If you don't specify a version, the response returns details for the <code>DRAFT</code> version.

## Path parameters

- `guardrailIdentifier` string, required

## Query parameters

- `guardrailVersion` string

## Response `200`

Success

- GetGuardrailResponse
  - `name` string, password, required — The name of the guardrail.
  - `description` string, password — The description of the guardrail.
  - `guardrailId` string, required — The unique identifier of the guardrail.
  - `guardrailArn` string, required — The ARN of the guardrail.
  - `version` string, required — The version of the guardrail.
  - `status` 'CREATING' | 'UPDATING' | 'VERSIONING' | 'READY' | 'FAILED' | 'DELETING', required — The status of the guardrail.
  - `topicPolicy` object — The topic policy that was configured for the guardrail.
    - `topics` GuardrailTopic[], required — A list of policies related to topics that the guardrail should deny.
      - `name` string, password, required — The name of the topic to deny.
      - `definition` string, password, required — A definition of the topic to deny.
      - `examples` GuardrailTopicExample[] — A list of prompts, each of which is an example of a prompt that can be categorized as belonging to the topic.
      - `type` 'DENY' — Specifies to deny the topic.
      - `inputAction` 'BLOCK' | 'NONE', password — <p>The action to take when harmful content is detected in the input. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
      - `outputAction` 'BLOCK' | 'NONE', password — <p>The action to take when harmful content is detected in the output. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
      - `inputEnabled` boolean — Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
      - `outputEnabled` boolean — Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
    - `tier` object — The tier that your guardrail uses for denied topic filters.
      - `tierName` 'CLASSIC' | 'STANDARD', password, required — <p>The tier that your guardrail uses for denied topic filters. Valid values include:</p> <ul> <li> <p> <code>CLASSIC</code> tier – Provides established guardrails functionality supporting English, French, and Spanish languages.</p> </li> <li> <p> <code>STANDARD</code> tier – Provides a more robust solution than the <code>CLASSIC</code> tier and has more comprehensive language support. This tier requires that your guardrail use <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html">cross-Region inference</a>.</p> </li> </ul>
  - `contentPolicy` object — The content policy that was configured for the guardrail.
    - `filters` GuardrailContentFilter[] — Contains the type of the content filter and how strongly it should apply to prompts and model responses.
      - `type` 'SEXUAL' | 'VIOLENCE' | 'HATE' | 'INSULTS' | 'MISCONDUCT' | 'PROMPT_ATTACK', required — The harmful category that the content filter is applied to.
      - `inputStrength` 'NONE' | 'LOW' | 'MEDIUM' | 'HIGH', required — The strength of the content filter to apply to prompts. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.
      - `outputStrength` 'NONE' | 'LOW' | 'MEDIUM' | 'HIGH', required — The strength of the content filter to apply to model responses. As you increase the filter strength, the likelihood of filtering harmful content increases and the probability of seeing harmful content in your application reduces.
      - `inputModalities` GuardrailModality[] — The input modalities selected for the guardrail content filter.
      - `outputModalities` GuardrailModality[] — The output modalities selected for the guardrail content filter.
      - `inputAction` 'BLOCK' | 'NONE', password — <p>The action to take when harmful content is detected in the input. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
      - `outputAction` 'BLOCK' | 'NONE', password — <p>The action to take when harmful content is detected in the output. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
      - `inputEnabled` boolean — Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
      - `outputEnabled` boolean — Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
    - `tier` object — The tier that your guardrail uses for content filters.
      - `tierName` 'CLASSIC' | 'STANDARD', password, required — <p>The tier that your guardrail uses for content filters. Valid values include:</p> <ul> <li> <p> <code>CLASSIC</code> tier – Provides established guardrails functionality supporting English, French, and Spanish languages.</p> </li> <li> <p> <code>STANDARD</code> tier – Provides a more robust solution than the <code>CLASSIC</code> tier and has more comprehensive language support. This tier requires that your guardrail use <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region.html">cross-Region inference</a>.</p> </li> </ul>
  - `wordPolicy` object — The word policy that was configured for the guardrail.
    - `words` GuardrailWord[] — A list of words configured for the guardrail.
      - `text` string, required — Text of the word configured for the guardrail to block.
      - `inputAction` 'BLOCK' | 'NONE', password — <p>The action to take when harmful content is detected in the input. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
      - `outputAction` 'BLOCK' | 'NONE', password — <p>The action to take when harmful content is detected in the output. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
      - `inputEnabled` boolean — Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
      - `outputEnabled` boolean — Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
    - `managedWordLists` GuardrailManagedWords[] — A list of managed words configured for the guardrail.
      - `type` 'PROFANITY', required — ManagedWords$type The managed word type that was configured for the guardrail. (For now, we only offer profanity word list)
      - `inputAction` 'BLOCK' | 'NONE', password — <p>The action to take when harmful content is detected in the input. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
      - `outputAction` 'BLOCK' | 'NONE', password — <p>The action to take when harmful content is detected in the output. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
      - `inputEnabled` boolean — Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
      - `outputEnabled` boolean — Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
  - `sensitiveInformationPolicy` object — The sensitive information policy that was configured for the guardrail.
    - `piiEntities` GuardrailPiiEntity[] — The list of PII entities configured for the guardrail.
      - `type` 'ADDRESS' | 'AGE' | 'AWS_ACCESS_KEY' | 'AWS_SECRET_KEY' | 'CA_HEALTH_NUMBER' | 'CA_SOCIAL_INSURANCE_NUMBER' | 'CREDIT_DEBIT_CARD_CVV' | 'CREDIT_DEBIT_CARD_EXPIRY' | 'CREDIT_DEBIT_CARD_NUMBER' | 'DRIVER_ID' | 'EMAIL' | 'INTERNATIONAL_BANK_ACCOUNT_NUMBER' | 'IP_ADDRESS' | 'LICENSE_PLATE' | 'MAC_ADDRESS' | 'NAME' | 'PASSWORD' | 'PHONE' | 'PIN' | 'SWIFT_CODE' | 'UK_NATIONAL_HEALTH_SERVICE_NUMBER' | 'UK_NATIONAL_INSURANCE_NUMBER' | 'UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER' | 'URL' | 'USERNAME' | 'US_BANK_ACCOUNT_NUMBER' | 'US_BANK_ROUTING_NUMBER' | 'US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER' | 'US_PASSPORT_NUMBER' | 'US_SOCIAL_SECURITY_NUMBER' | 'VEHICLE_IDENTIFICATION_NUMBER', required — The type of PII entity. For example, Social Security Number.
      - `action` 'BLOCK' | 'ANONYMIZE' | 'NONE', required — The configured guardrail action when PII entity is detected.
      - `inputAction` 'BLOCK' | 'ANONYMIZE' | 'NONE' — <p>The action to take when harmful content is detected in the input. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>ANONYMIZE</code> – Mask the content and replace it with identifier tags.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
      - `outputAction` 'BLOCK' | 'ANONYMIZE' | 'NONE' — <p>The action to take when harmful content is detected in the output. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>ANONYMIZE</code> – Mask the content and replace it with identifier tags.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
      - `inputEnabled` boolean — Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
      - `outputEnabled` boolean — Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
    - `regexes` GuardrailRegex[] — The list of regular expressions configured for the guardrail.
      - `name` string, required — The name of the regular expression for the guardrail.
      - `description` string — The description of the regular expression for the guardrail.
      - `pattern` string, required — The pattern of the regular expression configured for the guardrail.
      - `action` 'BLOCK' | 'ANONYMIZE' | 'NONE', required — The action taken when a match to the regular expression is detected.
      - `inputAction` 'BLOCK' | 'ANONYMIZE' | 'NONE' — <p>The action to take when harmful content is detected in the input. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
      - `outputAction` 'BLOCK' | 'ANONYMIZE' | 'NONE' — <p>The action to take when harmful content is detected in the output. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
      - `inputEnabled` boolean — Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
      - `outputEnabled` boolean — Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
  - `contextualGroundingPolicy` object — The contextual grounding policy used in the guardrail.
    - `filters` GuardrailContextualGroundingFilter[], required — The filter details for the guardrails contextual grounding policy.
      - `type` 'GROUNDING' | 'RELEVANCE', required — The filter type details for the guardrails contextual grounding filter.
      - `threshold` number, double, required — The threshold details for the guardrails contextual grounding filter.
      - `action` 'BLOCK' | 'NONE', password — <p>The action to take when content fails the contextual grounding evaluation. Supported values include:</p> <ul> <li> <p> <code>BLOCK</code> – Block the content and replace it with blocked messaging.</p> </li> <li> <p> <code>NONE</code> – Take no action but return detection information in the trace response.</p> </li> </ul>
      - `enabled` boolean — Indicates whether contextual grounding is enabled for evaluation. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
  - `automatedReasoningPolicy` object — The current Automated Reasoning policy configuration for the guardrail, if any is configured.
    - `policies` AutomatedReasoningPolicyArn[], required — The list of Automated Reasoning policy ARNs that should be applied as part of this guardrail configuration.
    - `confidenceThreshold` number, double — The minimum confidence level required for Automated Reasoning policy violations to trigger guardrail actions. Values range from 0.0 to 1.0.
  - `crossRegionDetails` object — Details about the system-defined guardrail profile that you're using with your guardrail, including the guardrail profile ID and Amazon Resource Name (ARN).
    - `guardrailProfileId` string — The ID of the guardrail profile that your guardrail is using. Profile availability depends on your current Amazon Web Services Region. For more information, see the <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails-cross-region-support.html">Amazon Bedrock User Guide</a>.
    - `guardrailProfileArn` string — The Amazon Resource Name (ARN) of the guardrail profile that you're using with your guardrail.
  - `createdAt` string, date-time, required — The date and time at which the guardrail was created.
  - `updatedAt` string, date-time, required — The date and time at which the guardrail was updated.
  - `statusReasons` GuardrailStatusReason[] — Appears if the <code>status</code> is <code>FAILED</code>. A list of reasons for why the guardrail failed to be created, updated, versioned, or deleted.
  - `failureRecommendations` GuardrailFailureRecommendation[] — Appears if the <code>status</code> of the guardrail is <code>FAILED</code>. A list of recommendations to carry out before retrying the request.
  - `blockedInputMessaging` string, password, required — The message that the guardrail returns when it blocks a prompt.
  - `blockedOutputsMessaging` string, password, required — The message that the guardrail returns when it blocks a model response.
  - `kmsKeyArn` string — The ARN of the KMS key that encrypts the guardrail.

## Other responses

- `480` — ResourceNotFoundException
- `481` — AccessDeniedException
- `482` — ValidationException
- `483` — InternalServerException
- `484` — ThrottlingException

---

[API](https://skmtc.net/aws/apis/bedrock.md) · [All operations](https://skmtc.net/aws/apis/bedrock/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/bedrock/versions/3bc874e43ecd/schema)
