Password-based authentication
To establish a valid authentication session, you must make a POST request to the FortiMail login handler with your admin username and password. The POST request should contain JSON data with "name" and "password" fields:
- URL:
http(s)://host_or_ip/api/v1/AdminLogin/
- Method:
POST
- JSON:
{“name”: “admin”, “password”: “****”}
If login is successful, the response will contain the authentication token in the APSCOOKIE cookie value. This cookie value must be included in any further requests.
The permissions for the administrative account you use will affect which objects and operations you'll have access to, so ensure the user has the permissions required for the actions you wish to perform. |