All API endpoints are documented in the API Reference tab. This guide focuses on concepts, workflows, and integration examples.
Overview
With the Zoho CRM integration, you can:- Connect Zoho Accounts - Securely connect multiple Zoho CRM accounts via OAuth 2.0
- Import Historical Data - Import contacts, deals, tickets, notes, and activities
- Data Mapping - Automatic mapping of Zoho fields to G-Tateth CRM entities
- Incremental Imports - Import data for specific date ranges
- Progress Tracking - Monitor import progress in real-time
How It Works
Data Flow
- Connect: Authorize G-Tateth to access your Zoho CRM account
- Configure: Choose what data to import (contacts, deals, tickets, etc.)
- Import: Data is imported asynchronously in the background
- Monitor: Track progress and review results
Data Mapping
Zoho Contacts → G-Tateth Customers- Email, name, phone, company information
- Custom fields preserved in
customFields.zoho_*
- Deal name becomes conversation subject
- Deal stage mapped to conversation status
- Deal amount stored in metadata
- Notes imported as messages
- Ticket subject becomes conversation subject
- Ticket status and priority mapped
- Description and notes imported as messages
Complete Integration Flow
Here’s the complete flow for integrating Zoho CRM via API:- Get OAuth URL →
GET /api/zoho/connect - Redirect user → User authorizes in Zoho
- OAuth callback → Integration is created automatically
- Get Integration ID →
GET /api/zoho/integrationsto retrieve the_id - Use Integration ID → Use
_idin all subsequent API calls
Quick Start
1. Connect Your Zoho Account
You can connect Zoho CRM through: Dashboard UI:- Go to Apps → Integrations
- Click Connect Zoho CRM
- Authorize access in Zoho
- Integration is connected automatically
Getting the Integration ID: After the OAuth callback completes, call
GET /api/zoho/integrations to retrieve the newly created integration. Use the _id field as the integration_id in subsequent API calls.2. Get Integration ID
After connecting, you need theintegration_id to perform operations. Get it by listing all integrations:
3. Start Importing Data
Once you have theintegration_id, you can import your Zoho data:
Via Dashboard:
- Go to Settings → Integrations → Zoho
- Click Start Import
- Select what to import (contacts, deals, tickets, etc.)
- Optionally set a date range
- Click Start Import
4. Monitor Import Progress
Imports run asynchronously. Check status:- Current status (
idle,in_progress,completed,failed) - Progress metrics (total, processed, successful, failed)
- Results (customers created, conversations created, messages created)
- Any errors encountered
Import Options
What Can Be Imported
- Contacts → Customers in G-Tateth
- Deals → Conversations (sales pipeline)
- Tickets → Conversations (support cases)
- Notes → Messages in conversations
- Activities → Call logs and tasks (optional)
Date Range Filtering
Import only data from a specific time period:- Incremental Imports: Import only recent data
- Historical Import: Import all historical data (omit dateRange)
- Testing: Import small date range to test before full import
Selective Import
Choose what to import:Data Mapping Details
Contacts → Customers
| Zoho Field | g-tateth Field | Notes |
|---|---|---|
Email | profile.email | Primary identifier |
First_Name | profile.firstName | |
Last_Name | profile.lastName | |
Phone / Mobile | profile.phone | |
Company | profile.company | |
Title | profile.jobTitle | |
| Custom fields | customFields.zoho_* | Preserved with prefix |
Deals → Conversations
| Zoho Field | g-tateth Field | Notes |
|---|---|---|
Deal_Name | subject | Conversation title |
Stage | status | Mapped to open/closed/pending |
Amount | metadata.dealAmount | Stored in metadata |
Description | Initial message | First message in conversation |
Closing_Date | metadata.closingDate | |
| Notes | Additional messages | Each note becomes a message |
Tickets → Conversations
| Zoho Field | g-tateth Field | Notes |
|---|---|---|
Subject | subject | Conversation title |
Status | status | Mapped to open/closed/pending |
Priority | priority | Mapped to low/medium/high/urgent |
Description | Initial message | First message in conversation |
| Notes | Additional messages | Each note becomes a message |
Workflows
Complete Integration Flow (API)
Here’s a complete example showing how to connect and use Zoho integration via API:Server-Side Flow: If you’re building a server-side integration, you’ll need to:
- Store the
stateparameter when initiating OAuth - Set up a webhook or polling mechanism to detect when OAuth completes
- Call
GET /api/zoho/integrationsto retrieve the new integration ID
Full Historical Import
Import all data from Zoho:Incremental Import
Import only recent data:Testing Import
Test with a small dataset first:Managing Integrations
List All Integrations
Get Integration Details
Disconnect Integration
Best Practices
1. Test Before Full Import
Always test with a small date range first:2. Monitor Progress
Poll the status endpoint every 3-5 seconds during import:3. Handle Errors
Review theerrors array in the status response:
4. Use Date Ranges for Large Imports
For accounts with thousands of records, use date ranges to import in batches:5. Preserve Data Integrity
- Don’t re-import: Re-importing the same data creates duplicates
- Check before import: Review what will be imported
- Backup first: Ensure you have backups before large imports
Troubleshooting
Import Stuck or Slow
- Large datasets: Use date ranges to import in smaller batches
- Rate limits: Zoho API has rate limits; imports may take time
- Check status: Use the status endpoint to see current progress
Missing Data
- Check date range: Ensure date range includes the data you want
- Verify Zoho access: Ensure integration has proper permissions
- Review errors: Check the
errorsarray in status response
OAuth Issues
- Reconnect: Disconnect and reconnect the integration
- Check permissions: Ensure Zoho app has required scopes
- Verify redirect URI: Ensure redirect URI matches Zoho app settings
API Reference
For complete API endpoint documentation, see the API Reference tab. Key endpoints:GET /api/zoho/connect- Initiate OAuth flowGET /api/zoho/integrations- List integrationsPOST /api/zoho/integrations/:id/import- Start importGET /api/zoho/integrations/:id/import/status- Get import statusGET /api/zoho/integrations/:id/import/history- Get import history
Support
Questions about Zoho integration?- Email:
api-support@g-tateth.com - Documentation:
https://docs.g-tateth.com - API Reference: See the API Reference tab for endpoint details