Amazon Bedrock Bedrock Guardrails API

The Bedrock Guardrails API from Amazon Bedrock — 2 operation(s) for bedrock guardrails.

GitHub OpenAPI

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /guardrails/{guardrailIdentifier} Create a snapshot version of a guardrail · Create Guardrail Version #
Ask an LLM
“How do I take a snapshot of a guardrail before I make more changes?”
“Can I compare the current guardrail configuration with a previous version?”
Tell an agent
Create a version of guardrail {guardrailIdentifier}.
Snapshot guardrail {guardrailIdentifier} with description {description}.
GET /guardrails/{guardrailIdentifier} Get a guardrail's configuration · Get Guardrail #
Ask an LLM
“What topics and words does a particular guardrail block?”
“Can I fetch a specific version of a guardrail instead of the draft?”
Tell an agent
Get guardrail {guardrailIdentifier}.
Show version {guardrailVersion} of guardrail {guardrailIdentifier}.
PUT /guardrails/{guardrailIdentifier} Update a guardrail's blocking messages and topics · Update Guardrail #
Ask an LLM
“How do I change the message shown when a prompt is blocked by a guardrail?”
“Can I add a topic policy to an existing guardrail?”
Tell an agent
Update guardrail {guardrailIdentifier} to block prompts with {blockedInputMessaging} and responses with {blockedOutputsMessaging}.
Set the topic policy of guardrail {guardrailIdentifier} to {topicPolicyConfig}.
DELETE /guardrails/{guardrailIdentifier} Delete a guardrail and all its versions · Delete Guardrail #
Ask an LLM
“How do I delete a guardrail I no longer use?”
“Does deleting a guardrail also remove its versions?”
Tell an agent destructive · confirm first
Delete guardrail {guardrailIdentifier}.
Delete version {guardrailVersion} of guardrail {guardrailIdentifier}.
POST /guardrails Create a guardrail to block topics and words · Create Guardrail #
Ask an LLM
“How do I create a guardrail that blocks topics like hate speech or adult content?”
“Can I set a custom block message for prompts and model responses?”
Tell an agent
Create guardrail {name} that blocks {blockedInputMessaging} and {blockedOutputsMessaging}.
Create guardrail {name} with topic policy {topicPolicyConfig}.
GET /guardrails List guardrails in the account · List Guardrails #
Ask an LLM
“Which guardrails exist in my account?”
“Can I list only the draft versions of all guardrails?”
Tell an agent
List all guardrails in my account.
List guardrail {guardrailIdentifier} and its versions.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/amazon-bedrock:amazon-bedrock-guardrails-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

amazon-bedrock-guardrails-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Bedrock Guardrails API
  version: '2023-04-20'
  description: Generated from AWS's published Smithy model for Amazon Bedrock. 6 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://bedrock.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:


# --- truncated at 32 KB (64 KB total) ---
# Full source: https://artifacts.apis.io/amazon-bedrock/openapi/amazon-bedrock-guardrails-api-openapi.yml