Zoho
The Zoho enables tools and to call Zoho APIs on behalf of a using OAuth 2.0 authentication.
Want to quickly get started with Zoho in your agent or AI app? Check out the pre-built Arcade Zoho Servers: - Zoho Books API MCP Server - Zoho Creator API MCP Server
What’s documented here
This page describes how to use and configure Zoho auth with Arcade.
This is used by:
- The Arcade Zoho Books API MCP Server, which provides pre-built for interacting with Zoho Books
- The Arcade Zoho Creator API MCP Server, which provides pre-built for interacting with Zoho Creator
- Your app code that needs to call Zoho APIs
- Or, your custom tools that need to call Zoho APIs
Configuring Zoho auth
When using your own app credentials, make sure you configure your to use a custom user verifier. Without this, your end-users will not be able to use your app or in production.
In a production environment, you will most likely want to use your own Zoho app credentials. This way, your will see your application’s name requesting permission.
Before showing how to configure your Zoho app credentials, let’s go through the steps to create a Zoho app.
Create a Zoho app
To integrate with Zoho’s APIs, you’ll need to set up OAuth 2.0 authentication by creating a client in the Zoho API Console:
Access the Zoho API Console
Navigate to the Zoho API Console and sign in with your existing Zoho credentials or create a new .
Create a new client
- Once logged in, click on “Add Client” or “Get Started”
- Select “Server-based Applications” as the client type
- Fill in the required details:
- Client Name: Choose a descriptive name for your application
- Homepage URL: Provide the URL of your application’s website
- Authorized Redirect URIs: Add the redirect URL generated by Arcade (see configuration section below)
Configure client settings
- After creating your client, you’ll receive a
Client IDandClient Secret - Configure the required scopes for your application based on which Zoho services you’ll be using:
- For Zoho Books:
ZohoBooks.fullaccess.allor specific scopes likeZohoBooks.invoices.READ - For Zoho Creator:
ZohoCreator.meta.READ,ZohoCreator.report.READ, etc. - Add other scopes as needed for your use case
- For Zoho Books:
Note your data center
Zoho operates in multiple data centers. Make note of which data center your uses, as this affects the API endpoints:
- US:
.com(e.g.,https://accounts.zoho.com) - EU:
.eu(e.g.,https://accounts.zoho.eu) - India:
.in(e.g.,https://accounts.zoho.in) - Australia:
.com.au(e.g.,https://accounts.zoho.com.au) - China:
.com.cn(e.g.,https://accounts.zoho.com.cn)
For detailed instructions, refer to Zoho’s official documentation:
Next, add the Zoho app to Arcade.
Configuring your own Zoho Auth Provider in Arcade
Dashboard GUI
Configure Zoho Auth Using the Arcade Dashboard GUI
Access the Arcade Dashboard
To access the Arcade Cloud dashboard, go to api.arcade.dev/dashboard . If you are self-hosting, by default the dashboard will be available at http://localhost:9099/dashboard . Adjust the host and port number to match your environment.
Navigate to the OAuth Providers page
- Under the OAuth section of the Arcade Dashboard left-side menu, click Providers.
- Click Add OAuth Provider in the top right corner.
- Select the OAuth 2.0 tab at the top.
Enter the provider details
- Choose a unique ID for your provider (e.g. “arcade-zoho”).
- Optionally enter a Description.
- Enter the Client ID and Client Secret from your Zoho client.
- Configure the OAuth 2.0 endpoints (adjust the domain based on your data center):
- Authorization URL:
https://accounts.zoho.com/oauth/v2/auth(or.eu,.in,.com.au,.com.cn) - Token URL:
https://accounts.zoho.com/oauth/v2/token(or.eu,.in,.com.au,.com.cn)
- Authorization URL:
- Note the Redirect URL generated by Arcade. This must be set as your Zoho client’s authorized redirect URI.
Create the provider
Hit the Create button and the provider will be ready to be used.
When you use tools that require Zoho auth using your Arcade credentials, Arcade will automatically use this Zoho OAuth provider. If you have multiple Zoho providers, see using multiple auth providers of the same type for more information.
Using Zoho auth in app code
Use the Zoho in your own and AI apps to get a token for Zoho APIs. See authorizing agents with Arcade to understand how this works.
Use client.auth.start() to get a token for Zoho APIs:
Python
from arcadepy import Arcade
client = Arcade() # Automatically finds the `ARCADE_API_KEY` env variable
user_id = "{arcade_user_id}"
# Start the authorization process
auth_response = client.auth.start(
user_id=user_id,
provider="arcade-zoho",
scopes=["ZohoBooks.fullaccess.all"]
)
if auth_response.status != "completed":
print("Please complete the authorization challenge in your browser:")
print(auth_response.url)
# Wait for the authorization to complete
auth_response = client.auth.wait_for_completion(auth_response)
token = auth_response.context.token
# Do something interesting with the token...Using Zoho auth in custom tools
You can use the pre-built Arcade Zoho Servers (Zoho Books, Zoho Creator) to quickly build and AI apps that interact with Zoho.
If the pre-built don’t meet your needs, you can author your own custom tools that interact with Zoho APIs.
Use the OAuth2() auth class to specify that a requires authorization with Zoho. The context.authorization.token field will be automatically populated with the ’s Zoho token:
from typing import Annotated
import httpx
from arcade_tdk import ToolContext, tool
from arcade_tdk.auth import OAuth2
@tool(
requires_auth=OAuth2(
provider_id="arcade-zoho",
scopes=["ZohoBooks.invoices.READ"]
)
)
async def get_zoho_invoices(
context: ToolContext,
organization_id: Annotated[str, "The Zoho Books organization ID."],
) -> Annotated[dict, "The list of invoices."]:
"""
Retrieve invoices from Zoho Books.
"""
url = f"https://books.zoho.com/api/v3/invoices?organization_id={organization_id}"
headers = {
"Authorization": f"Zoho-oauthtoken {context.authorization.token}",
}
async with httpx.AsyncClient() as client:
response = await client.get(url, headers=headers)
response.raise_for_status()
return dict(response.json())Available Scopes
Zoho supports various OAuth scopes that determine the level of access your application has. Scopes vary by Zoho service:
Zoho Books Scopes
ZohoBooks.fullaccess.all- Full access to all Zoho Books dataZohoBooks.invoices.READ- Read access to invoicesZohoBooks.invoices.CREATE- Create invoicesZohoBooks.invoices.UPDATE- Update invoicesZohoBooks.invoices.DELETE- Delete invoicesZohoBooks.contacts.READ- Read access to contactsZohoBooks.contacts.CREATE- Create contacts- And many more…
Zoho Creator Scopes
ZohoCreator.meta.READ- Read access to application metadataZohoCreator.report.READ- Read access to reportsZohoCreator.report.CREATE- Create records in reportsZohoCreator.report.UPDATE- Update records in reportsZohoCreator.report.DELETE- Delete records from reports- And many more…
For a complete list of available scopes, refer to the official documentation:
Data Center Considerations
Zoho operates in multiple data centers around the world. When making API calls, you must use the correct domain for your ’s data center:
| Data Center | Accounts Domain | API Domain Example |
|---|---|---|
| US | accounts.zoho.com | books.zoho.com, creator.zoho.com |
| EU | accounts.zoho.eu | books.zoho.eu, creator.zoho.eu |
| India | accounts.zoho.in | books.zoho.in, creator.zoho.in |
| Australia | accounts.zoho.com.au | books.zoho.com.au, creator.zoho.com.au |
| China | accounts.zoho.com.cn | books.zoho.com.cn, creator.zoho.com.cn |
Make sure to configure your OAuth provider and API calls to use the correct domain for your ’s data center.