What is REST API endpoint for the following command ?
az iot hub generate-sas-token -n myIoTHub -d myDevice --du 630720
There is no REST API endpoint for that command. It's a computation that you can implement yourself, it's described here and comes with sample code.
The command you referenced does it this way