# Missing required env variable: "consumer\_key"

**URL:** <https://community.postman.com/t/missing-required-env-variable-consumer-key/27788>\
**Category:** Help Hub\
**Tags:** tests, variables, collections, twitter\
**Created:** [September 13, 2021, 2:40pm UTC](https://community.postman.com/t/missing-required-env-variable-consumer-key/27788 "2021-09-13T14:40:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ljdatasci](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/ljdatasci/32/6715_2.png) [@ljdatasci](https://community.postman.com/u/ljdatasci)\
**Post date:** [September 13, 2021, 2:40pm UTC](https://community.postman.com/t/missing-required-env-variable-consumer-key/27788/1 "2021-09-13T14:40:07Z")

</div>

I’m using the Twitter API v2 in Postman and I’m getting the following error in the console whenever I send a request:

“Missing required env variable:” “consumer\_key”  
I checked the collection variables and the consumer\_key is set, but I’m still getting this error.

---

<div class="post-metadata">

**Author:** ![succuruddi](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@succuruddi](https://community.postman.com/u/succuruddi)\
**Post date:** [August 5, 2022, 5:46pm UTC](https://community.postman.com/t/missing-required-env-variable-consumer-key/27788/2 "2022-08-05T17:46:19Z")

</div>

Hi I have your same problem, did you fix it?

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [August 18, 2022, 11:28am UTC](https://community.postman.com/t/missing-required-env-variable-consumer-key/27788/3 "2022-08-18T11:28:36Z")

</div>

@succuruddi

Try posting a screenshot of your collection environment variables, the request, response, the console log, and anything else that might be pertinent.
