Take a look at Published REST services. Mendix also supports SOAP services, but these are less popular than REST services.
https://docs.mendix.com/refguide/published-rest-services
https://docs.mendix.com/howto/integration/publish-rest-service
https://docs.mendix.com/howto/integration/expose-a-web-service