All forms APIs are throwing error

All forms APIs are throwing error

Hello,

I wanted to find out "Erecno of the employee" to fetch leave details of an employee (I don't know why there is no flexibility of fetching details based on employee id, which would be much easier), so I tried to fetch the details using Fetch Record API inside View API, with below query string.

https://people.zoho.com/people/api/forms/P_Employee/records?searchColumn=EMPLOYEEID&searchValue=[SOME_VALID_ID]

Initially I got "7200 API Invocation Failure" but later, I'm getting "7218 Invalid OAuth Scope".
2 observations here: In the Error codes page,
1. There is no description on what does even "API Invocation Failure" exactly means.
2. "7218 Invalid OAuth Scope" is not to be found in the list.

Coming back to the issue,
I tried to fetch the Erec details with different method, by using "Get Bulk Records API", with the below query string.

https://people.zoho.com/people/api/forms/employee/getRecords?searchColumn=EMPLOYEEMAILALIAS&searchValue=VALID_EMAIL_ADDRESS

as well as with Employee id.

https://people.zoho.com/people/api/forms/employee/getRecords?searchColumn=EMPLOYEEID&searchValue=[VALID_EMP_ID]

Still getting the same error response:
{
    "response": {
        "message": "Error occurred",
        "uri": "/api/forms/employee/getRecords",
        "errors": {
            "code": 7218,
            "message": "Invalid OAuth Scope."
        },
        "status": 1
    }
}

Thank you.