FortiMail
FortiMail provides advanced, multi-layer protection against the full spectrum of email-borne threats
MFARRAG
Staff
Staff
Article Id 359795
Description This article describes how to connect to a FortiMail Cloud tenant through API.
Scope FortiMail Cloud.
Solution
  1. Ensure that the created cloud admin user is on FortiMail Cloud tenant.
  2. Raise a ticket with the TAC team to create an API token password for the created admin cloud mentioned in step one.
  3. From API host can use the below pattern to connect to the cloud tenant:

 

curl -v -H "Content-Type: application/json" -X POST -d '{"name":"Cloud admin username","cldTK":"TOKEN Password shared by TAC in step 2"}'
https://XYZ.fortimailcloud.com/api/v1/AdminLogin -c cookie.txt 

 

API1-TEST.PNG

 

Note that CLDTK is instated on the password used in the normal API calls in the appliance or Virtual type.

 

  1. After being connected, there will be the 200OK response from the API application as mentioned below.

     

    API-Test-final.PNG