Calling Developers!
We are reenergizing our code contribution process! Learn More

Glue API access-token and token endpoints

Options
vaisakhpc
vaisakhpc Senior Developer Posts: 1 🧑🏻‍🚀 - Cadet

Hello all, I've been looking into the API specs of Spryker and I found that there are two types of toek requesting endpoints, one is '{{baseUrl}}/access-tokens' and another one is '{{baseUrl}}/token'. I couldn't make the latter work as well, tried a few options for passing the arguments and headers, but no luck. I would like to know about these two, things like which to use when. I've noticed that in some docs pages ( Like this, https://docs.spryker.com/docs/pbc/all/data-exchange/202404.0/sending-requests-with-data-exchange-api.html#prerequisites ), I can see the reference to "/token" endpoint. I would really appreciate if anyone from spryker could clear the air here for me