Skip to main content

API Authentication

The BioStar Air Cloud API uses Bearer token (JWT)-based authentication. You must obtain a token through the login process before calling the API, and include it in the Authorization header of every request.

API Base URLs

EnvironmentBase URL
Demohttps://demo-afs-api.airfob.com/v1/
Production - Europehttps://e-afs-api.airfob.com/v1/
Production - Koreahttps://a-afs-api.airfob.com/v1/ (for all non-EU customers)

API login flow

Make API calls with Postman or programmatically.

Log in

  • Endpoint: login

  • Payload:

    {
    "username": "your_email",
    "password": "your_password"
    }

Returns a Bearer token (JWT).

Get account information

  • Endpoint: getSelfAccounts

  • Authorization: Bearer Token

Returns a list of accessible sites and accounts.

Log in to an account

  • Endpoint: loginAccount

  • Authorization: Bearer Token

Returns a site-specific token.

How to get a Bearer token from a web browser

You can obtain the Bearer token directly from your browser using the developer tools, without Postman.

Chrome/Edge (Windows or Mac)

  1. In the web browser, press F12 or Ctrl/Cmd + Shift + I.

  2. Go to the Network tab.

  3. Refresh the page.

  4. Search for API calls.

    e.g., groups, login

  5. Click the request in the list.

  6. Go to the Headers tab.

  7. In the request headers, find Authorization: Bearer ....

  8. Right-click the token and copy it.

Safari (Mac)

  1. Enable the Developer menu. In Safari, go to Preferences → Advanced and check Show Develop menu.

  2. Go to DevelopShow Web Inspector.

  3. Go to the Network tab.

  4. Refresh the page.

  5. Filter and inspect API calls.

  6. Copy the Authorization: Bearer token from the request headers.

Info

A Bearer token copied from the browser can be reused in Postman. Always use the latest Bearer token.

Was this page helpful?