Amazon Bedrock Bedrock Rate Limits API

The Bedrock Rate Limits API from Amazon Bedrock — 3 operation(s) for bedrock rate limits.

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

PUT /gateways/{gatewayIdentifier}/rate-limits/batch Replace all rate limits on a gateway · Batch Put Gateway Rate Limits #
Ask an LLM
“How do I set every rate limit on a gateway in one request?”
“Does replacing a gateway's rate limits roll back if one fails?”
Tell an agent
Replace all rate limits on gateway {gateway} with {limits}.
Set these rate limits on gateway {gateway}: {limits}.
POST /gateways/{gatewayIdentifier}/rate-limits Create a rate limit on a gateway · Create Gateway Rate Limit #
Ask an LLM
“How do I throttle requests through a gateway by dimension?”
“Can I give a new gateway rate limit a description?”
Tell an agent
Create a rate limit on gateway {gateway} for dimensions {dims} with entries {entries}.
Add a rate limit {id} to gateway {gateway} described as {desc}, dimensions {dims}, entries {entries}.
GET /gateways/{gatewayIdentifier}/rate-limits List a gateway's rate limits · List Gateway Rate Limits #
Ask an LLM
“What rate limits are set on my gateway?”
“Can I page through a gateway's rate limits?”
Tell an agent
List the rate limits on gateway {gateway}.
Show {max} rate limits per page for gateway {gateway}.
DELETE /gateways/{gatewayIdentifier}/rate-limits/{rateLimitId} Delete a gateway rate limit · Delete Gateway Rate Limit #
Ask an LLM
“How do I remove a rate limit from a gateway?”
“Can I delete a gateway rate limit I no longer need?”
Tell an agent destructive · confirm first
Delete rate limit {limit} from gateway {gateway}.
Remove gateway {gateway} rate limit {limit}.
GET /gateways/{gatewayIdentifier}/rate-limits/{rateLimitId} Get a gateway rate limit · Get Gateway Rate Limit #
Ask an LLM
“What entries does a specific gateway rate limit have?”
“Can I look up one rate limit on a gateway by its id?”
Tell an agent
Get rate limit {limit} on gateway {gateway}.
Show the entries of gateway {gateway} rate limit {limit}.
PATCH /gateways/{gatewayIdentifier}/rate-limits/{rateLimitId} Update a gateway rate limit's entries · Update Gateway Rate Limit #
Ask an LLM
“Can I change the entries of an existing gateway rate limit?”
“Are a gateway rate limit's dimension keys editable after creation?”
Tell an agent
Update the entries of rate limit {limit} on gateway {gateway} to {entries}.
Set gateway {gateway} rate limit {limit} entries to {entries} and description {desc}.

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-rate-limits-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-rate-limits-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Bedrock Rate Limits 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-agentcore-control.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /gateways/{gatewayIdentifier}/rate-limits/batch:
    put:
      operationId: BatchPutGatewayRateLimits
      summary: Batch Put Gateway Rate Limits
      description: Atomically creates or updates multiple rate limits for a gateway. The operation updates existing limits
        with matching keys and creates new limits for new keys. If the operation fails, the service applies no changes. Retry
        the request after resolving the issue.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchPutGatewayRateLimitsResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BedrockAgentcoreControlValidationException'
      parameters:
      - name: gatewayIdentifier
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the gateway.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                clientToken:
                  type: string
                  description: A unique, case-sensitive identifier to ensure that the API request completes no more than one
                    time. If you don't specify this field, a value is randomly generated for you. If this token matches a
                    previous request, the service ignores the request, but doesn't return an error. For more information,
                    see Ensuring idempotency.
                rateLimits:
                  type: array
                  items:
                    $ref: '#/components/schemas/BatchPutLimitEntry'
                  description: The complete set of rate limits for this gateway. This operation replaces all existing rate
                    limits in a single request. If the operation fails, no rate limits are changed.
              required:
              - rateLimits
      tags:
      - Rate Limits
  /gateways/{gatewayIdentifier}/rate-limits:
    post:
      operationId: CreateGatewayRateLimit
      summary: Create Gateway Rate Limit
      description: Creates a rate limit for a gateway. Rate limits define throttling rules for each dimension that control
        request rates, token consumption rates, and concurrent connections through the gateway.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateGatewayRateLimitResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '402':
          description: ServiceQuotaExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceQuotaExceededException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BedrockAgentcoreControlValidationException'
      parameters:
      - name: gatewayIdentifier
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the gateway to create the rate limit for.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                clientToken:
                  type: string
                  description: A unique, case-sensitive identifier to ensure that the API request completes no more than one
                    time. If you don't specify this field, a value is randomly generated for you. If this token matches a
                    previous request, the service ignores the request, but doesn't return an error. For more information,
                    see Ensuring idempotency.
                rateLimitId:
                  type: string
                  description: An optional customer-defined identifier for the rate limit. If not provided, the system generates
                    one.
                description:
                  type: string
                  description: An optional human-readable description for this rate limit. If not provided, the rate limit
                    is created without a description.
                dimensionKeys:
                  type: array
                  items:
                    type: string
                  description: The ordered list of dimension key names that define the scope of this rate limit. Must be unique
                    per gateway—no two rate limits can share the same dimension keys.
                entries:
                  type: array
                  items:
                    $ref: '#/components/schemas/LimitEntry'
                  description: The rule entries that map dimension values to rate configurations.
              required:
              - dimensionKeys
              - entries
      tags:
      - Rate Limits
    get:
      operationId: ListGatewayRateLimits
      summary: List Gateway Rate Limits
      description: Lists all rate limits for a gateway. Results are paginated. Use the nextToken parameter to retrieve additional
        results.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListGatewayRateLimitsResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BedrockAgentcoreControlValidationException'
      parameters:
      - name: gatewayIdentifier
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the gateway.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of results to return in the response. If the total number of results is greater than
          this value, use the token returned in the response in the nextToken field when making another request to return
          the next batch of results.
      - name: nextToken
        in: query
        schema:
          type: string
        description: The token to use to retrieve the next page of results. Use the value returned in a previous ListGatewayRateLimits
          response.
      tags:
      - Rate Limits
  /gateways/{gatewayIdentifier}/rate-limits/{rateLimitId}:
    delete:
      operationId: DeleteGatewayRateLimit
      summary: Delete Gateway Rate Limit
      description: Deletes a gateway rate limit.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteGatewayRateLimitResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BedrockAgentcoreControlValidationException'
      parameters:
      - name: gatewayIdentifier
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the gateway.
      - name: rateLimitId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the rate limit to delete.
      tags:
      - Rate Limits
    get:
      operationId: GetGatewayRateLimit
      summary: Get Gateway Rate Limit
      description: Retrieves information about a gateway rate limit.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetGatewayRateLimitResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BedrockAgentcoreControlValidationException'
      parameters:
      - name: gatewayIdentifier
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the gateway.
      - name: rateLimitId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the rate limit to retrieve.
      tags:
      - Rate Limits
    patch:
      operationId: UpdateGatewayRateLimit
      summary: Update Gateway Rate Limit
      description: Updates the entries of a gateway rate limit. The dimension keys are immutable after creation.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateGatewayRateLimitResponse'
        '403':
          description: AccessDeniedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccessDeniedException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '500':
          description: InternalServerException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
        '429':
          description: ThrottlingException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ThrottlingException'
        '400':
          description: ValidationException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BedrockAgentcoreControlValidationException'
      parameters:
      - name: gatewayIdentifier
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the gateway.
      - name: rateLimitId
        in: path
        required: true
        schema:
          type: string
        description: The unique identifier of the rate limit to update.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                description:
                  type: string
                  description: The updated human-readable description for this rate limit.
                entries:
                  type: array
                  items:
                    $ref: '#/components/schemas/LimitEntry'
                  description: The updated rule entries. The dimension keys are immutable after creation and cannot be changed.
              required:
              - entries
      tags:
      - Rate Limits
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: bedrock-agentcore
  schemas:
    AccessDeniedException:
      type: object
      properties:
        message:
          type: string
    BatchPutGatewayRateLimitsResponse:
      type: object
      properties:
        rateLimits:
          type: array
          items:
            $ref: '#/components/schemas/GatewayRateLimitDetail'
          description: The resulting set of rate limits after the batch operation.
      required:
      - rateLimits
    BatchPutLimitEntry:
      type: object
      properties:
        rateLimitId:
          type: string
          description: The unique identifier of the rate limit. If provided, the service uses it for upsert matching against
            existing rate limits.
        description:
          type: string
          description: An optional human-readable description for this rate limit. If not provided, the rate limit is created
            without a description.
        dimensionKeys:
          type: array
          items:
            type: string
          description: The ordered list of dimension key names that define the scope of this rate limit.
        entries:
          type: array
          items:
            $ref: '#/components/schemas/LimitEntry'
          description: The list of rule entries that map dimension values to rate configurations.
      required:
      - dimensionKeys
      - entries
    BedrockAgentcoreControlValidationException:
      type: object
      properties:
        message:
          type: string
        reason:
          type: string
          enum:
          - CannotParse
          - FieldValidationFailed
          - IdempotentParameterMismatchException
          - EventInOtherSession
          - ResourceConflict
        fieldList:
          type: array
          items:
            $ref: '#/components/schemas/ValidationExceptionField'
      required:
      - message
      - reason
    ConflictException:
      type: object
      properties:
        message:
          type: string
    CreateGatewayRateLimitResponse:
      type: object
      properties:
        rateLimitId:
          type: string
          description: The unique identifier of the created rate limit.
        gatewayIdentifier:
          type: string
          description: The unique identifier of the gateway.
        description:
          type: string
          description: The human-readable description of the rate limit.
        dimensionKeys:
          type: array
          items:
            type: string
          description: The ordered list of dimension key names that define the scope of this rate limit.
        entries:
          type: array
          items:
            $ref: '#/components/schemas/LimitEntry'
          description: The list of rule entries that map dimension values to rate configurations.
        status:
          type: string
          enum:
          - CREATING
          - ACTIVE
          - UPDATING
          - DELETING
          description: The current status of the rate limit.
        createdAt:
          type: string
          format: date-time
          description: The timestamp when the rate limit was created.
        updatedAt:
          type: string
          format: date-time
          description: The timestamp when the rate limit was last updated.
      required:
      - rateLimitId
      - gatewayIdentifier
      - dimensionKeys
      - entries
      - status
      - createdAt
      - updatedAt
    DeleteGatewayRateLimitResponse:
      type: object
      properties:
        rateLimitId:
          type: string
          description: The unique identifier of the deleted rate limit.
        status:
          type: string
          enum:
          - CREATING
          - ACTIVE
          - UPDATING
          - DELETING
          description: The current status of the rate limit deletion.
      required:
      - rateLimitId
      - status
    GatewayRateLimitDetail:
      type: object
      properties:
        rateLimitId:
          type: string
          description: The unique identifier of the rate limit.
        gatewayIdentifier:
          type: string
          description: The unique identifier of the gateway.
        description:
          type: string
          description: The human-readable description of the rate limit.
        dimensionKeys:
          type: array
          items:
            type: string
          description: The ordered list of dimension key names that define the scope of this rate limit.
        entries:
          type: array
          items:
            $ref: '#/components/schemas/LimitEntry'
          description: The list of rule entries that map dimension values to rate configurations.
        status:
          type: string
          enum:
          - CREATING
          - ACTIVE
          - UPDATING
          - DELETING
          description: The current status of the rate limit.
        createdAt:
          type: string
          format: date-time
          description: The timestamp when the rate limit was created.
        updatedAt:
          type: string
          format: date-time
          description: The timestamp when the rate limit was last updated.
      required:
      - rateLimitId
      - gatewayIdentifier
      - dimensionKeys
      - entries
      - status
      - createdAt
      - updatedAt
    GetGatewayRateLimitResponse:
      type: object
      properties:
        rateLimitId:
          type: string
          description: The unique identifier of the rate limit.
        gatewayIdentifier:
          type: string
          description: The unique identifier of the gateway.
        description:
          type: string
          description: The human-readable description of the rate limit.
        dimensionKeys:
          type: array
          items:
            type: string
          description: The ordered list of dimension key names that define the scope of this rate limit.
        entries:
          type: array
          items:
            $ref: '#/components/schemas/LimitEntry'
          description: The list of rule entries that map dimension values to rate configurations.
        status:
          type: string
          enum:
          - CREATING
          - ACTIVE
          - UPDATING
          - DELETING
          description: The current status of the rate limit.
        createdAt:
          type: string
          format: date-time
          description: The timestamp when the rate limit was created.
        updatedAt:
          type: string
          format: date-time
          description: The timestamp when the rate limit was last updated.
      required:
      - rateLimitId
      - gatewayIdentifier
      - dimensionKeys
      - entries
      - status
      - createdAt
      - updatedAt
    InternalServerException:
      type: object
      properties:
        message:
          type: string
    LimitEntry:
      type: object
      properties:
        dimensions:
          type: object
          additionalProperties:
            type: string
          description: A map of dimension names to dimension values for this rule entry. Keys must match the parent rate limit's
            dimension keys. Values may use * as a wildcard, but only in trailing positions based on the dimension keys ordering.
        requests:
          type: array
          items:
            $ref: '#/components/schemas/RateConfig'
          description: The request rate limit configuration. Specifies the maximum number of requests allowed per time period.
        tokens:
          type: array
          items:
            $ref: '#/components/schemas/RateConfig'
          description: The token rate limit configuration. Specifies the maximum number of tokens allowed per time period.
        connections:
          type: array
          items:
            $ref: '#/components/schemas/RateConfig'
          description: The connection rate limit configuration. Specifies the maximum number of concurrent connections allowed.
      required:
      - dimensions
    ListGatewayRateLimitsResponse:
      type: object
      properties:
        rateLimits:
          type: array
          items:
            $ref: '#/components/schemas/GatewayRateLimitDetail'
          description: The list of rate limits for the gateway.
        nextToken:
          type: string
          description: The token for the next page of results. If this value is absent, there are no more results to retrieve.
      required:
      - rateLimits
    RateConfig:
      type: object
      properties:
        rate:
          type: number
          description: The rate value for the limit. For request limits, this is the number of requests allowed per period.
            For token limits, this is the number of tokens allowed per period. For connection limits, this is the number of
            concurrent connections allowed.
        period:
          type: string
          enum:
          - second
          - minute
          description: 'The time period for the rate limit. Valid values: second—Measures the rate limit over a one-second
            window. minute—Measures the rate limit over a one-minute window.'
      required:
      - rate
      - period
    ResourceNotFoundException:
      type: object
      properties:
        message:
          type: string
    ServiceQuotaExceededException:
      type: object
      properties:
        message:
          type: string
    ThrottlingException:
      type: object
      properties:
        message:
          type: string
    UpdateGatewayRateLimitResponse:
      type: object
      properties:
        rateLimitId:
          type: string
          description: The unique identifier of the rate limit.
        gatewayIdentifier:
          type: string
          description: The unique identifier of the gateway.
        description:
          type: string
          description: The human-readable description of the rate limit.
        dimensionKeys:
          type: array
          items:
            type: string
          description: The ordered list of dimension key names that define the scope of this rate limit.
        entries:
          type: array
          items:
            $ref: '#/components/schemas/LimitEntry'
          description: The list of rule entries that map dimension values to rate configurations.
        status:
          type: string
          enum:
          - CREATING
          - ACTIVE
          - UPDATING
          - DELETING
          description: The current status of the rate limit.
        createdAt:
          type: string
          format: date-time
          description: The timestamp when the rate limit was created.
        updatedAt:
          type: string
          format: date-time
          description: The timestamp when the rate limit was last updated.
      required:
      - rateLimitId
      - gatewayIdentifier
      - dimensionKeys
      - entries
      - status
      - createdAt
      - updatedAt
    ValidationExceptionField:
      type: object
      properties:
        name:
          type: string
          description: The name of the field.
        message:
          type: string
          description: A message describing why this field failed validation.
      required:
      - name
      - message
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/bedrock-agentcore-control/service/2023-06-05/bedrock-agentcore-control-2023-06-05.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)