Getting 302 response on trying to get authorization grant

Getting 302 response on trying to get authorization grant

Hi!

I am experimenting with the Zoho Desk OAuth2 API but when trying to get an authorization grant via curl, I am getting a 302 response which seems to indicate the api endpoint having been moved to somewhere else. What am I doing wrong?

  1. curl -i https://accounts.zoho.com/oauth/v2/auth?response_type=code&client_id=<insert id>&scope=Desk.tickets.READ,Desk.basic.READ&redirect_uri=<insert redirect uri>&state=-5466400890088961855 
Of course I have removed the client id and redirect uri in the example above.

Thanks in advance!