# I'm trying to get the token of Akeneo's API

**URL:** <https://community.n8n.io/t/im-trying-to-get-the-token-of-akeneos-api/7102>\
**Category:** Questions\
**Tags:** credentials\
**Created:** [August 5, 2021, 10:15am UTC](https://community.n8n.io/t/im-trying-to-get-the-token-of-akeneos-api/7102 "2021-08-05T10:15:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![victormiranda](https://avatars.discourse-cdn.com/v4/letter/v/48db29/32.png) [@victormiranda](https://community.n8n.io/u/victormiranda)\
**Post date:** [August 5, 2021, 10:15am UTC](https://community.n8n.io/t/im-trying-to-get-the-token-of-akeneos-api/7102/1 "2021-08-05T10:15:31Z")

</div>

Hi, im trying to get the token and i know that i need to make a POST request to this URL  
[https://pim.monouso.local/api/oauth/v1/token](https://pim.monouso.local/api/oauth/v1/token)

I need to send the variables client id, secret, username and password. This request will generate a access token.  
My configuration from oauth2 Credentials:

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/7/7a23998c1223adaa5a3c4fa642dcc326bfbe359e.png)

This not work for me!

![image](https://europe1.discourse-cdn.com/n8n/original/2X/d/dec9ddd12d780c54b139d371966ed16423187e3f.png)

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [August 5, 2021, 10:28am UTC](https://community.n8n.io/t/im-trying-to-get-the-token-of-akeneos-api/7102/2 "2021-08-05T10:28:03Z")

</div>

Is it not just a case of adding a HTTP Request node to your work flow then setting the OAuth 2 API option for credentials and setting the request method to post? I have not played with Akeneo but this is probably the first thing I would try just to see what happens.

---

<div class="post-metadata">

**Author:** ![victormiranda](https://avatars.discourse-cdn.com/v4/letter/v/48db29/32.png) [@victormiranda](https://community.n8n.io/u/victormiranda)\
**Post date:** [August 5, 2021, 10:33am UTC](https://community.n8n.io/t/im-trying-to-get-the-token-of-akeneos-api/7102/3 "2021-08-05T10:33:31Z")

</div>

You’re right, i’m trying this.

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/5/5623a9b4077f932e493c44ce5f0cdb414f8ad5ef.png)

---

<div class="post-metadata">

**Author:** ![victormiranda](https://avatars.discourse-cdn.com/v4/letter/v/48db29/32.png) [@victormiranda](https://community.n8n.io/u/victormiranda)\
**Post date:** [August 5, 2021, 11:22am UTC](https://community.n8n.io/t/im-trying-to-get-the-token-of-akeneos-api/7102/4 "2021-08-05T11:22:01Z")

</div>

I’m so noob, i’m trying to connect to a Virtual Machine.

---

<div class="post-metadata">

**Author:** ![Christel\_Doudet](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/christel_doudet/32/5198_2.png) [@Christel\_Doudet](https://community.n8n.io/u/Christel_Doudet)\
**Post date:** [August 5, 2021, 12:51pm UTC](https://community.n8n.io/t/im-trying-to-get-the-token-of-akeneos-api/7102/5 "2021-08-05T12:51:28Z")

</div>

hi, you can’t use n8n oath2 mecanism

> [@Akeneo credential](http://community.n8n.io/t/akeneo-credential/6480):
>
> hi all, Is there someone who have worked with Akeneo PIM ? i don’t know how to deal with their credentials token / refresh [https://api.akeneo.com/documentation/authentication.html#refresh-an-expired-token](https://api.akeneo.com/documentation/authentication.html#refresh-an-expired-token) Cani deal with this with oauth2 credential or am i obliged to catch the expired token in all the workflow. thanks

---

<div class="post-metadata">

**Author:** ![victormiranda](https://avatars.discourse-cdn.com/v4/letter/v/48db29/32.png) [@victormiranda](https://community.n8n.io/u/victormiranda)\
**Post date:** [August 5, 2021, 1:23pm UTC](https://community.n8n.io/t/im-trying-to-get-the-token-of-akeneos-api/7102/6 "2021-08-05T13:23:53Z")

</div>

Not because I have akeneo installed in a virtual machine and I access it from the internal network.  
All I need is to mount Akeneo inside a server and not locally.

---

<div class="post-metadata">

**Author:** ![harshil1712](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/harshil1712/32/1374_2.png) [@harshil1712](https://community.n8n.io/u/harshil1712)\
**Post date:** [August 9, 2021, 10:46am UTC](https://community.n8n.io/t/im-trying-to-get-the-token-of-akeneos-api/7102/7 "2021-08-09T10:46:12Z")

</div>

Hey @victormiranda, I wanted to check in and see if we can close this topic. Is it safe to link this topic: [Http request : is there hidden HEADERS parameters?](http://community.n8n.io/t/http-request-is-there-hidden-headers-parameters/6815) here for the solution?

---

<div class="post-metadata">

**Author:** ![victormiranda](https://avatars.discourse-cdn.com/v4/letter/v/48db29/32.png) [@victormiranda](https://community.n8n.io/u/victormiranda)\
**Post date:** [August 10, 2021, 6:35am UTC](https://community.n8n.io/t/im-trying-to-get-the-token-of-akeneos-api/7102/8 "2021-08-10T06:35:36Z")

</div>

@harshil1712  
Yes, the solution is there. Following the discussion you get to it.

---

<div class="post-metadata">

**Author:** ![harshil1712](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/harshil1712/32/1374_2.png) [@harshil1712](https://community.n8n.io/u/harshil1712)\
**Post date:** [August 10, 2021, 7:20am UTC](https://community.n8n.io/t/im-trying-to-get-the-token-of-akeneos-api/7102/9 "2021-08-10T07:20:03Z")

</div>

Thanks, @victormiranda!

To anyone who is facing a similar issue, you can find the solution here - [Http request : is there hidden HEADERS parameters?](http://community.n8n.io/t/http-request-is-there-hidden-headers-parameters/6815)
