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:
-
Log in to FortiPortal as an administrator.
-
In the header, click on the cog icon.
-
Click on API Key.
-
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>"
Acquiring a new key does not expire any other generated keys. |