title: Where is the Token or SubscribeUrl inside the SubscriptionConfirmation request?
body: <p>I'm trying to accept a subscription confirmation from SNS using node.js. </p>
  
  <p>I type my endpoint into the console and hit subscribe.</p>
  
  <p><a href="http://docs.aws.amazon.com/sns/latest/dg/json-formats.html#http-notification-json" rel="nofollow">The documentation</a> says </p>
  
  <blockquote>
    <p>After you subscribe an HTTP/HTTPS endpoint, Amazon SNS sends a subscription confirmation message to the HTTP/HTTPS endpoint. This message contains a SubscribeURL value that you must visit to confirm the subscription (alternatively, you can use the Token value with the ConfirmSubscription).</p>
  </blockquote>
  
  <p>So I'm doing this to preview the request so I can find the information I need.</p>
  
  <pre><code>if(req.headers['x-amz-sns-message-type'] === 'SubscriptionConfirmation'){
      console.log('subscription confirmation requested',req.headers);
      console.log('body:',req.body);
      var arn = req.headers['x-amz-sns-subscription-arn'];
      var topic = req.headers['x-amz-sns-topic-arn'];
      res.send(200);
  }
  </code></pre>
  
  <p>I can't find SubscribeUrl or the Token in the headers or in the body.</p>
  
  <p>The console line containing req.body just prints <code>body: {}</code>
  The console line containing req.headers doesn't contain SubscriptionUrl or Token</p>
  
  <p>So where is it?</p>