Amazon API Gateway API Keys API

Operations for managing API keys

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 /apikeys Create an API key · Create Api Key #
Ask an LLM
“How do I issue a new API key for a client of my API?”
“Can I supply my own key value instead of having one generated?”
Tell an agent
Create an enabled API key named {name}.
Create an API key called {name} for customer {customerId}.
GET /apikeys List API keys · Get Api Keys #
Ask an LLM
“What API keys exist in my API Gateway account?”
“Can I find API keys by name prefix or by the customer they belong to?”
Tell an agent
List all my API Gateway API keys.
List API keys whose name starts with {nameQuery}.
DELETE /apikeys/{apiKey} Delete Api Key #
GET /apikeys/{apiKey} Get Api Key #
PATCH /apikeys/{apiKey} Update Api Key #
POST /apikeys?mode=import Import Api Keys #

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-api-keys-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-api-keys-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon API Gateway Api Keys API
  version: '2015-07-09'
  description: Generated from AWS's published Smithy model for Amazon API Gateway. 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://apigateway.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /apikeys:
    post:
      operationId: CreateApiKey
      summary: Create Api Key
      description: Create an ApiKey resource.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKey'
        '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'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: The name of the ApiKey.
                description:
                  type: string
                  description: The description of the ApiKey.
                enabled:
                  type: boolean
                  description: Specifies whether the ApiKey can be used by callers.
                generateDistinctId:
                  type: boolean
                  description: Specifies whether (true) or not (false) the key identifier is distinct from the created API
                    key value. This parameter is deprecated and should not be used.
                value:
                  type: string
                  description: Specifies a value of the API key.
                stageKeys:
                  type: array
                  items:
                    $ref: '#/components/schemas/StageKey'
                  description: DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
                customerId:
                  type: string
                  description: An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web
                    Services SaaS Marketplace.
                tags:
                  type: object
                  additionalProperties:
                    type: string
                  description: The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be
                    up to 128 characters and must not start with aws:. The tag value can be up to 256 characters.
      tags:
      - Api Keys
    get:
      operationId: GetApiKeys
      summary: Get Api Keys
      description: Gets information about the current ApiKeys resource.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKeys'
        '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: position
        in: query
        schema:
          type: string
        description: The current pagination position in the paged result set.
      - 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.
      - name: name
        in: query
        schema:
          type: string
        description: The name of queried API keys.
      - name: customerId
        in: query
        schema:
          type: string
        description: The identifier of a customer in Amazon Web Services Marketplace or an external system, such as a developer
          portal.
      - name: includeValues
        in: query
        schema:
          type: boolean
        description: A boolean flag to specify whether (true) or not (false) the result contains key values.
      tags:
      - Api Keys
  /apikeys/{apiKey}:
    delete:
      operationId: DeleteApiKey
      summary: Delete Api Key
      description: Deletes the ApiKey resource.
      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: apiKey
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the ApiKey resource to be deleted.
      tags:
      - Api Keys
    get:
      operationId: GetApiKey
      summary: Get Api Key
      description: Gets information about the current ApiKey resource.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKey'
        '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: apiKey
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the ApiKey resource.
      - name: includeValue
        in: query
        schema:
          type: boolean
        description: A boolean flag to specify whether (true) or not (false) the result contains the key value.
      tags:
      - Api Keys
    patch:
      operationId: UpdateApiKey
      summary: Update Api Key
      description: Changes information about an ApiKey resource.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKey'
        '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: apiKey
        in: path
        required: true
        schema:
          type: string
        description: The identifier of the ApiKey resource to be updated.
      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:
      - Api Keys
  /apikeys?mode=import:
    post:
      operationId: ImportApiKeys
      summary: Import Api Keys
      description: Import API keys from an external source, such as a CSV-formatted file.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKeyIds'
        '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: format
        in: query
        required: true
        schema:
          type: string
          enum:
          - csv
        description: A query parameter to specify the input format to imported API keys. Currently, only the csv format is
          supported.
      - name: failonwarnings
        in: query
        schema:
          type: boolean
        description: A query parameter to indicate whether to rollback ApiKey importation (true) or not (false) when error
          is encountered.
      requestBody:
        content:
          application/json:
            schema:
              type: string
              format: byte
      tags:
      - Api Keys
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:
    ApiKey:
      type: object
      properties:
        id:
          type: string
          description: The identifier of the API Key.
        value:
          type: string
          description: The value of the API Key.
        name:
          type: string
          description: The name of the API Key.
        customerId:
          type: string
          description: An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services
            SaaS Marketplace.
        description:
          type: string
          description: The description of the API Key.
        enabled:
          type: boolean
          description: Specifies whether the API Key can be used by callers.
        createdDate:
          type: string
          format: date-time
          description: The timestamp when the API Key was created.
        lastUpdatedDate:
          type: string
          format: date-time
          description: The timestamp when the API Key was last updated.
        stageKeys:
          type: array
          items:
            type: string
          description: A list of Stage resources that are associated with the ApiKey resource.
        tags:
          type: object
          additionalProperties:
            type: string
          description: The collection of tags. Each tag element is associated with a given resource.
    ApiKeyIds:
      type: object
      properties:
        ids:
          type: array
          items:
            type: string
          description: A list of all the ApiKey identifiers.
        warnings:
          type: array
          items:
            type: string
          description: A list of warning messages.
    ApiKeys:
      type: object
      properties:
        warnings:
          type: array
          items:
            type: string
          description: A list of warning messages logged during the import of API keys when the failOnWarnings option is set
            to true.
        items:
          type: array
          items:
            $ref: '#/components/schemas/ApiKey'
          description: The current page of elements from this collection.
        position:
          type: string
          description: The current pagination position in the paged result set.
    BadRequestException:
      type: object
      properties:
        message:
          type: string
    ConflictException:
      type: object
      properties:
        message:
          type: string
    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".
    StageKey:
      type: object
      properties:
        restApiId:
          type: string
          description: The string identifier of the associated RestApi.
        stageName:
          type: string
          description: The stage name associated with the stage key.
    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)