API v2 backup returns 401 on single FortiGate while working on 24 others
Hi everyone,
Looking for help with a strange API authentication issue on one specific FortiGate.
Setup:
- 25 FortiGate firewalls managed via automated backup script
- Using API v2 endpoint: /api/v2/monitor/system/config/backup?scope=global
- Same API user (BACKUP-SUPER_ADMIN) configured on all devices
Problem: One firewall (let's call it FW-TEST) consistently returns HTTP 401 Unauthorized, while the exact same script works perfectly on the other 24 devices.
What I've tried:
- Regenerated API token multiple times
- Verified user permissions (identical to working firewalls)
- Manual test with Postman: same 401 error
- GUI login with same account: works fine
- Compared API settings between working and non-working FW: no differences found
Question: Has anyone encountered a situation where one FortiGate rejects API authentication while others with identical config work fine? Could there be hidden settings or firmware-specific quirks that affect API token validation?
Using FortiOS version if you know it, all devices on same version.
Any insights appreciated!
Thanks
