REST API security

REST has no built-in security features, however, there are several ways you can secure it. One way is to use token-based authentication. Another is to use HTTPS with TLS encryption.

https://networklessons.com/cisco/ccna-200-301/introduction-to-rest-api