Amazon Secrets Manager Amazon Secrets Manager API

The Amazon Secrets Manager API API from Amazon Secrets Manager — 2 operation(s) for amazon secrets manager api.

GitHub OpenAPI

Operations 2

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 /#TagResource Add tags to a secret · Tag Resource #
Ask an LLM
“How do I attach cost-allocation tags to a secret in AWS Secrets Manager?”
“Do tags on a secret apply to every version or only the current one?”
Tell an agent
Tag secret {SecretId} with {Tags}.
Add the key-value tags {Tags} to the metadata of secret {SecretId}.
POST /#UntagResource Remove tags from a secret · Untag Resource #
Ask an LLM
“How can I strip specific tag keys off a secret?”
“What happens if I try to remove a tag that isn't attached to the secret?”
Tell an agent destructive · confirm first
Remove the tag keys {TagKeys} from secret {SecretId}.
Untag secret {SecretId}, dropping {TagKeys}.

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-amazon-secrets-manager-api-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-amazon-secrets-manager-api-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS Secrets Manager Amazon Secrets Manager Api API
  version: '2017-10-17'
  description: Generated from AWS's published Smithy model for AWS Secrets Manager. 2 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:
  /#TagResource:
    post:
      operationId: TagResource
      summary: Tag Resource
      description: 'Attaches tags to a secret. Tags consist of a key name and a value. Tags are part of the secret''s metadata.
        They are not associated with specific versions of the secret. This operation appends tags to the existing list of
        tags. For tag quotas and naming restrictions, see Service quotas for Tagging in the Amazon Web Services General Reference
        guide. If you use tags as part of your security strategy, then adding or removing a tag can change permissions. If
        successfully completing this operation would result in you losing your permissions for this secret, then the operation
        is blocked and returns an Access Denied error. Secrets Manager generates a CloudTrail log entry when you call this
        action. Do not include sensitive information in request parameters because it might be logged. For more information,
        see Logging Secrets Manager events with CloudTrail. Required permissions: secretsmanager:TagResource. 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:
                type: string
        '500':
          description: InternalServiceError
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServiceError'
        '400':
          description: InvalidParameterException; InvalidRequestException; ResourceNotFoundException
          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.TagResource
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/TagResourceRequest'
            example:
              SecretId: MyExampleSecret
              Tags:
              - Key: FirstTag
                Value: SomeValue
              - Key: SecondTag
                Value: AnotherValue
      tags:
      - Amazon Secrets Manager Api
  /#UntagResource:
    post:
      operationId: UntagResource
      summary: Untag Resource
      description: 'Removes specific tags from a secret. This operation is idempotent. If a requested tag is not attached
        to the secret, no error is returned and the secret metadata is unchanged. If you use tags as part of your security
        strategy, then removing a tag can change permissions. If successfully completing this operation would result in you
        losing your permissions for this secret, then the operation is blocked and returns an Access Denied error. Secrets
        Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request
        parameters because it might be logged. For more information, see Logging Secrets Manager events with CloudTrail. Required
        permissions: secretsmanager:UntagResource. 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:
                type: string
        '500':
          description: InternalServiceError
          content:
            application/x-amz-json-1.1:
              schema:
                $ref: '#/components/schemas/InternalServiceError'
        '400':
          description: InvalidParameterException; InvalidRequestException; ResourceNotFoundException
          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.UntagResource
      requestBody:
        required: true
        content:
          application/x-amz-json-1.1:
            schema:
              $ref: '#/components/schemas/UntagResourceRequest'
            example:
              SecretId: MyTestDatabaseSecret
              TagKeys:
              - FirstTag
              - SecondTag
      tags:
      - Amazon Secrets Manager Api
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:
    InternalServiceError:
      type: object
      properties:
        Message:
          type: string
    InvalidParameterException:
      type: object
      properties:
        Message:
          type: string
    Tag:
      type: object
      properties:
        Key:
          type: string
          description: The key identifier, or name, of the tag.
        Value:
          type: string
          description: The string value associated with the key of the tag.
    TagResourceRequest:
      type: object
      properties:
        SecretId:
          type: string
          description: The identifier for the secret to attach tags to. You can specify either the Amazon Resource Name (ARN)
            or the friendly name of the secret. For an ARN, we recommend that you specify a complete ARN rather than a partial
            ARN. See Finding a secret from a partial ARN.
        Tags:
          type: array
          items:
            $ref: '#/components/schemas/Tag'
          description: The tags to attach to the secret as a JSON text string argument. Each element in the list consists
            of a Key and a Value. For storing multiple values, we recommend that you use a JSON text string argument and specify
            key/value pairs. For more information, see Specifying parameter values for the Amazon Web Services CLI in the
            Amazon Web Services CLI User Guide.
      required:
      - SecretId
      - Tags
    UntagResourceRequest:
      type: object
      properties:
        SecretId:
          type: string
          description: The ARN or name of the secret. For an ARN, we recommend that you specify a complete ARN rather than
            a partial ARN. See Finding a secret from a partial ARN.
        TagKeys:
          type: array
          items:
            type: string
          description: A list of tag key names to remove from the secret. You don't specify the value. Both the key and its
            associated value are removed. This parameter requires a JSON text string argument. For storing multiple values,
            we recommend that you use a JSON text string argument and specify key/value pairs. For more information, see Specifying
            parameter values for the Amazon Web Services CLI in the Amazon Web Services CLI User Guide.
      required:
      - SecretId
      - TagKeys
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)