• Charles Li 9
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi there,

I have a probolem about REST API - List Organization Limits. I used the command below and used my account login token.

curl https://ap2.salesforce.com/services/data/v37.0/limits/ -H "Authorization: Bearer hdjrnslalrjJHGNdkskjnUJ" (fake token in this line)

And I got: [{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}]

I guess the Bearer token is not the user security token, it shold be some other token. Am I right? If I am right, please let me know how can I get that token. Thank you very much.
I'm trying to invoke the List Organizations Limits REST API in my developer edition of Salesforce.  I'm getting the following error returned:

[{"message":"limits resource is not enabled","errorCode":"API_DISABLED_FOR_ORG"}]; HTTP Status: 403

The user I am logging in as has the profile System Administrator.  And the System Administrator profile has the Administrative Permission of API Enabled ticked.   I'm using the same login to successfully access the other REST API resources.

Any help is greatly appreciated.