API Calls returning 4861 Error: Invalid User

API Calls returning 4861 Error: Invalid User

I'm trying to add tickets to the Support system by using the API. Can't get it to work. Even when trying to see existing tickets, I'm getting an error. This is the URL I called - what am I doing wrong?

  1. 'https://support.zoho.com/api/xml/requests/getrecordsbyid?authtoken='.$token.'&portal=Tickets&department=Misc&id=101'

This is the error I get.

  1. <?xml version="1.0" encoding="UTF-8" ?><response uri="/api/xml/requests/getrecordsbyid"><error><code>4861</code><message>Invalid User</message></error></response>