You could redirect them to a Deeplink from your REST service. This microflow would have the $currentDeviceType exposed, and you could redirect them from there to the correct page.
Good luck!
In Mendix, the $currentDeviceType
context variable is typically used in client-side logic, and as you mentioned, it's not directly available in a published REST service. However, you can work around this limitation by including the device type as a parameter in your REST service.
Here's a simple approach:
Include Device Type as a Parameter:
Retrieve Device Type in a Microflow:
Specify Redirect URL Based on Device Type: