Fortinet black logo

Online Help

Generate Credentials

Copy Link
Copy Doc ID cf00dcb1-0886-11ed-bb32-fa163e15d75b:421617

Generate Credentials

FortiCNP 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 FortiCNP with your account.
  2. Click on Global Settings on the top right hand side.
  3. Click API Access from the Global Settings menu.
  4. Click +Generate Credential on the right to generate a credential.
  5. Give a name for the credential, and click Generate Credential.
  6. Note: The credential is only valid for 1 year from the creation date.

  7. Copy and save the credential for use later in REST API calls. and click Copy and Close

The generated credential can be used repeatedly as long as it is not revoked or become invalid on FortiCNP.

Generate Credentials

FortiCNP 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 FortiCNP with your account.
  2. Click on Global Settings on the top right hand side.
  3. Click API Access from the Global Settings menu.
  4. Click +Generate Credential on the right to generate a credential.
  5. Give a name for the credential, and click Generate Credential.
  6. Note: The credential is only valid for 1 year from the creation date.

  7. Copy and save the credential for use later in REST API calls. and click Copy and Close

The generated credential can be used repeatedly as long as it is not revoked or become invalid on FortiCNP.