v1

latestOpenAPI 3.0.3FortiCNAPP Use License2026-08-041754351.1 MB
AgentAccessTokens

Create Agent Access Token

Create a new agent access token that an agent can use to connect and send data to your FortiCNAPP instance by invoking the following endpoint:

POST https://YourAccount.lacework.net/api/v2/AgentAccessTokens

Here is an example body payload:

{ "tokenAlias": "prod", "tokenEnabled": "1" }

post/api/v2/AgentAccessTokens

Headers

Authorizationstring required

Bearer Access Token. For example, "Bearer {YourAPIToken}"

Content-Typestring required

application/json

Request body

tokenEnabledstring required

The tokenEnabled property determines if an edit control is a "Text token" edit control. When the tokenEnabled property is set to 1, if the user enters a separator character or a carriage return (CR), a token is automatically added and the user can continue entering values in the control.

tokenAliasstring required

The token's alias such as Ops Agent. Aliases help communicate the intended purpose of a token and are effective when a value with a single intent appears in multiple places.

Response

No Error