Accessing Vault API with Self Client: INVALID_OAUTHTOKEN

Accessing Vault API with Self Client: INVALID_OAUTHTOKEN

Hi,
I'm struggling to access the Vault API using the Self Client app.

What I have done:
1. Created a Self Client app.
2. Generated the code using
   a. Scope: ZohoVault.secrets.ALL,ZohoVault.user.ALL
   b. Time duration: 10 minutes
   c. Scope description: Test
   d. Generate code and copy to clipboard.
3. In Postman
   a.  Set method to GET
   c. Add header parameter:
        (i) Key: Authorization
        (ii) Value: Zoho-oauthtoken {paste_code_generated_from_step_2d}
   d. Click Send.

Response:
  1. {
        "operation": {
            "result": {
                "error_code": "INVALID_OAUTHTOKEN",
                "message": "INVALID_OAUTHTOKEN",
                "status": "failed"
            },
            "name": "GET_LOGIN"
        }
    }

I've tried with Curl using the example given here and using PowerShell's Invoke-RestMethod, all resulting in the same error.

I cannot find the scopes ZohoVault.secrets.ALL and ZohoVault.user.ALL documented, so I've tried with just ZohoVault.user.READ.

What am I doing wrong?

Thank you in advance.

      • Sticky Posts

      • iOS 12 update: Introducing autofill passwords and Siri Shortcuts in Zoho Vault

        With this iOS 12 release, Zoho Vault users can now autofill usernames and passwords on Safari and other third-party apps. Users can enjoy a seamless login experience to their everyday apps without compromising security and also access passwords stored in Zoho vault with Siri Shortcuts by adding personalized phrases. How to enable autofill password on your iOS device? First, you need to update your device to iOS 12.  Apple recommends you to take a backup before you update your device to the latest