Lnk.Bio
  1. Private Apps
Lnk.Bio
  • Getting Started
    • Introduction
    • Endpoints
    • Authorization
    • Private Apps
      • Introduction
      • Create a Private App
      • Generate an Access Token
    • Public Apps
      • Introduction
      • Create a Public App
      • Generate an Access Token
  • API Methods
    • Me
      • Retrieve basic profile info
    • Lnks
      • Retrieve list of the current Lnks in your account
      • Create a new Lnk
      • Delete an existing Lnk
    • Groups
      • Retrieve list of the current Lnk Groups in your account
  1. Private Apps

Generate an Access Token

Now that you have your client_id and client_secret, in order to generate an Access Token for a Private App, you simply need to perform one call to the /oauth/token endpoint using the client_credentials grant.
For example, using CURL you can do something like:
curl -u client_id:client_secret https://lnk.bio/oauth/token -d "grant_type=client_credentials"
If your credentials are correct, you will receive a JSON response like the following
{"access_token":"6eea87dd93d743ac108fa00af6685d7a294b4696","expires_in":3600,"token_type":"Bearer","scope":"basic"}
Extract the access_token part and you can start authenticating your calls to the Lnk.Bio APIs adding the access_token in the Authorization: Bearer header of your calls.
For example in CURL
curl -H 'Authorization: Bearer 6eea87dd93d743ac108fa00af6685d7a294b4696' https://lnk.bio/oauth/v1/me
Previous
Create a Private App
Next
Introduction
Built with