I am developing a mobile app that needs to authenticate users with a Joomla 4 site. I want to use the official Joomla REST API to do this, but I couldn’t find any information about how to authenticate a user and get an API Token with the official Joomla REST API. Can anyone provide some guidance on how to do this? I know the API token can be generated in the user profile, but that is not relevant to my question. the API does not have a Login function.
See the Joomla manual, in particular the "Using the PHP cURL Functions" part (because you probably run it outside the Joomla framework) : https://manual.joomla.org/docs/general-concepts/webservices#using-the-php-curl-functions
An interesting article about using the Web Services API: https://magazine.joomla.org/all-issues/march-2023/playing-with-the-joomla-api-part-1