Zoho Creator and CRM integration Error

Zoho Creator and CRM integration Error

Hello,

I am using Zoho Creator to create an app that integrates with Zoho CRM data. I am using the following code:

  1. leadslist = zoho.crm.getRecords("Leads",1,10);
  2. for each  leadDet in leadslist 
  3. {
    1. info leadDet;
  4. }
And getting the following output:
{"message":"Invalid Ticket Id","code":"4834"}

The documentation says this error is an API authentication error, but I am writing a deluge script from within Zoho Creator

Please advise.
Thanks