Skip to main content
pp_patto
New Member
Jun 9, 2017 3:15 PM UTC
Question

Fortimail API script example

Hi, I'm developing a Python script for Fortimail. From your Fortimail REST API Reference, can you explain how can I utilize the API to login to Fortimail (Local Password-based authentication)? What should be the format to put username and password for login?

 

URL: http(s)://host_or_ip/api/v1/AdminLogin/

Method: POST

JSON: {“name”: “admin”, “password”: “****”}

 

For example, for proxy it could be like "https":"username:password@localhost:port_number"

 

If you can provide me an example of line of code in Python, I'd be much appreciated. 

 

Pat

    2 replies

    pp_patto
    pp_pattoAuthor
    New Member
    Jun 12, 2017 6:23 PM UTC

    No one? Please....

    Translate
    Big_Abe
    New Member
    Jun 15, 2017 3:10 PM UTC

    Please post results if you find them out of this forum - I'd be very interested as well. 

    Thanks. 

     

    Translate
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024