Access token not working

Access token not working

So I'm implementing the zoho desk api in a self client using python and the requests module. This far, i've been able to create my access tokens, but they don't seem to work. The way I made it working is :
i set in different variables my client_id and my client_secret, I setup the authorization code via the developer portal to give the proper permissions and then I call them by doing :
response=requests.post("https://accounts.zoho.eu/oauth/v2/token",data={
"code":code,
"client_id":client_id,
"client_secret":client_secret,
"grant_type":"authorization_code"
})
At this point, when I print the response it gives a correct access token.
The problem is, when I get this access token and I use it by example to list all tickets, the response it gives me is <Response [400]>, with no further details provided.
My question is, what am I doing wrong and how can I fix it ?

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now