Amazon SES Ses Receipt Rule Set API

The Ses Receipt Rule Set API from Amazon SES — 4 operation(s) for ses receipt rule set.

GitHub OpenAPI

Operations 4

POST /?Action=CreateReceiptRuleSet Create Receipt Rule Set #
POST /?Action=DeleteReceiptRuleSet Delete Receipt Rule Set #
POST /?Action=DescribeReceiptRuleSet Describe Receipt Rule Set #
POST /?Action=ListReceiptRuleSets List Receipt Rule Sets #

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-ses:amazon-ses-receipt-rule-set-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-ses-receipt-rule-set-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Simple Email Service Receipt Rule Set API
  version: '2010-12-01'
  description: Generated from AWS's published Smithy model for Amazon Simple Email Service. 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://email.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /?Action=CreateReceiptRuleSet:
    post:
      operationId: CreateReceiptRuleSet
      summary: Create Receipt Rule Set
      description: Creates an empty receipt rule set. For information about setting up receipt rule sets, see the Amazon SES
        Developer Guide. You can execute this operation no more than once per second.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/CreateReceiptRuleSetResponse'
        '400':
          description: AlreadyExistsException; LimitExceededException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/AlreadyExistsException'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: CreateReceiptRuleSet
                  Version:
                    type: string
                    const: '2010-12-01'
              - $ref: '#/components/schemas/CreateReceiptRuleSetRequest'
            example:
              RuleSetName: MyRuleSet
      tags:
      - Receipt Rule Set
  /?Action=DeleteReceiptRuleSet:
    post:
      operationId: DeleteReceiptRuleSet
      summary: Delete Receipt Rule Set
      description: Deletes the specified receipt rule set and all of the receipt rules it contains. The currently active rule
        set cannot be deleted. For information about managing receipt rule sets, see the Amazon SES Developer Guide. You can
        execute this operation no more than once per second.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/DeleteReceiptRuleSetResponse'
        '400':
          description: CannotDeleteException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/CannotDeleteException'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: DeleteReceiptRuleSet
                  Version:
                    type: string
                    const: '2010-12-01'
              - $ref: '#/components/schemas/DeleteReceiptRuleSetRequest'
            example:
              RuleSetName: MyRuleSet
      tags:
      - Receipt Rule Set
  /?Action=DescribeReceiptRuleSet:
    post:
      operationId: DescribeReceiptRuleSet
      summary: Describe Receipt Rule Set
      description: Returns the details of the specified receipt rule set. For information about managing receipt rule sets,
        see the Amazon SES Developer Guide. You can execute this operation no more than once per second.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/DescribeReceiptRuleSetResponse'
              example:
                Metadata:
                  CreatedTimestamp: '2016-07-15T16:25:59.607Z'
                  Name: MyRuleSet
                Rules:
                - TlsPolicy: Optional
                  Enabled: true
                  Name: MyRule
                  Actions:
                  - S3Action:
                      ObjectKeyPrefix: email
                      BucketName: MyBucket
                  ScanEnabled: true
        '400':
          description: RuleSetDoesNotExistException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/RuleSetDoesNotExistException'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: DescribeReceiptRuleSet
                  Version:
                    type: string
                    const: '2010-12-01'
              - $ref: '#/components/schemas/DescribeReceiptRuleSetRequest'
            example:
              RuleSetName: MyRuleSet
      tags:
      - Receipt Rule Set
  /?Action=ListReceiptRuleSets:
    post:
      operationId: ListReceiptRuleSets
      summary: List Receipt Rule Sets
      description: Lists the receipt rule sets that exist under your Amazon Web Services account in the current Amazon Web
        Services Region. If there are additional receipt rule sets to be retrieved, you receive a NextToken that you can provide
        to the next call to ListReceiptRuleSets to retrieve the additional entries. For information about managing receipt
        rule sets, see the Amazon SES Developer Guide. You can execute this operation no more than once per second.
      responses:
        '200':
          description: Success
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/ListReceiptRuleSetsResponse'
              example:
                RuleSets:
                - CreatedTimestamp: '2016-07-15T16:25:59.607Z'
                  Name: MyRuleSet
                NextToken: ''
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: ListReceiptRuleSets
                  Version:
                    type: string
                    const: '2010-12-01'
              - $ref: '#/components/schemas/ListReceiptRuleSetsRequest'
            example:
              NextToken: ''
      tags:
      - Receipt Rule Set
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: ses
  schemas:
    AddHeaderAction:
      type: object
      properties:
        HeaderName:
          type: string
          description: The name of the header to add to the incoming message. The name must contain at least one character,
            and can contain up to 50 characters. It consists of alphanumeric (a–z, A–Z, 0–9) characters and dashes.
        HeaderValue:
          type: string
          description: The content to include in the header. This value can contain up to 2048 characters. It can't contain
            newline (\n) or carriage return (\r) characters.
      required:
      - HeaderName
      - HeaderValue
    AlreadyExistsException:
      type: object
      properties:
        Name:
          type: string
          description: Indicates that a resource could not be created because the resource name already exists.
        message:
          type: string
    BounceAction:
      type: object
      properties:
        TopicArn:
          type: string
          description: The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the bounce action is taken. You
            can find the ARN of a topic by using the ListTopics operation in Amazon SNS. For more information about Amazon
            SNS topics, see the Amazon SNS Developer Guide.
        SmtpReplyCode:
          type: string
          description: The SMTP reply code, as defined by RFC 5321.
        StatusCode:
          type: string
          description: The SMTP enhanced status code, as defined by RFC 3463.
        Message:
          type: string
          description: Human-readable text to include in the bounce message.
        Sender:
          type: string
          description: The email address of the sender of the bounced email. This is the address from which the bounce message
            is sent.
      required:
      - SmtpReplyCode
      - Message
      - Sender
    CannotDeleteException:
      type: object
      properties:
        Name:
          type: string
          description: Indicates that a resource could not be deleted because no resource with the specified name exists.
        message:
          type: string
    ConnectAction:
      type: object
      properties:
        InstanceARN:
          type: string
          description: The Amazon Resource Name (ARN) for the Amazon Connect instance that Amazon SES integrates with for
            starting email contacts. For more information about Amazon Connect instances, see the Amazon Connect Administrator
            Guide
        IAMRoleARN:
          type: string
          description: The Amazon Resource Name (ARN) of the IAM role to be used by Amazon Simple Email Service while starting
            email contacts to the Amazon Connect instance. This role should have permission to invoke connect:StartEmailContact
            for the given Amazon Connect instance.
      required:
      - InstanceARN
      - IAMRoleARN
    CreateReceiptRuleSetRequest:
      type: object
      properties:
        RuleSetName:
          type: string
          description: 'The name of the rule set to create. The name must meet the following requirements: Contain only ASCII
            letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). Start and end with a letter or number. Contain
            64 characters or fewer.'
      required:
      - RuleSetName
    CreateReceiptRuleSetResponse:
      type: object
      properties: {}
    DeleteReceiptRuleSetRequest:
      type: object
      properties:
        RuleSetName:
          type: string
          description: The name of the receipt rule set to delete.
      required:
      - RuleSetName
    DeleteReceiptRuleSetResponse:
      type: object
      properties: {}
    DescribeReceiptRuleSetRequest:
      type: object
      properties:
        RuleSetName:
          type: string
          description: The name of the receipt rule set to describe.
      required:
      - RuleSetName
    DescribeReceiptRuleSetResponse:
      type: object
      properties:
        Metadata:
          $ref: '#/components/schemas/ReceiptRuleSetMetadata'
        Rules:
          type: array
          items:
            $ref: '#/components/schemas/ReceiptRule'
          description: A list of the receipt rules that belong to the specified receipt rule set.
    LambdaAction:
      type: object
      properties:
        TopicArn:
          type: string
          description: The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the Lambda action is executed.
            You can find the ARN of a topic by using the ListTopics operation in Amazon SNS. For more information about Amazon
            SNS topics, see the Amazon SNS Developer Guide.
        FunctionArn:
          type: string
          description: The Amazon Resource Name (ARN) of the Amazon Web Services Lambda function. An example of an Amazon
            Web Services Lambda function ARN is arn:aws:lambda:us-west-2:account-id:function:MyFunction. For more information
            about Amazon Web Services Lambda, see the Amazon Web Services Lambda Developer Guide.
        InvocationType:
          type: string
          enum:
          - Event
          - RequestResponse
          description: The invocation type of the Amazon Web Services Lambda function. An invocation type of RequestResponse
            means that the execution of the function immediately results in a response, and a value of Event means that the
            function is invoked asynchronously. The default value is Event. For information about Amazon Web Services Lambda
            invocation types, see the Amazon Web Services Lambda Developer Guide. There is a 30-second timeout on RequestResponse
            invocations. You should use Event invocation in most cases. Use RequestResponse only to make a mail flow decision,
            such as whether to stop the receipt rule
      required:
      - FunctionArn
    ListReceiptRuleSetsRequest:
      type: object
      properties:
        NextToken:
          type: string
          description: A token returned from a previous call to ListReceiptRuleSets to indicate the position in the receipt
            rule set list.
    ListReceiptRuleSetsResponse:
      type: object
      properties:
        RuleSets:
          type: array
          items:
            $ref: '#/components/schemas/ReceiptRuleSetMetadata'
          description: The metadata for the currently active receipt rule set. The metadata consists of the rule set name
            and the timestamp of when the rule set was created.
        NextToken:
          type: string
          description: A token indicating that there are additional receipt rule sets available to be listed. Pass this token
            to successive calls of ListReceiptRuleSets to retrieve up to 100 receipt rule sets at a time.
    ReceiptAction:
      type: object
      properties:
        S3Action:
          $ref: '#/components/schemas/S3Action'
        BounceAction:
          $ref: '#/components/schemas/BounceAction'
        WorkmailAction:
          $ref: '#/components/schemas/WorkmailAction'
        LambdaAction:
          $ref: '#/components/schemas/LambdaAction'
        StopAction:
          $ref: '#/components/schemas/StopAction'
        AddHeaderAction:
          $ref: '#/components/schemas/AddHeaderAction'
        SNSAction:
          $ref: '#/components/schemas/SNSAction'
        ConnectAction:
          $ref: '#/components/schemas/ConnectAction'
    ReceiptRule:
      type: object
      properties:
        Name:
          type: string
          description: 'The name of the receipt rule. The name must meet the following requirements: Contain only ASCII letters
            (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), or periods (.). Start and end with a letter or number.
            Contain 64 characters or fewer.'
        Enabled:
          type: boolean
          description: If true, the receipt rule is active. The default value is false.
        TlsPolicy:
          type: string
          enum:
          - Require
          - Optional
          description: Specifies whether Amazon SES should require that incoming email is delivered over a connection encrypted
            with Transport Layer Security (TLS). If this parameter is set to Require, Amazon SES bounces emails that are not
            received over TLS. The default is Optional.
        Recipients:
          type: array
          items:
            type: string
          description: The recipient domains and email addresses that the receipt rule applies to. If this field is not specified,
            this rule matches all recipients on all verified domains.
        Actions:
          type: array
          items:
            $ref: '#/components/schemas/ReceiptAction'
          description: An ordered list of actions to perform on messages that match at least one of the recipient email addresses
            or domains specified in the receipt rule.
        ScanEnabled:
          type: boolean
          description: If true, then messages that this receipt rule applies to are scanned for spam and viruses. The default
            value is false.
      required:
      - Name
    ReceiptRuleSetMetadata:
      type: object
      properties:
        Name:
          type: string
          description: 'The name of the receipt rule set. The name must meet the following requirements: Contain only ASCII
            letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). Start and end with a letter or number. Contain
            64 characters or fewer.'
        CreatedTimestamp:
          type: string
          format: date-time
          description: The date and time the receipt rule set was created.
    RuleSetDoesNotExistException:
      type: object
      properties:
        Name:
          type: string
          description: Indicates that the named receipt rule set does not exist.
        message:
          type: string
    S3Action:
      type: object
      properties:
        TopicArn:
          type: string
          description: The ARN of the Amazon SNS topic to notify when the message is saved to the Amazon S3 bucket. You can
            find the ARN of a topic by using the ListTopics operation in Amazon SNS. For more information about Amazon SNS
            topics, see the Amazon SNS Developer Guide.
        BucketName:
          type: string
          description: The name of the Amazon S3 bucket for incoming email.
        ObjectKeyPrefix:
          type: string
          description: The key prefix of the Amazon S3 bucket. The key prefix is similar to a directory name that enables
            you to store similar data under the same directory in a bucket.
        KmsKeyArn:
          type: string
          description: 'The customer managed key that Amazon SES should use to encrypt your emails before saving them to the
            Amazon S3 bucket. You can use the Amazon Web Services managed key or a customer managed key that you created in
            Amazon Web Services KMS as follows: To use the Amazon Web Services managed key, provide an ARN in the form of
            arn:aws:kms:REGION:ACCOUNT-ID-WITHOUT-HYPHENS:alias/aws/ses. For example, if your Amazon Web Services account
            ID is 123456789012 and you want to use the Amazon Web Services managed key in the US West (Oregon) Region, the
            ARN of the Amazon Web Services managed key would be arn:'
        IamRoleArn:
          type: string
          description: 'The ARN of the IAM role to be used by Amazon Simple Email Service while writing to the Amazon S3 bucket,
            optionally encrypting your mail via the provided customer managed key, and publishing to the Amazon SNS topic.
            This role should have access to the following APIs: s3:PutObject, kms:Encrypt and kms:GenerateDataKey for the
            given Amazon S3 bucket. kms:GenerateDataKey for the given Amazon Web Services KMS customer managed key. sns:Publish
            for the given Amazon SNS topic. If an IAM role ARN is provided, the role (and only the role) is used to access
            all the given resources (Amazon S3 bucket, Amaz'
      required:
      - BucketName
    SNSAction:
      type: object
      properties:
        TopicArn:
          type: string
          description: The Amazon Resource Name (ARN) of the Amazon SNS topic to notify. You can find the ARN of a topic by
            using the ListTopics operation in Amazon SNS. For more information about Amazon SNS topics, see the Amazon SNS
            Developer Guide.
        Encoding:
          type: string
          enum:
          - UTF-8
          - Base64
          description: The encoding to use for the email within the Amazon SNS notification. UTF-8 is easier to use, but may
            not preserve all special characters when a message was encoded with a different encoding format. Base64 preserves
            all special characters. The default value is UTF-8.
      required:
      - TopicArn
    StopAction:
      type: object
      properties:
        Scope:
          type: string
          enum:
          - RuleSet
          description: The scope of the StopAction. The only acceptable value is RuleSet.
        TopicArn:
          type: string
          description: The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the stop action is taken. You
            can find the ARN of a topic by using the ListTopics Amazon SNS operation. For more information about Amazon SNS
            topics, see the Amazon SNS Developer Guide.
      required:
      - Scope
    WorkmailAction:
      type: object
      properties:
        TopicArn:
          type: string
          description: The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the WorkMail action is called.
            You can find the ARN of a topic by using the ListTopics operation in Amazon SNS. For more information about Amazon
            SNS topics, see the Amazon SNS Developer Guide.
        OrganizationArn:
          type: string
          description: 'The Amazon Resource Name (ARN) of the Amazon WorkMail organization. Amazon WorkMail ARNs use the following
            format: arn:aws:workmail:::organization/ You can find the ID of your organization by using the ListOrganizations
            operation in Amazon WorkMail. Amazon WorkMail organization IDs begin with "m-", followed by a string of alphanumeric
            characters. For information about Amazon WorkMail organizations, see the Amazon WorkMail Administrator Guide.'
      required:
      - OrganizationArn
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/ses/service/2010-12-01/ses-2010-12-01.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)