Skip to main content
FNLB uses OAuth2 to allow third-party applications to access user data and control bots without requiring the user’s password.

Creating an OAuth2 Application

  1. Go to the Developer Portal
  2. Click on “Create Application”
  3. Fill in the name
  4. Click on “Create”
  5. Copy the Client ID and Client Secret
  6. Go to OAuth2 and add your Redirect URIs
FNLB OAuth2 Application
FNLB OAuth2 Application
FNLB OAuth2 Tab
FNLB OAuth2 Details

The OAuth2 Flow

FNLB supports the Authorization Code Grant flow, which is the most secure way for server-side applications to authenticate.

1. Authorization Request

Redirect the user to the FNLB authorization endpoint. You can generate one using the FNLB OAuth2 URL Generator.

2. User Approval

The user will be prompted to log in (if not already) and authorize your application. Upon approval, they will be redirected back to your redirect_uri with a code parameter.

3. Token Exchange

Exchange the authorization code for an access token by making a POST request to:
Successful Response:

4. Accessing Resources

Use the returned access_token in the Authorization header of your API requests. The Bearer prefix is optional:

Scopes

Scopes define the level of access your application has.

Next Steps

API Reference

Learn how to use the FNLB API.