Integration Guide
Contact Your CSM: Your dedicated Customer Success Manager (CSM) will provide you with your login credentials (invite email).
These steps are intended for LSports customers (users with the Admin and Defend Manager role, for technical users only) to obtain and use non-expiring credentials to access Defend services.
The admin user should invite the technical users and add for each of them the 'Defend manager' role (with this role, they could generate the API Tokens for the Defend integration).
To Generate a Non-Expiring API Token, here are the steps:
Log in to the TRADE360 platform.
Click on your name icon in the top-right corner → User Management.
Select API Tokens from the sidebar.
Click Generate Token.
Enter a Description (e.g., "Defend ").
Assign the Defend Admin role.
Under Expiration, select Never.
Click Create and Copy the Client ID and Secret Key.
THIS CRUCIAL CREDENTIALS WILL BE AVAILABLE ONLY ONCE!! COPY AND SAVE IT!
Exchange API Credentials for Access & Refresh Tokens
Endpoint:
POST https://<lsports-frontegg-domain>.frontegg.com/identity/resources/auth/v1/api-token
Headers:
Content-Type: application/json
Body:
{ "clientId": "<Client ID>", "secret": "<Secret Key>" }
Response:
{ "expires": "<Thu, 22 May 2025 11:49:22 GMT>", "expiresIn": 1800, "accessToken": "<JWT access token>", "refreshToken": "Refresh token>" }
Notes:
accessToken
expiresIn
= 30 minutes.refreshToken
lives for 7 days.
Refresh the Access Token
Endpoint:
POST https://<lsports-frontegg-domain>.frontegg.com/identity/resources/auth/v2/api-token/token/refresh
Headers:
Content-Type: application/json
Body:
{ "refreshToken": "<Previous refreshToken>" }
Response:
{ "expires": "<Thu, 22 May 2025 11:49:22 GMT>", "expiresIn": 1800, "accessToken": "<JWT access token>", "refreshToken": "Refresh token>" }
Use the Access Token For every API call to Defend backend services, include the latest
accessToken
in theAuthorization
header:Authorization: Bearer <accessToken>
Remember, the accessToken expires every 30 minutes.
Last updated
Was this helpful?