Skip to main content

Overview

All the LikeMinds APIs require authentication. Below are the steps outlining how authentication works.

Getting Started

To begin, retrieve your LikeMinds API key from the dashboard. This key uniquely identifies your project on the LikeMinds platform and is required for the SDK Initiate API.

User Data Creation

  1. For each user on the client platform, hit initiate API SDK Initiate to create new user on LikeMinds platform.

  2. Save the response to create mapping from Customer ID ↔︎ LikeMinds access_token & refresh_token

  3. Keep the mapping for following keys for each client side user (these will be required later)

    • access_token - access token for user authentication

    • refresh_token - refresh token to generate new access token for the user when existing one expires

    • user_unique_id - corresponding LikeMinds platform unique id of the user

Refresh Token Strategy

  1. Use user's access_token generated in previous step as Bearer Token

    • If LM APIs return statusCode: 401, use user's refresh_token and hit refresh token API to generate new access_token