Skip to main content
cysaw
Staff & Editor
Staff & Editor
January 1, 2025

Technical Tip: How to enable/disable the FortiGuard AntiSpam using the REST API

  • January 1, 2025
  • 0 replies
  • 390 views
Description

This article describes how to enable/disable the FortiGuard AntiSpam using the REST API with Postman.

Scope FortiMail.
Solution
  1. Login to FortiMail using the REST API with the following information.

URL: https://[FortiMail IP]/api/v1/AdminLogin
Method: POST
RESTAPI: {"name":"username","password":"password"}

cysaw_0-1735694182755.png

 

  1. After login, disable the FortiGuard Antispam Status using the following information.

URL: https://[Fortimail IP]/api/v1/SysFortiguard/
Method: PUT

RESTAPI: {"status": false}

 

cysaw_1-1735694182760.png

 

  1. Enable the FortiGuard AntiSpam using the following information:

URL: https://[Fortimail IP]/api/v1/SysFortiguard/
Method: PUT

RESTAPI: {"status": true}

 

cysaw_2-1735694182764.png

 

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.