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
Last modified: 6 months ago