Amazon Secrets Manager Passwords API

Operations for generating passwords.

GitHub OpenAPI

Operations 1

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 /#GetRandomPassword Generate a random password · Get Random Password #
Ask an LLM
“Can Secrets Manager generate a strong random password for a new database user?”
“Is it possible to exclude punctuation or certain characters from a generated password?”
Tell an agent
Generate a random password {PasswordLength} characters long.
Generate a random password that leaves out the characters {ExcludeCharacters}.

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/amazon-secrets-manager:amazon-secrets-manager-passwords-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-secrets-manager-passwords-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS Secrets Manager Passwords API
  version: '2017-10-17'
  description: Generated from AWS's published Smithy model for AWS Secrets Manager. 1 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://secretsmanager.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /#GetRandomPassword:
    post:
      operationId: GetRandomPassword
      summary: Get Random Password
      description: 'Generates a random password. We recommend that you specify the maximum length and include every character
        type that the system you are generating a password for can support. By default, Secrets Manager uses uppercase and
        lowercase letters, numbers, and the following characters in passwords: !\"#$%&''()*+,-./:;?@[\\]^_`{|}~ Secrets Manager
        generates a CloudTrail log entry when you call this action. Required permissions: secretsmanager:GetRandomPassword.
        For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets
        Manager.'
      responses:
        '200':
          description: Success
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/GetRandomPasswordResponse'
              example:
                RandomPassword: EXAMPLE-PASSWORD
        '500':
          description: InternalServiceError
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServiceError'
        '400':
          description: InvalidParameterException; InvalidRequestException
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InvalidParameterException'
      parameters:
      - name: X-Amz-Target
        in: header
        required: true
        schema:
          type: string
          enum:
          - secretsmanager.GetRandomPassword
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/GetRandomPasswordRequest'
            example:
              PasswordLength: 20
              IncludeSpace: true
              RequireEachIncludedType: true
      tags:
      - Passwords
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: secretsmanager
  schemas:
    GetRandomPasswordRequest:
      type: object
      properties:
        PasswordLength:
          type: integer
          description: The length of the password. If you don't include this parameter, the default length is 32 characters.
        ExcludeCharacters:
          type: string
          description: A string of the characters that you don't want in the password.
        ExcludeNumbers:
          type: boolean
          description: Specifies whether to exclude numbers from the password. If you don't include this switch, the password
            can contain numbers.
        ExcludePunctuation:
          type: boolean
          description: 'Specifies whether to exclude the following punctuation characters from the password: ! " # $ % & ''
            ( ) * + , - . / : ; ? @ [ \ ] ^ _ ` { | } ~. If you don''t include this switch, the password can contain punctuation.'
        ExcludeUppercase:
          type: boolean
          description: Specifies whether to exclude uppercase letters from the password. If you don't include this switch,
            the password can contain uppercase letters.
        ExcludeLowercase:
          type: boolean
          description: Specifies whether to exclude lowercase letters from the password. If you don't include this switch,
            the password can contain lowercase letters.
        IncludeSpace:
          type: boolean
          description: Specifies whether to include the space character. If you include this switch, the password can contain
            space characters.
        RequireEachIncludedType:
          type: boolean
          description: Specifies whether to include at least one upper and lowercase letter, one number, and one punctuation.
            If you don't include this switch, the password contains at least one of every character type.
    GetRandomPasswordResponse:
      type: object
      properties:
        RandomPassword:
          type: string
          description: A string with the password.
    InternalServiceError:
      type: object
      properties:
        Message:
          type: string
    InvalidParameterException:
      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/secrets-manager/service/2017-10-17/secrets-manager-2017-10-17.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)