Created on
04-04-2025
08:06 AM
Edited on
04-06-2025
09:12 PM
By
Anthony_E
Description | This article describes how to access FortiFlex licensing system using API calls to retrieve OAuth token and make calls over the system. |
Scope | FortiFlex. |
Solution |
Whenever a user needs to make automatic some operations on the FortiFlex licensing system, like retrieving information or managing FortiFlex licenses, it is possible to access them using Fortinet’s FortiFlex public API. This guide explains how to the access and the usage.
Create an API User.
To use the FortiFlex API, first create and configure an API User.
Retrieve a Token.
Using a tool like postman to perform an API request as shown below will generate a Bearer token. This token will be used to authenticate subsequent API calls.
Method: POST Endpoint: { If successful, the response will look like this: {
The theTokenNeeded will be used for the further calls.
A practical example: Call FortiFlex Points History API.
Once the token is acquired, it can be used to authenticate further requests like get the FortiFlex points history with the following API request:
Method: POST Endpoint: {
If successful, the answer would be like:
{
API Documentation: |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.