Amazon IAM Access Keys API

Operations for managing IAM access keys

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

Operations 4

POST /?Action=CreateAccessKey Create Access Key #
POST /?Action=DeleteAccessKey Delete Access Key #
POST /?Action=ListAccessKeys List Access Keys #
POST /?Action=UpdateAccessKey Update Access Key #

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-iam:amazon-iam-access-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-iam-access-keys-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS Identity and Access Management Access Keys API
  version: '2010-05-08'
  description: Generated from AWS's published Smithy model for AWS Identity and Access Management. 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://iam.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /?Action=CreateAccessKey:
    post:
      operationId: CreateAccessKey
      summary: Create Access Key
      description: Creates a new Amazon Web Services secret access key and corresponding Amazon Web Services access key ID
        for the specified user. The default status for new keys is Active. If you do not specify a user name, IAM determines
        the user name implicitly based on the Amazon Web Services access key ID signing the request. This operation works
        for access keys under the Amazon Web Services account. Consequently, you can use this operation to manage Amazon Web
        Services account root user credentials. This is true even if the Amazon Web Services account has no associated users.
        For information about quotas on the number of keys you can create, see IAM and STS quotas in the IAM User Guide. To
        ensure the security of your Amazon Web Services account, the secret access key is accessible only during key and user
        creation. You must save the key (for example, in a text file) if you want to be able to access it again. If a secret
        key is lost, you can delete the access keys for the associated user and then create new keys.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/CreateAccessKeyResponse'
              example:
                AccessKey:
                  UserName: Bob
                  Status: Active
                  CreateDate: '2015-03-09T18:39:23.411Z'
                  SecretAccessKey: wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY
                  AccessKeyId: AKIAIOSFODNN7EXAMPLE
        '409':
          description: LimitExceededException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '404':
          description: NoSuchEntityException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/NoSuchEntityException'
        '500':
          description: ServiceFailureException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ServiceFailureException'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: CreateAccessKey
                  Version:
                    type: string
                    const: '2010-05-08'
              - $ref: '#/components/schemas/CreateAccessKeyRequest'
            example:
              UserName: Bob
      tags:
      - Access Keys
  /?Action=DeleteAccessKey:
    post:
      operationId: DeleteAccessKey
      summary: Delete Access Key
      description: Deletes the access key pair associated with the specified IAM user. If you do not specify a user name,
        IAM determines the user name implicitly based on the Amazon Web Services access key ID signing the request. This operation
        works for access keys under the Amazon Web Services account. Consequently, you can use this operation to manage Amazon
        Web Services account root user credentials even if the Amazon Web Services account has no associated users.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                type: string
        '409':
          description: LimitExceededException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '404':
          description: NoSuchEntityException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/NoSuchEntityException'
        '500':
          description: ServiceFailureException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ServiceFailureException'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: DeleteAccessKey
                  Version:
                    type: string
                    const: '2010-05-08'
              - $ref: '#/components/schemas/DeleteAccessKeyRequest'
            example:
              UserName: Bob
              AccessKeyId: AKIDPMS9RO4H3FEXAMPLE
      tags:
      - Access Keys
  /?Action=ListAccessKeys:
    post:
      operationId: ListAccessKeys
      summary: List Access Keys
      description: Returns information about the access key IDs associated with the specified IAM user. If there is none,
        the operation returns an empty list. Although each user is limited to a small number of keys, you can still paginate
        the results using the MaxItems and Marker parameters. If the UserName is not specified, the user name is determined
        implicitly based on the Amazon Web Services access key ID used to sign the request. If a temporary access key is used,
        then UserName is required. If a long-term key is assigned to the user, then UserName is not required. This operation
        works for access keys under the Amazon Web Services account. If the Amazon Web Services account has no associated
        users, the root user returns it's own access key IDs by running this command. To ensure the security of your Amazon
        Web Services account, the secret access key is accessible only during key and user creation.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ListAccessKeysResponse'
              example:
                AccessKeyMetadata:
                - UserName: Alice
                  Status: Active
                  CreateDate: '2016-12-01T22:19:58Z'
                  AccessKeyId: AKIA111111111EXAMPLE
                - UserName: Alice
                  Status: Active
                  CreateDate: '2016-12-01T22:20:01Z'
                  AccessKeyId: AKIA222222222EXAMPLE
        '404':
          description: NoSuchEntityException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/NoSuchEntityException'
        '500':
          description: ServiceFailureException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ServiceFailureException'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: ListAccessKeys
                  Version:
                    type: string
                    const: '2010-05-08'
              - $ref: '#/components/schemas/ListAccessKeysRequest'
            example:
              UserName: Alice
      tags:
      - Access Keys
  /?Action=UpdateAccessKey:
    post:
      operationId: UpdateAccessKey
      summary: Update Access Key
      description: Changes the status of the specified access key from Active to Inactive, or vice versa. This operation can
        be used to disable a user's key as part of a key rotation workflow. If the UserName is not specified, the user name
        is determined implicitly based on the Amazon Web Services access key ID used to sign the request. If a temporary access
        key is used, then UserName is required. If a long-term key is assigned to the user, then UserName is not required.
        This operation works for access keys under the Amazon Web Services account. Consequently, you can use this operation
        to manage Amazon Web Services account root user credentials even if the Amazon Web Services account has no associated
        users. For information about rotating keys, see Managing keys and certificates in the IAM User Guide.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                type: string
        '400':
          description: InvalidInputException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
        '409':
          description: LimitExceededException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '404':
          description: NoSuchEntityException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/NoSuchEntityException'
        '500':
          description: ServiceFailureException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ServiceFailureException'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: UpdateAccessKey
                  Version:
                    type: string
                    const: '2010-05-08'
              - $ref: '#/components/schemas/UpdateAccessKeyRequest'
            example:
              UserName: Bob
              Status: Inactive
              AccessKeyId: AKIAIOSFODNN7EXAMPLE
      tags:
      - Access 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: iam
  schemas:
    AccessKey:
      type: object
      properties:
        UserName:
          type: string
          description: The name of the IAM user that the access key is associated with.
        AccessKeyId:
          type: string
          description: The ID for this access key.
        Status:
          type: string
          enum:
          - Active
          - Inactive
          - Expired
          description: The status of the access key. Active means that the key is valid for API calls, while Inactive means
            it is not.
        SecretAccessKey:
          type: string
          description: The secret key used to sign requests.
        CreateDate:
          type: string
          format: date-time
          description: The date when the access key was created.
      required:
      - UserName
      - AccessKeyId
      - Status
      - SecretAccessKey
    AccessKeyMetadata:
      type: object
      properties:
        UserName:
          type: string
          description: The name of the IAM user that the key is associated with.
        AccessKeyId:
          type: string
          description: The ID for this access key.
        Status:
          type: string
          enum:
          - Active
          - Inactive
          - Expired
          description: The status of the access key. Active means that the key is valid for API calls; Inactive means it is
            not.
        CreateDate:
          type: string
          format: date-time
          description: The date when the access key was created.
    CreateAccessKeyRequest:
      type: object
      properties:
        UserName:
          type: string
          description: 'The name of the IAM user that the new key will belong to. This parameter allows (through its regex
            pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You
            can also include any of the following characters: _+=,.@-'
    CreateAccessKeyResponse:
      type: object
      properties:
        AccessKey:
          $ref: '#/components/schemas/AccessKey'
      required:
      - AccessKey
    DeleteAccessKeyRequest:
      type: object
      properties:
        UserName:
          type: string
          description: 'The name of the user whose access key pair you want to delete. This parameter allows (through its
            regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces.
            You can also include any of the following characters: _+=,.@-'
        AccessKeyId:
          type: string
          description: The access key ID for the access key ID and secret access key you want to delete. This parameter allows
            (through its regex pattern) a string of characters that can consist of any upper or lowercased letter or digit.
      required:
      - AccessKeyId
    InvalidInputException:
      type: object
      properties:
        message:
          type: string
    LimitExceededException:
      type: object
      properties:
        message:
          type: string
    ListAccessKeysRequest:
      type: object
      properties:
        UserName:
          type: string
          description: 'The name of the user. This parameter allows (through its regex pattern) a string of characters consisting
            of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters:
            _+=,.@-'
        Marker:
          type: string
          description: Use this parameter only when paginating results and only after you receive a response indicating that
            the results are truncated. Set it to the value of the Marker element in the response that you received to indicate
            where the next call should start.
        MaxItems:
          type: integer
          description: Use this only when paginating results to indicate the maximum number of items you want in the response.
            If additional items exist beyond the maximum you specify, the IsTruncated response element is true. If you do
            not include this parameter, the number of items defaults to 100. Note that IAM might return fewer results, even
            when there are more results available. In that case, the IsTruncated response element returns true, and Marker
            contains a value to include in the subsequent call that tells the service where to continue from.
    ListAccessKeysResponse:
      type: object
      properties:
        AccessKeyMetadata:
          type: array
          items:
            $ref: '#/components/schemas/AccessKeyMetadata'
          description: A list of objects containing metadata about the access keys.
        IsTruncated:
          type: boolean
          description: A flag that indicates whether there are more items to return. If your results were truncated, you can
            make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM
            might return fewer than the MaxItems number of results even when there are more results available. We recommend
            that you check IsTruncated after every call to ensure that you receive all your results.
        Marker:
          type: string
          description: When IsTruncated is true, this element is present and contains the value to use for the Marker parameter
            in a subsequent pagination request.
      required:
      - AccessKeyMetadata
    NoSuchEntityException:
      type: object
      properties:
        message:
          type: string
    ServiceFailureException:
      type: object
      properties:
        message:
          type: string
    UpdateAccessKeyRequest:
      type: object
      properties:
        UserName:
          type: string
          description: 'The name of the user whose key you want to update. This parameter allows (through its regex pattern)
            a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also
            include any of the following characters: _+=,.@-'
        AccessKeyId:
          type: string
          description: The access key ID of the secret access key you want to update. This parameter allows (through its regex
            pattern) a string of characters that can consist of any upper or lowercased letter or digit.
        Status:
          type: string
          enum:
          - Active
          - Inactive
          - Expired
          description: The status you want to assign to the secret access key. Active means that the key can be used for programmatic
            calls to Amazon Web Services, while Inactive means that the key cannot be used.
      required:
      - AccessKeyId
      - Status
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/iam/service/2010-05-08/iam-2010-05-08.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)