Unable to get Catalyst API access_token

Unable to get Catalyst API access_token

I am trying to get a working example by following the instructions here:


I registered a new "Self Client" and got client_id and client_secret. Then I generated a grant_token as described there.
I then attempted to get the access_token and refresh_tokens as described. I am using Python to send the POST and GET requests. Here is my code.

import requests
url = 'https://accounts.zoho.com/oauth/v2/token'
data = {
'code': grant_token,
'client_id': client_id,
'client_secret': client_secret,
'grant_type': 'authorization_code'
}
resp = requests.post(url, json=data)

But it didn't work. I then tried the following code and I get an {'error': 'invalid_client'} response.

import urllib
import json
params = f'code={grant_token}' \
f'&client_id={client_id}' \
f'&client_secret={client_secret}' \
f'&grant_type=authorization_code'
bin_params = params.encode('utf-8')
req = urllib.request.Request(f'{url}?', data=bin_params)
response = urllib.request.urlopen(req)
result = json.loads(response.read())

I am stuck. How can I get this to work?







    • Announcements

    • [Webinar] Deploy Docker apps with AppSail's custom runtime | Feb. 19

      Hi everyone, Join us on February 19, 2026 at 8–9 PM IST for a live Catalyst webinar demonstrating how to deploy OCI-compliant Docker images with AppSail's custom runtime. You’ll learn how to: Package your apps as Docker containers Deploy via CLI or connect
    • Catalyst backs Vite.js!

      Hi everyone, We're happy to support the open-source ecosystem that powers modern web development! If you’re building apps with Vite, Catalyst Slate is your go-to platform to deploy blazing-fast frontend apps with ease, scalability, and zero infrastructure
    • Catalyst QuickML 2025 Year In Review

      Hello everyone 👋 It’s been an exciting year for Catalyst QuickML. In 2025, as the Catalyst platform continued to expand its capabilities, QuickML focused on strengthening reliability, developer control, and operational readiness across the AI lifecycle.
    • Introducing GenAI Features in Catalyst QuickML

      Hi everyone, Building machine learning models can often feel slow and complex, especially when teams wait for perfect certainty before testing their ideas. But in reality, faster progress comes from early experimentation—trying out models quickly, learning
    • Announcing Deprecation of Catalyst File Store, Event Listeners, and Cron

      We would like to announce that the following Catalyst features are now in their deprecation phase and will reach End Of Life (EOL) on 30 April, 2026- Catalyst File Store Catalyst Event Listeners Catalyst Cron New users who sign up for Catalyst from today

      Catalyst Community