You can request the information on the IP number used by your application from Mendix support.
However, this is a shared IP number, which is documented here: https://docs.mendix.com/developerportal/deploy/mendix-ip-addresses/
You should consider other mechanisms for protecting your rest api’s.
regards, Fabian