简介
Maton 官方提供的 Zoho Bigin CRM API 集成工具,支持托管式 OAuth 认证与完整 CRUD 操作,适合中小企业自动化销售流程管理。
原始描述
Zoho Bigin API integration with managed OAuth. Manage contacts, companies, pipelines, and products in Bigin CRM. Use this skill when users want to read, crea...
通过你的 Agent 添加
安装目录:zoho-bigin/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
Zoho Bigin Skill 是面向中小企业 CRM 场景的托管式 API 集成方案,通过 Maton 代理服务桥接 Zoho Bigin 官方 API。用户仅需配置 MATON_API_KEY 环境变量,即可对 Contacts(联系人)、Accounts(公司)、Pipelines(销售管道)、Products(产品)四大核心模块执行完整的 CRUD 操作。
认证流程:用户在 maton.ai 获取 API Key → 创建 Zoho Bigin 连接 → 浏览器完成 OAuth 授权 → 通过 Authorization: Bearer 头部调用代理 API。支持多连接管理,可通过 Maton-Connection 头部指定目标账户。
关键操作模式:
- 查询:所有列表操作强制要求
fields参数,支持分页(page/per_page,最大 200 条)和自定义视图过滤 - 搜索:支持按邮箱、电话精确匹配,或通过
criteria参数构建复杂查询条件(field:operator:value语法) - 写入:创建/更新需遵循模块必填字段规则(如 Contacts 必须包含
Last_Name),单请求上限 100 条记录 - 删除:支持批量删除(
ids参数,最多 100 个 ID),可触发工作流执行
显著优点
- 零代码 OAuth 托管:免除了 Zoho OAuth 2.0 的令牌刷新、作用域管理等繁琐实现,连接生命周期由 Maton 全自动处理
- RESTful 接口标准化:统一封装 Zoho Bigin 的模块 API,字段命名、分页机制、错误码保持与官方一致,降低学习成本
- 多语言示例完备:提供 Python (urllib/requests)、JavaScript (fetch)、Bash (curl) 的完整可运行代码片段,即拷即用
- 连接隔离机制:支持同一 Maton 账户绑定多个 Zoho Bigin 实例,通过
Maton-Connection 头部实现请求级路由
- 元数据 API 支持:可动态获取模块字段定义、用户列表、组织架构,便于构建自适应 UI
潜在缺点与局限性
- 强制代理依赖:所有请求必须经过
api.maton.ai 中转,无法直连 Zoho 官方端点,存在供应商锁定风险
- 字段查询限制:列表操作强制要求显式指定
fields 参数,无法使用 select * 式通配,探索性查询成本较高
- 批量操作上限:单次创建/更新/删除限制 100 条,大规模数据迁移需客户端实现分批逻辑
- 模块权限分阶:Tasks、Events、Calls、Notes 等模块需额外 OAuth 授权,基础连接无法直接访问
- 错误透传特性:4xx/5xx 错误直接透传 Zoho 原始响应,部分场景下错误信息不够友好(如
INVALID_MODULE 未指明可用模块列表)
适合人群
- 中小销售团队:5-50 人规模,需要快速搭建客户管理、商机跟踪流程,无专职后端开发人员
- SaaS 集成开发者:构建与 Zoho Bigin 双向同步的第三方应用,利用 Maton 代理简化认证层实现
- 自动化运维场景:通过脚本批量导入历史客户数据、定期导出销售报表、跨系统数据对齐
- 低代码/无代码平台用户:配合 n8n、Make 等工具,通过 HTTP 节点快速调用 CRM 能力
常规风险
- 数据隐私中转风险:CRM 数据流经 Maton 服务器,需评估 Maton 的 SOC2 合规性、数据驻留政策是否符合 GDPR/个人信息保护法要求
- 服务可用性依赖:Maton 代理服务故障将直接导致 CRM 集成中断,建议实施本地缓存和重试机制
- OAuth 令牌过期:长期运行的自动化任务可能遭遇连接失效,需监控
connection.status 并设计重新授权流程
- 误操作数据丢失:Delete 操作不可逆,批量删除前务必确认
ids 参数范围;Update 操作无事务回滚机制
- API 限流影响:Zoho Bigin 存在调用频率限制(文档未明确阈值),高频场景需实现指数退避重试策略
Maton-Connection 头部实现请求级路由- 强制代理依赖:所有请求必须经过
api.maton.ai中转,无法直连 Zoho 官方端点,存在供应商锁定风险 - 字段查询限制:列表操作强制要求显式指定
fields参数,无法使用select *式通配,探索性查询成本较高 - 批量操作上限:单次创建/更新/删除限制 100 条,大规模数据迁移需客户端实现分批逻辑
- 模块权限分阶:Tasks、Events、Calls、Notes 等模块需额外 OAuth 授权,基础连接无法直接访问
- 错误透传特性:4xx/5xx 错误直接透传 Zoho 原始响应,部分场景下错误信息不够友好(如
INVALID_MODULE未指明可用模块列表)
适合人群
- 中小销售团队:5-50 人规模,需要快速搭建客户管理、商机跟踪流程,无专职后端开发人员
- SaaS 集成开发者:构建与 Zoho Bigin 双向同步的第三方应用,利用 Maton 代理简化认证层实现
- 自动化运维场景:通过脚本批量导入历史客户数据、定期导出销售报表、跨系统数据对齐
- 低代码/无代码平台用户:配合 n8n、Make 等工具,通过 HTTP 节点快速调用 CRM 能力
常规风险
- 数据隐私中转风险:CRM 数据流经 Maton 服务器,需评估 Maton 的 SOC2 合规性、数据驻留政策是否符合 GDPR/个人信息保护法要求
- 服务可用性依赖:Maton 代理服务故障将直接导致 CRM 集成中断,建议实施本地缓存和重试机制
- OAuth 令牌过期:长期运行的自动化任务可能遭遇连接失效,需监控
connection.status 并设计重新授权流程
- 误操作数据丢失:Delete 操作不可逆,批量删除前务必确认
ids 参数范围;Update 操作无事务回滚机制
- API 限流影响:Zoho Bigin 存在调用频率限制(文档未明确阈值),高频场景需实现指数退避重试策略
- 数据隐私中转风险:CRM 数据流经 Maton 服务器,需评估 Maton 的 SOC2 合规性、数据驻留政策是否符合 GDPR/个人信息保护法要求
- 服务可用性依赖:Maton 代理服务故障将直接导致 CRM 集成中断,建议实施本地缓存和重试机制
- OAuth 令牌过期:长期运行的自动化任务可能遭遇连接失效,需监控
connection.status并设计重新授权流程 - 误操作数据丢失:Delete 操作不可逆,批量删除前务必确认
ids参数范围;Update 操作无事务回滚机制 - API 限流影响:Zoho Bigin 存在调用频率限制(文档未明确阈值),高频场景需实现指数退避重试策略
技能正文
name: zoho-bigin
description: |
Zoho Bigin API integration with managed OAuth. Manage contacts, companies, pipelines, and products in Bigin CRM.
Use this skill when users want to read, create, update, or delete CRM records, search contacts, or manage sales pipelines.
For other third party apps, use the api-gateway skill (https://clawhub.ai/byungkyu/api-gateway).
Requires network access and valid Maton API key.
metadata:
author: maton
version: "1.0"
clawdbot:
emoji: 🧠
requires:
env:
- MATON_API_KEY
Zoho Bigin
Access the Zoho Bigin API with managed OAuth authentication. Manage contacts, companies, pipelines, and products with full CRUD operations.
Quick Start
# List contacts
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/zoho-bigin/bigin/v2/Contacts?fields=First_Name,Last_Name,Email')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Base URL
https://api.maton.ai/zoho-bigin/bigin/v2/{endpoint}
# List contacts
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/zoho-bigin/bigin/v2/Contacts?fields=First_Name,Last_Name,Email')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
https://api.maton.ai/zoho-bigin/bigin/v2/{endpoint}
Maton proxies requests to www.zohoapis.com/bigin/v2 and automatically injects your OAuth token.
Authentication
All requests require the Maton API key in the Authorization header:
Authorization: Bearer $MATON_API_KEY
Environment Variable: Set your API key as MATON_API_KEY:
export MATON_API_KEY="YOUR_API_KEY"
Getting Your API Key
- Sign in or create an account at maton.ai
- Go to maton.ai/settings
- Copy your API key
Connection Management
Manage your Zoho Bigin OAuth connections at https://api.maton.ai.
List Connections
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections?app=zoho-bigin&status=ACTIVE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Create Connection
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'app': 'zoho-bigin'}).encode()
req = urllib.request.Request('https://api.maton.ai/connections', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Get Connection
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections/{connection_id}')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections?app=zoho-bigin&status=ACTIVE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
python <<'EOF'
import urllib.request, os, json
data = json.dumps({'app': 'zoho-bigin'}).encode()
req = urllib.request.Request('https://api.maton.ai/connections', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Get Connection
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections/{connection_id}')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections/{connection_id}')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Response:
{
"connection": {
"connection_id": "{connection_id}",
"status": "ACTIVE",
"creation_time": "2025-12-08T07:20:53.488460Z",
"last_updated_time": "2026-01-31T20:03:32.593153Z",
"url": "https://connect.maton.ai/?session_token=...",
"app": "zoho-bigin",
"metadata": {}
}
}
Open the returned url in a browser to complete OAuth authorization.
Delete Connection
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections/{connection_id}', method='DELETE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Specifying Connection
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections/{connection_id}', method='DELETE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
If you have multiple Zoho Bigin connections, specify which one to use with the Maton-Connection header:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/zoho-bigin/bigin/v2/Contacts?fields=First_Name,Last_Name,Email')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Maton-Connection', '{connection_id}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
If you have multiple connections, always include this header to ensure requests go to the intended account.
Security & Permissions
- Access is scoped to contacts, companies, pipelines, and products in Bigin CRM within the connected Zoho Bigin account.
- All write operations require explicit user approval. Before executing any create, update, or delete call, confirm the target resource and intended effect with the user.
API Reference
Modules
Modules
Zoho Bigin organizes data into modules. Available modules include:
| Module | API Name | Description |
|---|---|---|
| Contacts | Contacts |
Individual people |
| Companies | Accounts |
Organizations/businesses |
| Pipelines | Pipelines |
Sales opportunities/deals |
| Products | Products |
Items you sell |
| Tasks | Tasks |
To-do items (requires additional OAuth scope) |
| Events | Events |
Calendar appointments (requires additional OAuth scope) |
| Calls | Calls |
Phone call logs (requires additional OAuth scope) |
| Notes | Notes |
Notes attached to records (requires additional OAuth scope) |
List Records
GET /zoho-bigin/bigin/v2/{module_api_name}?fields={field1},{field2}
GET /zoho-bigin/bigin/v2/{module_api_name}?fields={field1},{field2}
Query Parameters:
| Parameter | Type | Description |
|---|---|---|
fields |
string | Required. Comma-separated field API names to retrieve |
sort_order |
string | asc or desc |
sort_by |
string | Field API name to sort by |
page |
integer | Page number (default: 1) |
per_page |
integer | Records per page (default: 200, max: 200) |
cvid |
string | Custom view ID for filtered results |
Example - List Contacts:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/zoho-bigin/bigin/v2/Contacts?fields=First_Name,Last_Name,Email,Phone')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Response:
{
"data": [
{
"First_Name": "Ted",
"Email": "support@bigin.com",
"Last_Name": "Watson",
"id": "7255024000000596045"
}
],
"info": {
"per_page": 200,
"count": 1,
"page": 1,
"more_records": false
}
}
Example - List Companies (Accounts):
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/zoho-bigin/bigin/v2/Accounts?fields=Account_Name,Website')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Get Record
GET /zoho-bigin/bigin/v2/{module_api_name}/{record_id}
GET /zoho-bigin/bigin/v2/{module_api_name}/{record_id}
Example:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/zoho-bigin/bigin/v2/Contacts/7255024000000596045')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Create Records
POST /zoho-bigin/bigin/v2/{module_api_name}
Content-Type: application/json
{
"data": [
{
"field_api_name": "value"
}
]
}
POST /zoho-bigin/bigin/v2/{module_api_name}
Content-Type: application/json
{
"data": [
{
"field_api_name": "value"
}
]
}
Mandatory Fields by Module:
| Module | Required Fields |
|---|---|
| Contacts | Last_Name |
| Accounts | Account_Name |
| Pipelines | Pipeline_Name, Stage |
| Products | Product_Name |
Example - Create Contact:
python <<'EOF'
import urllib.request, os, json
data = json.dumps({
"data": [{
"Last_Name": "Smith",
"First_Name": "John",
"Email": "john.smith@example.com",
"Phone": "+1-555-0123"
}]
}).encode()
req = urllib.request.Request('https://api.maton.ai/zoho-bigin/bigin/v2/Contacts', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Response:
{
"data": [
{
"code": "SUCCESS",
"details": {
"Modified_Time": "2026-02-06T00:28:53-08:00",
"Modified_By": {
"name": "User Name",
"id": "7255024000000590001"
},
"Created_Time": "2026-02-06T00:28:53-08:00",
"id": "7255024000000605002",
"Created_By": {
"name": "User Name",
"id": "7255024000000590001"
}
},
"message": "record added",
"status": "success"
}
]
}
Example - Create Company (Account):
python <<'EOF'
import urllib.request, os, json
data = json.dumps({
"data": [{
"Account_Name": "Acme Corporation",
"Website": "https://acme.com"
}]
}).encode()
req = urllib.request.Request('https://api.maton.ai/zoho-bigin/bigin/v2/Accounts', data=data, method='POST')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Update Records
PUT /zoho-bigin/bigin/v2/{module_api_name}
Content-Type: application/json
{
"data": [
{
"id": "record_id",
"field_api_name": "updated_value"
}
]
}
PUT /zoho-bigin/bigin/v2/{module_api_name}
Content-Type: application/json
{
"data": [
{
"id": "record_id",
"field_api_name": "updated_value"
}
]
}
Example:
python <<'EOF'
import urllib.request, os, json
data = json.dumps({
"data": [{
"id": "7255024000000605002",
"Phone": "+1-555-9999"
}]
}).encode()
req = urllib.request.Request('https://api.maton.ai/zoho-bigin/bigin/v2/Contacts', data=data, method='PUT')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
req.add_header('Content-Type', 'application/json')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Response:
{
"data": [
{
"code": "SUCCESS",
"details": {
"Modified_Time": "2026-02-06T00:29:07-08:00",
"id": "7255024000000605002"
},
"message": "record updated",
"status": "success"
}
]
}
Delete Records
DELETE /zoho-bigin/bigin/v2/{module_api_name}?ids={record_id1},{record_id2}
DELETE /zoho-bigin/bigin/v2/{module_api_name}?ids={record_id1},{record_id2}
Query Parameters:
| Parameter | Type | Description |
|---|---|---|
ids |
string | Comma-separated record IDs (required, max 100) |
wf_trigger |
boolean | Execute workflows (default: true) |
Example:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/zoho-bigin/bigin/v2/Contacts?ids=7255024000000605002', method='DELETE')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Response:
{
"data": [
{
"code": "SUCCESS",
"details": {
"id": "7255024000000605002"
},
"message": "record deleted",
"status": "success"
}
]
}
Search Records
GET /zoho-bigin/bigin/v2/{module_api_name}/search
GET /zoho-bigin/bigin/v2/{module_api_name}/search
Query Parameters:
| Parameter | Type | Description |
|---|---|---|
criteria |
string | Search criteria (e.g., (Last_Name:equals:Smith)) |
email |
string | Search by email address |
phone |
string | Search by phone number |
word |
string | Global text search |
page |
integer | Page number |
per_page |
integer | Records per page (max 200) |
Criteria Format: ((field_api_name:operator:value)and/or(...))
Operators: equals, starts_with
Example - Search by email:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/zoho-bigin/bigin/v2/Contacts/search?email=support@bigin.com')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Example - Search by criteria:
python <<'EOF'
import urllib.request, os, json
import urllib.parse
criteria = urllib.parse.quote('(Last_Name:equals:Watson)')
req = urllib.request.Request(f'https://api.maton.ai/zoho-bigin/bigin/v2/Contacts/search?criteria={criteria}')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Metadata APIs
Get Modules
GET /zoho-bigin/bigin/v2/settings/modules
Example:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/zoho-bigin/bigin/v2/settings/modules')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Get Users
GET /zoho-bigin/bigin/v2/users
GET /zoho-bigin/bigin/v2/users
Query Parameters:
| Parameter | Type | Description |
|---|---|---|
type |
string | AllUsers, ActiveUsers, AdminUsers, CurrentUser |
page |
integer | Page number |
per_page |
integer | Users per page (max 200) |
Example:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/zoho-bigin/bigin/v2/users?type=ActiveUsers')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Pagination
Zoho Bigin uses page-based pagination with page and per_page parameters:
GET /zoho-bigin/bigin/v2/{module_api_name}?fields=First_Name,Last_Name&page=1&per_page=50
Response includes pagination info:
{
"data": [...],
"info": {
"per_page": 50,
"count": 50,
"page": 1,
"more_records": true
}
}
Continue fetching while more_records is true, incrementing page each time.
Code Examples
JavaScript
const response = await fetch(
'https://api.maton.ai/zoho-bigin/bigin/v2/Contacts?fields=First_Name,Last_Name,Email',
{
headers: {
'Authorization': `Bearer ${process.env.MATON_API_KEY}`
}
}
);
const data = await response.json();
Python
import os
import requests
response = requests.get(
'https://api.maton.ai/zoho-bigin/bigin/v2/Contacts',
headers={'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}'},
params={'fields': 'First_Name,Last_Name,Email'}
)
data = response.json()
Notes
- The
fields parameter is required for list operations
- Module API names are case-sensitive (e.g.,
Contacts, not contacts)
- Companies are accessed via the
Accounts module API name
- Sales opportunities are accessed via the
Pipelines module (not Deals)
- Maximum 100 records per create/update request
- Maximum 100 records per delete request
- Maximum 200 records returned per GET request
- Use field API names (not display names) in requests
- Some modules (Tasks, Events, Calls, Notes) require additional OAuth scopes. If you receive a scope error, contact Maton support at support@maton.ai with the specific operations/APIs you need and your use-case
- IMPORTANT: When using curl commands, use
curl -g when URLs contain brackets to disable glob parsing
- IMPORTANT: When piping curl output to
jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environments
Error Handling
Status
Meaning
400
Missing Zoho Bigin connection, missing required parameter, or invalid request
401
Invalid or missing Maton API key, or OAuth scope mismatch
404
Invalid URL pattern or resource not found
429
Rate limited
4xx/5xx
Passthrough error from Zoho Bigin API
Common Error Codes
Code
Description
REQUIRED_PARAM_MISSING
Required parameter (like fields) is missing
INVALID_URL_PATTERN
Invalid API endpoint path
INVALID_MODULE
Module does not exist or is not API-supported
OAUTH_SCOPE_MISMATCH
OAuth token lacks required permissions for the endpoint
NO_PERMISSION
Insufficient privileges for the operation
MANDATORY_NOT_FOUND
Required field is missing
INVALID_DATA
Data type mismatch or format error
DUPLICATE_DATA
Record violates unique field constraint
Troubleshooting: API Key Issues
- Check that the
MATON_API_KEY environment variable is set:
echo $MATON_API_KEY
- Verify the API key is valid by listing connections:
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
Troubleshooting: Invalid App Name
- Ensure your URL path starts with
zoho-bigin. For example:
- Correct:
https://api.maton.ai/zoho-bigin/bigin/v2/Contacts
- Incorrect:
https://api.maton.ai/bigin/v2/Contacts
Resources
import os
import requests
response = requests.get(
'https://api.maton.ai/zoho-bigin/bigin/v2/Contacts',
headers={'Authorization': f'Bearer {os.environ["MATON_API_KEY"]}'},
params={'fields': 'First_Name,Last_Name,Email'}
)
data = response.json()
- The
fieldsparameter is required for list operations - Module API names are case-sensitive (e.g.,
Contacts, notcontacts) - Companies are accessed via the
Accountsmodule API name - Sales opportunities are accessed via the
Pipelinesmodule (notDeals) - Maximum 100 records per create/update request
- Maximum 100 records per delete request
- Maximum 200 records returned per GET request
- Use field API names (not display names) in requests
- Some modules (Tasks, Events, Calls, Notes) require additional OAuth scopes. If you receive a scope error, contact Maton support at support@maton.ai with the specific operations/APIs you need and your use-case
- IMPORTANT: When using curl commands, use
curl -gwhen URLs contain brackets to disable glob parsing - IMPORTANT: When piping curl output to
jqor other commands, environment variables like$MATON_API_KEYmay not expand correctly in some shell environments
Error Handling
Status
Meaning
400
Missing Zoho Bigin connection, missing required parameter, or invalid request
401
Invalid or missing Maton API key, or OAuth scope mismatch
404
Invalid URL pattern or resource not found
429
Rate limited
4xx/5xx
Passthrough error from Zoho Bigin API
Common Error Codes
| Status | Meaning |
|---|---|
| 400 | Missing Zoho Bigin connection, missing required parameter, or invalid request |
| 401 | Invalid or missing Maton API key, or OAuth scope mismatch |
| 404 | Invalid URL pattern or resource not found |
| 429 | Rate limited |
| 4xx/5xx | Passthrough error from Zoho Bigin API |
| Code | Description |
|---|---|
REQUIRED_PARAM_MISSING |
Required parameter (like fields) is missing |
INVALID_URL_PATTERN |
Invalid API endpoint path |
INVALID_MODULE |
Module does not exist or is not API-supported |
OAUTH_SCOPE_MISMATCH |
OAuth token lacks required permissions for the endpoint |
NO_PERMISSION |
Insufficient privileges for the operation |
MANDATORY_NOT_FOUND |
Required field is missing |
INVALID_DATA |
Data type mismatch or format error |
DUPLICATE_DATA |
Record violates unique field constraint |
Troubleshooting: API Key Issues
MATON_API_KEY environment variable is set:echo $MATON_API_KEY
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/connections')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
- Ensure your URL path starts with
zoho-bigin. For example:
- Correct:
https://api.maton.ai/zoho-bigin/bigin/v2/Contacts - Incorrect:
https://api.maton.ai/bigin/v2/Contacts
Resources
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。