Amazon AppSync Api Keys API

Manage API keys for authentication

GitHub OpenAPI
Business capability
Developer Identity & Credential Management BC-4270.40

Operations 4

POST /v1/apis/{apiId}/apikeys Create Api Key #
GET /v1/apis/{apiId}/apikeys List Api Keys #
DELETE /v1/apis/{apiId}/apikeys/{id} Delete Api Key #
POST /v1/apis/{apiId}/apikeys/{id} Update Api Key #

Specifications

Examples

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/amazon-appsync:amazon-appsync-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

amazon-appsync-api-keys-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS AppSync Api Keys API
  version: '2017-07-25'
  description: Generated from AWS's published Smithy model for AWS AppSync. 4 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://appsync.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /v1/apis/{apiId}/apikeys:
    post:
      operationId: CreateApiKey
      summary: Create Api Key
      description: Creates a unique key that you can distribute to clients who invoke your API.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateApiKeyResponse'
        '400':
          description: ApiKeyLimitExceededException; ApiKeyValidityOutOfBoundsException; BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKeyLimitExceededException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '429':
          description: LimitExceededException
          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: apiId
        in: path
        required: true
        schema:
          type: string
        description: The ID for your GraphQL API.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                description:
                  type: string
                  description: A description of the purpose of the API key.
                expires:
                  type: integer
                  description: From the creation time, the time after which the API key expires. The date is represented as
                    seconds since the epoch, rounded down to the nearest hour. The default value for this parameter is 7 days
                    from creation time. For more information, see .
      tags:
      - Api Keys
    get:
      operationId: ListApiKeys
      summary: List Api Keys
      description: Lists the API keys for a given API. API keys are deleted automatically 60 days after they expire. However,
        they may still be included in the response until they have actually been deleted. You can safely call DeleteApiKey
        to manually delete a key before it's automatically deleted.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListApiKeysResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: apiId
        in: path
        required: true
        schema:
          type: string
        description: The API ID.
      - name: nextToken
        in: query
        schema:
          type: string
        description: An identifier that was returned from the previous call to this operation, which you can use to return
          the next set of items in the list.
      - name: maxResults
        in: query
        schema:
          type: integer
        description: The maximum number of results that you want the request to return.
      tags:
      - Api Keys
  /v1/apis/{apiId}/apikeys/{id}:
    delete:
      operationId: DeleteApiKey
      summary: Delete Api Key
      description: Deletes an API key.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteApiKeyResponse'
        '400':
          description: BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '404':
          description: NotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundException'
        '401':
          description: UnauthorizedException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedException'
      parameters:
      - name: apiId
        in: path
        required: true
        schema:
          type: string
        description: The API ID.
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: The ID for the API key.
      tags:
      - Api Keys
    post:
      operationId: UpdateApiKey
      summary: Update Api Key
      description: Updates an API key. You can update the key as long as it's not deleted.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateApiKeyResponse'
        '400':
          description: ApiKeyValidityOutOfBoundsException; BadRequestException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKeyValidityOutOfBoundsException'
        '500':
          description: InternalFailureException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalFailureException'
        '429':
          description: LimitExceededException
          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: apiId
        in: path
        required: true
        schema:
          type: string
        description: The ID for the GraphQL API.
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: The API key ID.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                description:
                  type: string
                  description: A description of the purpose of the API key.
                expires:
                  type: integer
                  description: From the update time, the time after which the API key expires. The date is represented as
                    seconds since the epoch. For more information, see .
      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: appsync
  schemas:
    ApiKey:
      type: object
      properties:
        id:
          type: string
          description: The API key ID.
        description:
          type: string
          description: A description of the purpose of the API key.
        expires:
          type: integer
          description: The time after which the API key expires. The date is represented as seconds since the epoch, rounded
            down to the nearest hour.
        deletes:
          type: integer
          description: The time after which the API key is deleted. The date is represented as seconds since the epoch, rounded
            down to the nearest hour.
    ApiKeyLimitExceededException:
      type: object
      properties:
        message:
          type: string
    ApiKeyValidityOutOfBoundsException:
      type: object
      properties:
        message:
          type: string
    BadRequestDetail:
      type: object
      properties:
        codeErrors:
          type: array
          items:
            $ref: '#/components/schemas/CodeError'
          description: Contains the list of errors in the request.
    BadRequestException:
      type: object
      properties:
        message:
          type: string
        reason:
          type: string
          enum:
          - CODE_ERROR
        detail:
          $ref: '#/components/schemas/BadRequestDetail'
    CodeError:
      type: object
      properties:
        errorType:
          type: string
          description: 'The type of code error. Examples include, but aren''t limited to: LINT_ERROR, PARSER_ERROR.'
        value:
          type: string
          description: 'A user presentable error. Examples include, but aren''t limited to: Parsing error: Unterminated string
            literal.'
        location:
          $ref: '#/components/schemas/CodeErrorLocation'
    CodeErrorLocation:
      type: object
      properties:
        line:
          type: integer
          description: The line number in the code. Defaults to 0 if unknown.
        column:
          type: integer
          description: The column number in the code. Defaults to 0 if unknown.
        span:
          type: integer
          description: The span/length of the error. Defaults to -1 if unknown.
    CreateApiKeyResponse:
      type: object
      properties:
        apiKey:
          $ref: '#/components/schemas/ApiKey'
    DeleteApiKeyResponse:
      type: object
      properties: {}
    InternalFailureException:
      type: object
      properties:
        message:
          type: string
    LimitExceededException:
      type: object
      properties:
        message:
          type: string
    ListApiKeysResponse:
      type: object
      properties:
        apiKeys:
          type: array
          items:
            $ref: '#/components/schemas/ApiKey'
          description: The ApiKey objects.
        nextToken:
          type: string
          description: An identifier to pass in the next request to this operation to return the next set of items in the
            list.
    NotFoundException:
      type: object
      properties:
        message:
          type: string
    UnauthorizedException:
      type: object
      properties:
        message:
          type: string
    UpdateApiKeyResponse:
      type: object
      properties:
        apiKey:
          $ref: '#/components/schemas/ApiKey'
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/appsync/service/2017-07-25/appsync-2017-07-25.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)