Fortinet white logo
Fortinet white logo

online help

API Setting

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

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.