Calling APIs
All APIs require access token be included as bearer authentication. This is an example to query FortiAPs deployed in various logical networks in an account:
$ curl -H "Authorization: Bearer $access_token" https://fortilan.forticloud.com/api/v1/inventory/deployed/
This is an example to query all networks existing in an account.
$ curl -H "Authorization: Bearer $access_token" https://fortilan.forticloud.com/api/v1/networks/