# Rest API use token

**URL:** <https://community.weweb.io/t/rest-api-use-token/3214>\
**Category:** Ask us anything\
**Tags:** authentication\
**Created:** [June 26, 2023, 5:14pm UTC](https://community.weweb.io/t/rest-api-use-token/3214 "2023-06-26T17:14:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![McRosbeef](https://avatars.discourse-cdn.com/v4/letter/m/eb9ed0/32.png) [@McRosbeef](https://community.weweb.io/u/McRosbeef)\
**Post date:** [June 26, 2023, 5:14pm UTC](https://community.weweb.io/t/rest-api-use-token/3214/1 "2023-06-26T17:14:50Z")

</div>

Hi Wewebers !

I want to use the REST API plugin. But I’m stuck  
First I need to get a token thought a GET (working in postman but not in weweb)

 ![CleanShot 2023-06-26 at 19.44.48@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/2/239c459781bda089d05bc65ae43d14a8bdc38db0.png)  
[Loading...](https://chi.printjobmanager.com/api/doc/) → Authentificate  
And after I need to use the token in other endpoint as POST

Anyone can help me ? What’s the best way to do it ?  
Thanks

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [June 28, 2023, 9:43am UTC](https://community.weweb.io/t/rest-api-use-token/3214/2 "2023-06-28T09:43:14Z")

</div>

Hi @McRosbeef 👋

I don’t quite understand what you’re trying to do. Can you share a screenshot of the Postman request that’s working?

From what I can see here, I would suggest the following:

- in the “URL” field, only paste the base URL of your API call (no query strings, no auth token)
- in the “Headers” section, use the “Add item” button to add the Authorization header
- in the “Query string” section, use the “Add item” button to add the query strings you need

If that doesn’t work, can you look at the error on the left, especially what’s inside the “response” object?

---

<div class="post-metadata">

**Author:** ![jsalim](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jsalim](https://community.weweb.io/u/jsalim)\
**Post date:** [February 28, 2025, 1:40pm UTC](https://community.weweb.io/t/rest-api-use-token/3214/3 "2025-02-28T13:40:32Z")

</div>

Hey Joyce, I’m having a similar challenge. Usually in postman I can just get a token as guest or when I login using credentials to access the API menus. Not sure how this reflects on WeWeb as I have tried looking at different resources. Tried using the workflow to “trigger” the guest token but its not working… any other ideas?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/9/98e9b0aeb162f0a3b21954b731cbf593752270ad.png)
