Authentication
An access token is necessary for making API calls to Liferay Analytics Cloud. Navigate to Settings → APIs to generate an access token.
Choose the duration (e.g. 30 days, 6 months, 1 year, or indefinite) for when the access token expires. Click Generate Token.
The generated token is valid for the duration you selected. When the token expires, you must generate a new token to perform additional API calls.
To use the new token, click Copy () to copy the access token to your clipboard. Add this to your request authorization header on every API call. For example, you can set the request header with cURL like this:
curl -i -L -H "Authorization: Bearer {token}"
To delete the access token, click Revoke, and the token is removed.