Fortinet black logo

Admin Guide

Using the API

Using the API

Example FortiExtender Cloud token.

The keyword is 'token'.

response = requests.get(url, headers = {'Authorization': 'token <your_api_token>'})
Example FAC OAuth token

The keyword is 'Bearer'.

response = requests.get(url, headers = {'Authorization': 'Bearer <your_fac_token>'})
Response status codes

Status Code

Description

200

The request is successful.

403

The server understood the request but refuses to authorize it.

404

Unable to find the specified resource.

500

Internal server error.

If you are unable to connect, contact support at https://support.fortinet.com.

Using the API

Example FortiExtender Cloud token.

The keyword is 'token'.

response = requests.get(url, headers = {'Authorization': 'token <your_api_token>'})
Example FAC OAuth token

The keyword is 'Bearer'.

response = requests.get(url, headers = {'Authorization': 'Bearer <your_fac_token>'})
Response status codes

Status Code

Description

200

The request is successful.

403

The server understood the request but refuses to authorize it.

404

Unable to find the specified resource.

500

Internal server error.

If you are unable to connect, contact support at https://support.fortinet.com.