How to find Salesforce Storage Usage using REST API?

How to find Salesforce Storage Usage using REST API?

GET Request to https://{YOUR_DOMAIN_URL}/services/data/v56.0/limits/ can be used to find Salesforce Storage Usage using REST API.

1. Create a Connected App in Salesforce.

Callback URL should be https://{Your Domain}.my.salesforce.com/services/oauth2/callback

Example:

https://test-ec-dev-ed.develop.my.salesforce.com/services/oauth2/callback

2. Get the Access token.

Endpoint URL:

https://test-ec-dev-ed.develop.my.salesforce.com/services/oauth2/token

3. Use the Access Token from Step 2 and make a call to Limits.

Endpoint URL:

https://test-ec-dev-ed.develop.my.salesforce.com/services/data/v56.0/limits/

Leave a Reply