# Get AWS Canonical Request

**URL:** <https://community.postman.com/t/get-aws-canonical-request/14185>\
**Category:** Help Hub\
**Tags:** authentication\
**Created:** [July 15, 2020, 7:39pm UTC](https://community.postman.com/t/get-aws-canonical-request/14185 "2020-07-15T19:39:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marchap](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@marchap](https://community.postman.com/u/marchap)\
**Post date:** [July 15, 2020, 7:39pm UTC](https://community.postman.com/t/get-aws-canonical-request/14185/1 "2020-07-15T19:39:05Z")

</div>

Less of an issue with Postman, but a question to whether, by using Postman, I’d be able to see the calculated AWS Canonical request.

Out of the few tools I’ve used that offer AWS authentication methods, Postman has been the only one that has successfully matched the signature. I’d like to use Postman’s canonical request as reference.

---

<div class="post-metadata">

**Author:** ![kevin.swiber](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kevin.swiber/32/3820_2.png) [@kevin.swiber](https://community.postman.com/u/kevin.swiber)\
**Post date:** [July 16, 2020, 12:53am UTC](https://community.postman.com/t/get-aws-canonical-request/14185/2 "2020-07-16T00:53:44Z")

</div>

Hi @marchap,

You can see how Postman does this here: [https://github.com/postmanlabs/postman-runtime/blob/c18367f75b6aeed8950daee5183e5db76477caa7/lib/authorizer/aws4.js#L223](https://github.com/postmanlabs/postman-runtime/blob/c18367f75b6aeed8950daee5183e5db76477caa7/lib/authorizer/aws4.js#L223).

Much of this is actually coming from the `aws4` module on npm. You can see the code here: [https://github.com/mhart/aws4/blob/master/aws4.js](https://github.com/mhart/aws4/blob/master/aws4.js).

Unfortunately, I don’t think there’s a way to get access to the canonical request before it’s converted into an HMAC digest. Since it’s a hash code (not encrypted text), you can’t reverse-engineer the signature. I’d look at the code in these libraries and see if you can produce something locally that reliably gives you what you’re seeking.

Best,

Kevin
