Amazon API Gateway Gateway Responses API

Operations for managing gateway responses

GitHub OpenAPI

Operations 5

DELETE /restapis/{restApiId}/gatewayresponses/{responseType} Delete Gateway Response #
GET /restapis/{restApiId}/gatewayresponses/{responseType} Get Gateway Response #
PUT /restapis/{restApiId}/gatewayresponses/{responseType} Put Gateway Response #
PATCH /restapis/{restApiId}/gatewayresponses/{responseType} Update Gateway Response #
GET /restapis/{restApiId}/gatewayresponses Get Gateway Responses #

Documentation

Specifications

Schemas & Data

Other Resources

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/aws-api-gateway:aws-api-gateway-gateway-responses-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

aws-api-gateway-gateway-responses-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon API Gateway Gateway Responses API
  version: '2015-07-09'
  description: Generated from AWS's published Smithy model for Amazon API Gateway. 5 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://apigateway.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /restapis/{restApiId}/gatewayresponses/{responseType}:
    delete:
      operationId: DeleteGatewayResponse
      summary: Delete Gateway Response
      description: Clears any customization of a GatewayResponse of a specified response type on the given RestApi and resets
        it with the default settings.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: string
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '429':
          description: TooManyRequestsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: restApiId
        in: path
        required: true
        schema:
          type: string
        description: The string identifier of the associated RestApi.
      - name: responseType
        in: path
        required: true
        schema:
          type: string
          enum:
          - DEFAULT_4XX
          - DEFAULT_5XX
          - RESOURCE_NOT_FOUND
          - UNAUTHORIZED
          - INVALID_API_KEY
          - ACCESS_DENIED
          - AUTHORIZER_FAILURE
          - AUTHORIZER_CONFIGURATION_ERROR
          - INVALID_SIGNATURE
          - EXPIRED_TOKEN
          - MISSING_AUTHENTICATION_TOKEN
          - INTEGRATION_FAILURE
          - INTEGRATION_TIMEOUT
          - API_CONFIGURATION_ERROR
          - UNSUPPORTED_MEDIA_TYPE
          - BAD_REQUEST_PARAMETERS
          - BAD_REQUEST_BODY
          - REQUEST_TOO_LARGE
          - THROTTLED
          - QUOTA_EXCEEDED
          - WAF_FILTERED
        description: The response type of the associated GatewayResponse.
      tags:
      - Gateway Responses
    get:
      operationId: GetGatewayResponse
      summary: Get Gateway Response
      description: Gets a GatewayResponse of a specified response type on the given RestApi.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '429':
          description: TooManyRequestsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: restApiId
        in: path
        required: true
        schema:
          type: string
        description: The string identifier of the associated RestApi.
      - name: responseType
        in: path
        required: true
        schema:
          type: string
          enum:
          - DEFAULT_4XX
          - DEFAULT_5XX
          - RESOURCE_NOT_FOUND
          - UNAUTHORIZED
          - INVALID_API_KEY
          - ACCESS_DENIED
          - AUTHORIZER_FAILURE
          - AUTHORIZER_CONFIGURATION_ERROR
          - INVALID_SIGNATURE
          - EXPIRED_TOKEN
          - MISSING_AUTHENTICATION_TOKEN
          - INTEGRATION_FAILURE
          - INTEGRATION_TIMEOUT
          - API_CONFIGURATION_ERROR
          - UNSUPPORTED_MEDIA_TYPE
          - BAD_REQUEST_PARAMETERS
          - BAD_REQUEST_BODY
          - REQUEST_TOO_LARGE
          - THROTTLED
          - QUOTA_EXCEEDED
          - WAF_FILTERED
        description: The response type of the associated GatewayResponse.
      tags:
      - Gateway Responses
    put:
      operationId: PutGatewayResponse
      summary: Put Gateway Response
      description: Creates a customization of a GatewayResponse of a specified response type and status code on the given
        RestApi.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '429':
          description: LimitExceededException; TooManyRequestsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: restApiId
        in: path
        required: true
        schema:
          type: string
        description: The string identifier of the associated RestApi.
      - name: responseType
        in: path
        required: true
        schema:
          type: string
          enum:
          - DEFAULT_4XX
          - DEFAULT_5XX
          - RESOURCE_NOT_FOUND
          - UNAUTHORIZED
          - INVALID_API_KEY
          - ACCESS_DENIED
          - AUTHORIZER_FAILURE
          - AUTHORIZER_CONFIGURATION_ERROR
          - INVALID_SIGNATURE
          - EXPIRED_TOKEN
          - MISSING_AUTHENTICATION_TOKEN
          - INTEGRATION_FAILURE
          - INTEGRATION_TIMEOUT
          - API_CONFIGURATION_ERROR
          - UNSUPPORTED_MEDIA_TYPE
          - BAD_REQUEST_PARAMETERS
          - BAD_REQUEST_BODY
          - REQUEST_TOO_LARGE
          - THROTTLED
          - QUOTA_EXCEEDED
          - WAF_FILTERED
        description: The response type of the associated GatewayResponse
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                statusCode:
                  type: string
                  description: The HTTP status code of the GatewayResponse.
                responseParameters:
                  type: object
                  additionalProperties:
                    type: string
                  description: Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string
                    map of key-value pairs.
                responseTemplates:
                  type: object
                  additionalProperties:
                    type: string
                  description: Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
      tags:
      - Gateway Responses
    patch:
      operationId: UpdateGatewayResponse
      summary: Update Gateway Response
      description: Updates a GatewayResponse of a specified response type on the given RestApi.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '409':
          description: ConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConflictException'
        '429':
          description: LimitExceededException; TooManyRequestsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: restApiId
        in: path
        required: true
        schema:
          type: string
        description: The string identifier of the associated RestApi.
      - name: responseType
        in: path
        required: true
        schema:
          type: string
          enum:
          - DEFAULT_4XX
          - DEFAULT_5XX
          - RESOURCE_NOT_FOUND
          - UNAUTHORIZED
          - INVALID_API_KEY
          - ACCESS_DENIED
          - AUTHORIZER_FAILURE
          - AUTHORIZER_CONFIGURATION_ERROR
          - INVALID_SIGNATURE
          - EXPIRED_TOKEN
          - MISSING_AUTHENTICATION_TOKEN
          - INTEGRATION_FAILURE
          - INTEGRATION_TIMEOUT
          - API_CONFIGURATION_ERROR
          - UNSUPPORTED_MEDIA_TYPE
          - BAD_REQUEST_PARAMETERS
          - BAD_REQUEST_BODY
          - REQUEST_TOO_LARGE
          - THROTTLED
          - QUOTA_EXCEEDED
          - WAF_FILTERED
        description: The response type of the associated GatewayResponse.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                patchOperations:
                  type: array
                  items:
                    $ref: '#/components/schemas/PatchOperation'
                  description: For more information about supported patch operations, see Patch Operations.
      tags:
      - Gateway Responses
  /restapis/{restApiId}/gatewayresponses:
    get:
      operationId: GetGatewayResponses
      summary: Get Gateway Responses
      description: Gets the GatewayResponses collection on the given RestApi. If an API developer has not added any definitions
        for gateway responses, the result will be the API Gateway-generated default GatewayResponses collection for the supported
        response types.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayResponses'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '429':
          description: TooManyRequestsException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TooManyRequestsException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: restApiId
        in: path
        required: true
        schema:
          type: string
        description: The string identifier of the associated RestApi.
      - name: position
        in: query
        schema:
          type: string
        description: The current pagination position in the paged result set. The GatewayResponse collection does not support
          pagination and the position does not apply here.
      - name: limit
        in: query
        schema:
          type: integer
        description: The maximum number of returned results per page. The default value is 25 and the maximum value is 500.
          The GatewayResponses collection does not support pagination and the limit does not apply here.
      tags:
      - Gateway Responses
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: apigateway
  schemas:
    BadRequestException:
      type: object
      properties:
        message:
          type: string
    ConflictException:
      type: object
      properties:
        message:
          type: string
    GatewayResponse:
      type: object
      properties:
        responseType:
          type: string
          enum:
          - DEFAULT_4XX
          - DEFAULT_5XX
          - RESOURCE_NOT_FOUND
          - UNAUTHORIZED
          - INVALID_API_KEY
          - ACCESS_DENIED
          - AUTHORIZER_FAILURE
          - AUTHORIZER_CONFIGURATION_ERROR
          - INVALID_SIGNATURE
          - EXPIRED_TOKEN
          - MISSING_AUTHENTICATION_TOKEN
          - INTEGRATION_FAILURE
          - INTEGRATION_TIMEOUT
          - API_CONFIGURATION_ERROR
          - UNSUPPORTED_MEDIA_TYPE
          - BAD_REQUEST_PARAMETERS
          - BAD_REQUEST_BODY
          - REQUEST_TOO_LARGE
          - THROTTLED
          - QUOTA_EXCEEDED
          - WAF_FILTERED
          description: The response type of the associated GatewayResponse.
        statusCode:
          type: string
          description: The HTTP status code for this GatewayResponse.
        responseParameters:
          type: object
          additionalProperties:
            type: string
          description: Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string
            map of key-value pairs.
        responseTemplates:
          type: object
          additionalProperties:
            type: string
          description: Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
        defaultResponse:
          type: boolean
          description: A Boolean flag to indicate whether this GatewayResponse is the default gateway response (true) or not
            (false). A default gateway response is one generated by API Gateway without any customization by an API developer.
    GatewayResponses:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/GatewayResponse'
          description: Returns the entire collection, because of no pagination support.
        position:
          type: string
          description: The current pagination position in the paged result set. The GatewayResponse collection does not support
            pagination and the position does not apply here.
    LimitExceededException:
      type: object
      properties:
        retryAfterSeconds:
          type: string
        message:
          type: string
    NotFoundException:
      type: object
      properties:
        message:
          type: string
    PatchOperation:
      type: object
      properties:
        op:
          type: string
          enum:
          - add
          - remove
          - replace
          - move
          - copy
          - test
          description: An update operation to be performed with this PATCH request. The valid value can be add, remove, replace
            or copy. Not all valid operations are supported for a given resource. Support of the operations depends on specific
            operational contexts. Attempts to apply an unsupported operation on a resource will return an error message..
        path:
          type: string
          description: 'The op operation''s target, as identified by a JSON Pointer value that references a location within
            the targeted resource. For example, if the target resource has an updateable property of {"name":"value"}, the
            path for this property is /name. If the name property value is a JSON object (e.g., {"name": {"child/name": "child-value"}}),
            the path for the child/name property will be /name/child~1name. Any slash ("/") character appearing in path names
            must be escaped with "~1", as shown in the example above. Each op operation can have only one path associated
            with it.'
        value:
          type: string
          description: 'The new target value of the update operation. It is applicable for the add or replace operation. When
            using AWS CLI to update a property of a JSON value, enclose the JSON object with a pair of single quotes in a
            Linux shell, e.g., ''{"a": ...}''.'
        from:
          type: string
          description: The copy update operation's source as identified by a JSON-Pointer value referencing the location within
            the targeted resource to copy the value from. For example, to promote a canary deployment, you copy the canary
            deployment ID to the affiliated deployment ID by calling a PATCH request on a Stage resource with "op":"copy",
            "from":"/canarySettings/deploymentId" and "path":"/deploymentId".
    TooManyRequestsException:
      type: object
      properties:
        retryAfterSeconds:
          type: string
        message:
          type: string
    UnauthorizedException:
      type: object
      properties:
        message:
          type: string
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/api-gateway/service/2015-07-09/api-gateway-2015-07-09.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)