# Using Postman To Access the API

**URL:** https://meta.discourse.org/t/using-postman-to-access-the-api/153413
**Category:** Support
**Created:** [May 31, 2020, 9:08pm UTC](https://meta.discourse.org/t/using-postman-to-access-the-api/153413 "2020-05-31T21:08:58Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![kimardenmiller](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kimardenmiller/32/119631_2.png) [@kimardenmiller](https://meta.discourse.org/u/kimardenmiller)
#### Post date: [May 31, 2020, 9:08pm UTC](https://meta.discourse.org/t/using-postman-to-access-the-api/153413/1 "2020-05-31T21:08:58Z")

</div>

I’ve used Postman to access the API for a couple years, but now it does not seem to work anymore, giving the html

```
An account is required. Please log in to continue.

```

Looking at the API key Admin set up, that has changed a little, but my API key is still there. Tried creating a new API key, but no change.

Recently updated to beta4. Is there a new requirement?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [May 31, 2020, 10:21pm UTC](https://meta.discourse.org/t/using-postman-to-access-the-api/153413/2 "2020-05-31T22:21:10Z")

</div>

Double check that you’re passing the API key (and username) as a HTTP Header, and not as a parameter. That’d be the first thing to check.

---

<div class="post-metadata">

### Author: ![kimardenmiller](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kimardenmiller/32/119631_2.png) [@kimardenmiller](https://meta.discourse.org/u/kimardenmiller)
#### Post date: [June 1, 2020, 12:01am UTC](https://meta.discourse.org/t/using-postman-to-access-the-api/153413/3 "2020-06-01T00:01:40Z")

</div>

Like so?

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/3/93950d860b913e47c3403b9c7e6cc670b01c98c2.png)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [June 1, 2020, 12:09am UTC](https://meta.discourse.org/t/using-postman-to-access-the-api/153413/4 "2020-06-01T00:09:13Z")

</div>

Close. Per the documentation, [https://docs.discourse.org](https://docs.discourse.org), those should be hyphens (`-`), not underscores(`_`). Correct keys are `Api-Key` and `Api-Username`.

---

<div class="post-metadata">

### Author: ![kimardenmiller](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kimardenmiller/32/119631_2.png) [@kimardenmiller](https://meta.discourse.org/u/kimardenmiller)
#### Post date: [June 1, 2020, 12:10am UTC](https://meta.discourse.org/t/using-postman-to-access-the-api/153413/5 "2020-06-01T00:10:46Z")

</div>

Solved. Thank you!

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/2/c2af7caa873ebd6541ac301f83bb6eb98b43089e.png)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [July 1, 2020, 12:14am UTC](https://meta.discourse.org/t/using-postman-to-access-the-api/153413/6 "2020-07-01T00:14:23Z")

</div>

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