Getting error while calling the Leave Booked and Balance Report API

Getting error while calling the Leave Booked and Balance Report API

Hi,

I get the following error 

{"error":{"code":7213,"message":"The provided OAuth token is invalid."},"uri":"/api/v2/leavetracker/reports/bookedAndBalance"}

The OAuth token is valid as I am using it in other APIs. Can you please let me know why this error occurred?


dat = Map();
dat.put("recordId","67512000000410165");
dat.put("from","01-Jan-2022");
dat.put("to","31-Jan-2022");
dat.put("unit","Day");
respo = invokeurl
[
url :url
type :GET
parameters:dat.toMap()
connection:"people_authorization"
];
info respo;



            Zoho Marketing Automation
                      • Sticky Posts

                      • Meet the Zoho People experts in your city!

                        Dear users,   We are delighted to invite you to the Zoho People's user community meetup. We are stoked to visit our users in their cities and help them with all things Zoho People.   Join us for a day of insightful Zoho sessions, interactions with other

                      Zoho Pagesense Resources

                        Zoho SalesIQ Resources



                              Zoho TeamInbox Resources

                                Zoho DataPrep Resources



                                  Zoho CRM Plus Resources

                                    Zoho Books Resources


                                      Zoho Subscriptions Resources

                                        Zoho Desk Resources

                                          Zoho Projects Resources


                                            Zoho Sprints Resources


                                              Qntrl Resources


                                                Zoho Creator Resources


                                                  Zoho WorkDrive Resources



                                                    Zoho Campaigns Resources

                                                      Zoho CRM Resources

                                                            Design. Discuss. Deliver.

                                                            Create visually engaging stories with Zoho Show.

                                                            Get Started Now