# App API

After setting up your server, the next thing is to make sure your apps are set to use your server for making requests.

The api your apps should be connecting to is going to be&#x20;

**<https://YOUR\\_SERVER\\_URL/api>**

As you can see in the project, the apps api is

{% embed url="<https://food.thesnaptask.com/api/>" %}

## API Authentication

Now if you try to make request to the api endpoint from the api you should be getting error like `Access token error`

Here is what you need to do to allow Authorized requests to your api. Run the command below in your project directory on your server.

```
php artisan passport:install
```
