# API Keys not reporting usage in Postman dashboard

**URL:** <https://community.postman.com/t/api-keys-not-reporting-usage-in-postman-dashboard/58383>\
**Category:** Help Hub\
**Tags:** api-key\
**Created:** [March 3, 2024, 6:52pm UTC](https://community.postman.com/t/api-keys-not-reporting-usage-in-postman-dashboard/58383 "2024-03-03T18:52:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![datahound-fv](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@datahound-fv](https://community.postman.com/u/datahound-fv)\
**Post date:** [March 3, 2024, 6:52pm UTC](https://community.postman.com/t/api-keys-not-reporting-usage-in-postman-dashboard/58383/1 "2024-03-03T18:52:49Z")

</div>

I made API Keys in Postman and added them as a custom header in my Postman requests. I have sent a few requests over and am still not seeing usage reflected on my Postman account? I am going to send a big request over in the following days and I want to make sure that my calls are reflected. I am using Newman to run my collection.

**In Postman**

1. In Postman account, my API Key has a name and a value
2. In Postman app, my key:value is in my Globals and it is also added as a custom header

**In Newman**

1. I am running the collection with the `newman run collection.json -g globals.json` to capture the api `key:value`

I have sent a few GET requests but still not seeing usage reflected. Is there latency on Postman side? I want to make sure when I run my collections using Newman my usage is being reflected properly.

 ![スクリーンショット 2024-03-03 午前10.33.47](https://us1.discourse-cdn.com/getpostman/original/3X/6/c/6cfa164754b3f6cfa3a773f01fc0c583bc6af596.png)  
 ![スクリーンショット 2024-03-03 午前10.37.46](https://us1.discourse-cdn.com/getpostman/original/3X/6/a/6a22437b951cf9ab3b32700f77a7d329b56fa25a.png)

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [March 13, 2024, 4:21pm UTC](https://community.postman.com/t/api-keys-not-reporting-usage-in-postman-dashboard/58383/2 "2024-03-13T16:21:05Z")

</div>

Hey @datahound-fv 👋

Welcome to the Postman Community! :postman:

Does that API token work when used in a request within Postman and show that it’s been used in the API Keys section?

If you open up the exported Globals file in a text editor, is the value populated with the token? If this was only in the `Current` value of your Global variable in the app, it wouldn’t have been exported in that file.

As this is a secret token and probably something you wouldn’t want to expose you could use:

```auto
newman run collection.json --global-var "global-variable-name=global-variable-value"

```

You could take that further by adding the token value as a system variable or an environment variable on your CI tool and reference it using the relevant syntax in the command.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [April 12, 2024, 4:22pm UTC](https://community.postman.com/t/api-keys-not-reporting-usage-in-postman-dashboard/58383/3 "2024-04-12T16:22:05Z")

</div>

Closed on April 12, 2024, 4:22pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
