Fortinet white logo
Fortinet white logo

Authentication

Authentication

To initiate REST API requests, you must first log in to FortiPortal and acquire an API key.

The authorization key must be included in all subsequent API requests in the Authorization header. The key expires in one hour.

To acquire an API key in the GUI:
  1. Log in to FortiPortal as an administrator.

  2. In the header, click on the cog icon.

  3. Click on API Key.

  4. In the New API Key dialog, click Regenerate, then copy the API token .

Include the key in the API requests in this manner:

"-H "Authorization: Token <API_key>"

Note

Acquiring a new key does not expire any other generated keys.

Authentication

Authentication

To initiate REST API requests, you must first log in to FortiPortal and acquire an API key.

The authorization key must be included in all subsequent API requests in the Authorization header. The key expires in one hour.

To acquire an API key in the GUI:
  1. Log in to FortiPortal as an administrator.

  2. In the header, click on the cog icon.

  3. Click on API Key.

  4. In the New API Key dialog, click Regenerate, then copy the API token .

Include the key in the API requests in this manner:

"-H "Authorization: Token <API_key>"

Note

Acquiring a new key does not expire any other generated keys.