API v2 always INVALID_TOKEN
Hello, I am getting api error -
{
"code": "INVALID_TOKEN",
"details": {},
"message": "invalid oauth token",
"status": "error"
}
1. I registered in the user’s account and using Self-Client with the rights ZohoCRM.settings.all, ZohoCRM.settings.modules.all and received a grant token.
2. After I generated access_token and refresh_token
3. Using this access_token I want to get data by api. But I get this error - INVALID_TOKEN.
-H Authorization: Zoho-oauthtoken 1000.*****************.******************************
4. I updated access_token many times using refresh_token and immediately used it in api, but I get the same error. It cannot be that I did not use a fresh token, I always used the most recent one.
Please tell me what could be the problem? How to get rid of this 401(invalid token) and get a normal answer?