Scenarios to understand when and where to create/call API
- Suppose you want weather data from the Google app then in this case you need to call Google API from Salesforce.
- Suppose an external system needs lead data from Salesforce, so, in this, we need to create an API in Salesforce, and the external system needs to call that Salesforce API.