Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tgugnani's avatar

Access Token for Internal API

Hello, I am new to building JSON API with Laravel. So far I have been able to create the API and test it in PostMan using the password-based access token that i generated for one of the test clients on my localhost.

My question is how does this work when I want to use the API internally. I will be making ajax call in the application to the internal API. Which access token should I use? Should I be using a single access token for the entire application? Or will be creating different access token depending upon the user that is logged in.

Thank you in advance.

0 likes
3 replies
automica's avatar

@tgugnani if you are making internal calls theres no reason why you cant use a single access token.

tgugnani's avatar

Thanks ! However there are some API's where the result is based on User Authorization. What should be done for those?

Please or to participate in this conversation.