Amazon SES Ses Receipt Rule API

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

GitHub OpenAPI

Operations 4

POST /?Action=CreateReceiptRule Create Receipt Rule #
POST /?Action=DeleteReceiptRule Delete Receipt Rule #
POST /?Action=DescribeReceiptRule Describe Receipt Rule #
POST /?Action=UpdateReceiptRule Update Receipt Rule #

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-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-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Amazon Simple Email Service Receipt Rule 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=CreateReceiptRule:
    post:
      operationId: CreateReceiptRule
      summary: Create Receipt Rule
      description: Creates a receipt rule. For information about setting up receipt rules, 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/CreateReceiptRuleResponse'
        '400':
          description: AlreadyExistsException; InvalidLambdaFunctionException; InvalidS3ConfigurationException; InvalidSnsTopicException;
            LimitExceededException; RuleDoesNotExistException; RuleSetDoesNotExistException
          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: CreateReceiptRule
                  Version:
                    type: string
                    const: '2010-12-01'
              - $ref: '#/components/schemas/CreateReceiptRuleRequest'
            example:
              RuleSetName: MyRuleSet
              After: ''
              Rule:
                TlsPolicy: Optional
                Enabled: true
                Name: MyRule
                Actions:
                - S3Action:
                    ObjectKeyPrefix: email
                    BucketName: MyBucket
                ScanEnabled: true
      tags:
      - Receipt Rule
  /?Action=DeleteReceiptRule:
    post:
      operationId: DeleteReceiptRule
      summary: Delete Receipt Rule
      description: Deletes the specified receipt rule. For information about managing receipt rules, 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/DeleteReceiptRuleResponse'
        '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: DeleteReceiptRule
                  Version:
                    type: string
                    const: '2010-12-01'
              - $ref: '#/components/schemas/DeleteReceiptRuleRequest'
            example:
              RuleSetName: MyRuleSet
              RuleName: MyRule
      tags:
      - Receipt Rule
  /?Action=DescribeReceiptRule:
    post:
      operationId: DescribeReceiptRule
      summary: Describe Receipt Rule
      description: Returns the details of the specified receipt rule. For information about setting up receipt rules, 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/DescribeReceiptRuleResponse'
              example:
                Rule:
                  TlsPolicy: Optional
                  Enabled: true
                  Name: MyRule
                  Actions:
                  - S3Action:
                      ObjectKeyPrefix: email
                      BucketName: MyBucket
                  ScanEnabled: true
        '400':
          description: RuleDoesNotExistException; RuleSetDoesNotExistException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/RuleDoesNotExistException'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: DescribeReceiptRule
                  Version:
                    type: string
                    const: '2010-12-01'
              - $ref: '#/components/schemas/DescribeReceiptRuleRequest'
            example:
              RuleSetName: MyRuleSet
              RuleName: MyRule
      tags:
      - Receipt Rule
  /?Action=UpdateReceiptRule:
    post:
      operationId: UpdateReceiptRule
      summary: Update Receipt Rule
      description: Updates a receipt rule. For information about managing receipt rules, 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/UpdateReceiptRuleResponse'
        '400':
          description: InvalidLambdaFunctionException; InvalidS3ConfigurationException; InvalidSnsTopicException; LimitExceededException;
            RuleDoesNotExistException; RuleSetDoesNotExistException
          content:
            text/xml:
              schema:
                $ref: '#/components/schemas/InvalidLambdaFunctionException'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - type: object
                required:
                - Action
                - Version
                properties:
                  Action:
                    type: string
                    const: UpdateReceiptRule
                  Version:
                    type: string
                    const: '2010-12-01'
              - $ref: '#/components/schemas/UpdateReceiptRuleRequest'
            example:
              RuleSetName: MyRuleSet
              Rule:
                TlsPolicy: Optional
                Enabled: true
                Name: MyRule
                Actions:
                - S3Action:
                    ObjectKeyPrefix: email
                    BucketName: MyBucket
                ScanEnabled: true
      tags:
      - Receipt Rule
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
    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
    CreateReceiptRuleRequest:
      type: object
      properties:
        RuleSetName:
          type: string
          description: The name of the rule set where the receipt rule is added.
        After:
          type: string
          description: The name of an existing rule after which the new rule is placed. If this parameter is null, the new
            rule is inserted at the beginning of the rule list.
        Rule:
          $ref: '#/components/schemas/ReceiptRule'
      required:
      - RuleSetName
      - Rule
    CreateReceiptRuleResponse:
      type: object
      properties: {}
    DeleteReceiptRuleRequest:
      type: object
      properties:
        RuleSetName:
          type: string
          description: The name of the receipt rule set that contains the receipt rule to delete.
        RuleName:
          type: string
          description: The name of the receipt rule to delete.
      required:
      - RuleSetName
      - RuleName
    DeleteReceiptRuleResponse:
      type: object
      properties: {}
    DescribeReceiptRuleRequest:
      type: object
      properties:
        RuleSetName:
          type: string
          description: The name of the receipt rule set that the receipt rule belongs to.
        RuleName:
          type: string
          description: The name of the receipt rule.
      required:
      - RuleSetName
      - RuleName
    DescribeReceiptRuleResponse:
      type: object
      properties:
        Rule:
          $ref: '#/components/schemas/ReceiptRule'
    InvalidLambdaFunctionException:
      type: object
      properties:
        FunctionArn:
          type: string
          description: Indicates that the ARN of the function was not found.
        message:
          type: string
    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
    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
    RuleDoesNotExistException:
      type: object
      properties:
        Name:
          type: string
          description: Indicates that the named receipt rule does not exist.
        message:
          type: string
    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
    UpdateReceiptRuleRequest:
      type: object
      properties:
        RuleSetName:
          type: string
          description: The name of the receipt rule set that the receipt rule belongs to.
        Rule:
          $ref: '#/components/schemas/ReceiptRule'
      required:
      - RuleSetName
      - Rule
    UpdateReceiptRuleResponse:
      type: object
      properties: {}
    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)