# How to use refresh\_token?

**URL:** <https://forums.eveonline.com/t/how-to-use-refresh-token/57093>\
**Category:** Third Party Developers\
**Created:** [February 13, 2018, 7:01pm UTC](https://forums.eveonline.com/t/how-to-use-refresh-token/57093 "2018-02-13T19:01:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cindea\_Nevada](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/cindea_nevada/32/140795_2.png) [@Cindea\_Nevada](https://forums.eveonline.com/u/Cindea_Nevada)\
**Post date:** [February 13, 2018, 7:01pm UTC](https://forums.eveonline.com/t/how-to-use-refresh-token/57093/1 "2018-02-13T19:01:41Z")

</div>

Hi all,

I’m working with ESI interfaces as following:

- get a token with Postman ([https://www.getpostman.com](https://www.getpostman.com))
- retrieve data with [https://esi.tech.ccp.is/latest/characters/](https://esi.tech.ccp.is/latest/characters/)\<char\_no\>/assets/?&token=

(here for example the assets of my character)

It work well but the validity of a token is only 20 minutes. I read somewhere that a refresh token is always valid. It will be much better for me. Can I use a url with the refresh\_token instead of token. And if yes, can you give me the exact form please ?

Thanks for help.

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [February 13, 2018, 7:20pm UTC](https://forums.eveonline.com/t/how-to-use-refresh-token/57093/2 "2018-02-13T19:20:56Z")

</div>

Not quite.

You use your refresh\_token in an HTTP POST request to get a new access\_token.

Below is a sample Postman request on how to use the refresh\_token. The request is very similar to the one used to exchange a code for an access\_token, just with a different body.

```auto
POST /oauth/token HTTP/1.1
Host: login.eveonline.com
Accept: application/json
Authorization: Basic {YOUR_BASE64_ENCODED_CLIENT_ID_AND_CLIENT_SECRET}
Content-Type: application/json
Cache-Control: no-cache

{
    "grant_type":"refresh_token",
    "refresh_token":"YOUR_REFRESH_TOKEN"
}

```

---

<div class="post-metadata">

**Author:** ![Cindea\_Nevada](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/cindea_nevada/32/140795_2.png) [@Cindea\_Nevada](https://forums.eveonline.com/u/Cindea_Nevada)\
**Post date:** [February 13, 2018, 7:40pm UTC](https://forums.eveonline.com/t/how-to-use-refresh-token/57093/3 "2018-02-13T19:40:58Z")

</div>

Thanks for your response. But that’s not my question … 🙂  
I already have the refresh\_token. Postman gives me the token and the refresh\_token.

My question is : can i use the refresh\_token in a url ?  
For example, I have already try :  
[https://esi.tech.ccp.is/latest/characters/](https://esi.tech.ccp.is/latest/characters/)\<char\_no\>/assets/?&refresh\_token=\<ref\_token\>  
but it does not work.

Thanks !

---

<div class="post-metadata">

**Author:** ![Blacksmoke16](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/blacksmoke16/32/376589_2.png) [@Blacksmoke16](https://forums.eveonline.com/u/Blacksmoke16)\
**Post date:** [February 13, 2018, 7:50pm UTC](https://forums.eveonline.com/t/how-to-use-refresh-token/57093/4 "2018-02-13T19:50:02Z")

</div>

No.

Again that is not the role of a refresh\_token. You use the refresh\_token to get a new access\_token to use in auth’d requests.

---

<div class="post-metadata">

**Author:** ![Cindea\_Nevada](https://sea1.discourse-cdn.com/eveonline/user_avatar/forums.eveonline.com/cindea_nevada/32/140795_2.png) [@Cindea\_Nevada](https://forums.eveonline.com/u/Cindea_Nevada)\
**Post date:** [February 13, 2018, 9:33pm UTC](https://forums.eveonline.com/t/how-to-use-refresh-token/57093/5 "2018-02-13T21:33:10Z")

</div>

oki. thanks even if the response is not convenient for me…

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/eveonline/original/3X/4/1/41ec4921cbaca7a6f9ea556e7cc20018461eae5e.png) [@system](https://forums.eveonline.com/u/system)\
**Post date:** [May 15, 2018, 7:22am UTC](https://forums.eveonline.com/t/how-to-use-refresh-token/57093/7 "2018-05-15T07:22:22Z")

</div>

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