ACCESS_TOKENS
Generate Access Tokens
Get access tokens for the API requests by invoking the following endpoint:
POST https://YourAccount.lacework.net/api/v2/access/tokens
After creating a secret key, administrators can generate Temporary API access (bearer) tokens that clients and client applications use to access the FortiCNAPP API. Create temporary API access (bearer) tokens by invoking the POST https://YourAccount.lacework.net/api/v2/access/tokens endpoint.
post/api/v2/access/tokens
Headers
X-LW-UAKSstring required
YourSecretKey
Content-Typestring required
application/json
Request body
Example request
{
"keyId": "YourSecretKey",
"expiryTime": 3600
}Response
A temporary access (bearer) token is returned.
Example response
{
"expiresAt": "2021-08-18T08:00:00.000Z"
}