HookTestHookTest
← All Guides

Test AWS SNS Webhooks with HookTest

Test AWS SNS webhook notifications for pub/sub messaging and CloudWatch alarms. Use HookTest to create a free webhook URL, point AWS SNS at it, and inspect every request in real time — headers, body, and signature included.

Quick Start

Get AWS SNS webhooks flowing to HookTest in under a minute:

  1. Create a HookTest URL. Go to hooktest.dev and click Create Bin. Copy the webhook URL.
  2. Add it to AWS SNS webhook settings. Paste the HookTest URL as your webhook endpoint in the AWS SNS developer dashboard. Select the events you want to receive.
  3. Trigger an event and inspect. Perform an action in AWS SNS (or use their test/sandbox mode) and watch the request appear in HookTest in real time. Check headers, body, and query parameters.

Common AWS SNS Webhook Events

These are the most commonly tested AWS SNS webhook events. Each one triggers an HTTP POST to your webhook URL with a JSON payload.

EventDescription
SubscriptionConfirmationEndpoint subscription needs confirmation
NotificationA message is published to the topic
UnsubscribeConfirmationEndpoint is unsubscribed

Verifying AWS SNS Signatures

AWS SNS signs every webhook request using the x-amz-sns-message-type header. You should always verify this signature in production to confirm the request actually came from AWS SNS and was not tampered with in transit.

When testing with HookTest, you can inspect the raw signature header value in the request details. This is useful for verifying that your signature verification code handles the header format correctly before deploying to production.

See the official AWS SNS webhook docs for the full signature verification algorithm and code samples.

Why Test AWS SNS Webhooks?

Webhook handlers are notoriously hard to debug. You cannot see what AWS SNS is sending until your endpoint receives it, and errors in your handler can cause silent failures — missed payments, lost data, or broken integrations.

HookTest gives you full visibility into every request before you write a line of handler code. Create a bin, point AWS SNS at it, and see exactly what arrives: HTTP method, headers (including signatures), body, and query parameters. Once your handler is ready, use webhook forwarding to send requests to your local server in real time.

Start testing AWS SNS webhooks

Create a free webhook URL in one click. No signup required.

Create Free Webhook URL

Related Guides