SaaSWeb comes with an API, which will allow you to provide an API to your users or build a mobile app from your API.

Get Access Token from an API Key

To create an API key you can visit your API settings page at: /account/tokens, then to create a new API key, enter a name in the textbox and click on the Create New Key button.

Passing The Access Token

When calling routes that are protected by Passport, your application's API consumers should specify their access token as a Bearer token in the Authorization header of their request. For example

$response = $client->request('GET', '/api/user', [
    'headers' => [
        'Accept' => 'application/json',
        'Authorization' => 'Bearer '.$accessToken,