Create a Remote Site
Before you can call the Einstein Image Classification API from Apex, you must add the API endpoint as a remote site.
-
Log in to Salesforce.
-
From Setup, enter
Remote Site
in theQuick Find
box, then select Remote Site Settings. -
Click New Remote Site.
-
Enter a name for the remote site.
-
In the Remote Site URL field, enter
https://api.einstein.ai
. -
Click Save.