Skip to main content
MFARRAG
Staff
Staff
November 25, 2024

Technical Tip: How to connect API with FortiMail Cloud

  • November 25, 2024
  • 0 replies
  • 1161 views
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

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.