Unauthenticated REST Requests

In certain cases, some applications must make REST calls before the user becomes authenticated. In other cases, the application must access services outside of Salesforce that don’t require Salesforce authentication. To implement such requirements, use a special RestClient instance that doesn’t require an authentication token.

To obtain an unauthenticated RestClient on Android, use one of the following ClientManager factory methods:

A REST request sent through either of these RestClient objects requires a full path URL. Mobile SDK doesn’t prepend an instance URL to unauthenticated endpoints.

Kotlin

Java