Module: ActionMailbox::Ingresses

Defined in:
app/controllers/action_mailbox/ingresses/amazon/inbound_emails_controller.rb

Overview

Ingests inbound emails from Amazon SES/SNS and confirms subscriptions.

Subscription requests must provide the following parameters in a JSON body:

  • Message: Notification content

  • MessagId: Notification unique identifier

  • Timestamp: iso8601 timestamp

  • TopicArn: Topic identifier

  • Type: Type of event (“Subscription”)

Inbound email events must provide the following parameters in a JSON body:

  • Message: Notification content

  • MessagId: Notification unique identifier

  • Timestamp: iso8601 timestamp

  • SubscribeURL: Topic identifier

  • TopicArn: Topic identifier

  • Type: Type of event (“SubscriptionConfirmation”)

All requests are authenticated by validating the provided AWS signature.

Returns:

  • 204 No Content if a request is successfully processed

  • 401 Unauthorized if a request does not contain a valid signature

  • 404 Not Found if the Amazon ingress has not been configured

  • 422 Unprocessable Entity if a request provides invalid parameters

Defined Under Namespace

Modules: Amazon