Fortinet black logo

Online Help

Generate Credentials

Copy Link
Copy Doc ID 4a6f3c4b-8d0f-11eb-a7dc-00505692583a:984008

Generate Credentials

FortiCWP REST API resources are free for development purpose. To use these API resources, an OAuth 2.0 bearer token is required in the Authorization header. One method to get OAuth 2.0 bearer token is to call Get Credentials Token.

Before calling Get Credentials Token API, follow the steps below to generate a credential:

  1. Log into FortiCWP with your account.
  2. Click on API Setting on the top right hand side.
  3. Click GENERATE NEW to generate an API credential.
  4. Give a name for the new credential, and click Generate Credential.
  5. Copy and save the credential for use later in REST API calls. and click Copy and Close
  6. .

The generated credential can be used repeatedly as long as it is not revoked on FortiCWP.

Generate Credentials

FortiCWP REST API resources are free for development purpose. To use these API resources, an OAuth 2.0 bearer token is required in the Authorization header. One method to get OAuth 2.0 bearer token is to call Get Credentials Token.

Before calling Get Credentials Token API, follow the steps below to generate a credential:

  1. Log into FortiCWP with your account.
  2. Click on API Setting on the top right hand side.
  3. Click GENERATE NEW to generate an API credential.
  4. Give a name for the new credential, and click Generate Credential.
  5. Copy and save the credential for use later in REST API calls. and click Copy and Close
  6. .

The generated credential can be used repeatedly as long as it is not revoked on FortiCWP.