The mobile GraphQL API was introduced to Totara in version 13. Its purpose is to provide an API that is used by Totara's official mobile app (Totara Mobile).
The mobile API makes use of an API key generated by the app for authentication. For other types of API access, see theAvailable APIspage.
Because the mobile API relies onpersisted queriesand requires a valid API key on all requests (which can be tricky to manually generate), it is not the ideal endpoint to use for development. If you are developing new API requests we recommend using thedeveloper APIto construct your requests, then creating persisted mobile queries in code when you are ready to use them.
The mobile GraphQL API endpoint is located at:
The mobile API only functions if the mobile app has been enabled via Quick-access menu > Plugins > Mobile > Mobile settings > Enable mobile app.
Requests to the mobile endpoint should set either the X-API-Key orAuthorizationheader. The preferred mechanism is to use theX-API-Keyheader, since the Authorization header can be stripped by some web servers and proxies.