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

alquhait's avatar

How to give access to my api for any other apps

I’m building an API and I want to grant access to specific apps not users but apps like any other platform like zoom for example if you want to use their API you have to create app then they will give you app key and secret key, now in Laravel Passport you can create a client and a secret key but for a specifici user what I want is to give access to all api based on the app and then based on the user.

0 likes
1 reply
jlrdw's avatar

You might get some ideas from https://laracasts.com/series/playing-with-php/episodes/5

Basically an app is getting data from an API. However if you required login, then the app stills pulls the data but the app needs credentials to be used.

Also of course look over:

https://laravel.com/docs/9.x/eloquent-resources#main-content

A mobile virus scanner works the same, normally you have a free version, where you can still pull in updates. But for all the features you need to be registered and have proper credentials.

A decent article https://aws.amazon.com/what-is/api/

Please or to participate in this conversation.