Before you use LDI APIs, you must generate API credentials in the LDI account.
Click Organization Settings in the Users drop-down list.
- Click API Credentials. You see API Credentials pane.
Note: If there are no API credentials, you must generate them.
Click Generate.
- Note: A Client ID and Secret key are generated. You can copy them to the clipboard.
- Keep the API credentials in a secure place and regenerate them over the time in accordance with business policies of your organization.
- If you want to change the existing API credentials, you must generate a new one.
Click Regenerate.
- In the Regenerate Secret window, click Regenerate.
A new Client ID and Secret key is generated.
The Client ID and Secret key do not expire until you regenerate a fresh pair.
After you have generated API credentials, you can use the following URLs to access different API endpoints.

After you generate a new pair of Client ID and Secret key, the older pair gets invalid.
Get a Bearer token.

The bearer token is a type of an access token that uses Auth 2.0 and expires within 30 minutes. You use the bearer token to get a new Access token. To get an access token you send the Authentication server this bearer token along with your client id. This way the server knows that the application using the bearer token is the same application that the bearer token was created for.
Generate API bearer token using External API.
The URL - Base URL + /api/v1/auth/<organization_name>/token

The Base URL depends on your region whether NA or EU.
Body should be x-ww-form-urlencoded and should contain:
- grant_type: client_credentials
- client_secret: secret (from api credentials page)
- client_id: id (from api credentials page)

Generate a new bearer token when it expires after 30 minutes.
Learn API Operations
Swagger specification archive contains a folder with an index.html file and some other JavaScript files.
- Download Swagger Specification zip file from the support site which provides you details about each API.
- Extract the files in the folder.
- Double-click to open the index.html. You see the LDI APIs home page in Swagger.
- Generate a bearer token.
Try APIs
- Select an API method in Swagger.
- Use the bearer token in the call.
- Click Try it out.
Examples of API Methods
Authentication - API token session
Lenovo SDK snapshot
Negative API Sample
Groovy ACME Test
HTTP Request