Fortinet black logo

online help

API Setting

Copy Link
Copy Doc ID 317ac0d2-6ad6-11ea-9384-00505692583a:984008

API Setting

FortiCWP REST API resources are free of use 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.

Generate Credentials

  1. Log into FortiCWP with your account.
  2. Go to Admin > Account from navigation pane, and click on API Setting tab.
  3. In Generate Credentials Name field, enter a name for the credential.
  4. Click Generate Credentials, and copy down the credential.

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

API Setting

FortiCWP REST API resources are free of use 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.

Generate Credentials

  1. Log into FortiCWP with your account.
  2. Go to Admin > Account from navigation pane, and click on API Setting tab.
  3. In Generate Credentials Name field, enter a name for the credential.
  4. Click Generate Credentials, and copy down the credential.

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