Access the Zoho Desk API with managed OAuth authentication. List, read, and search tickets and their threads and comments; read contacts, accounts, tasks, calls, events, products, contracts, agents, and departments; search the knowledge base; and create and update tickets, replies, comments, tasks, calls, events, products, and articles. Replies and public comments are delivered to customers, and published articles are public. All access runs through the Maton gateway and the maton CLI.
Permissions
Scopes
Choose which of these OAuth scopes the connection asks for when you connect, or pass them as scopes to Create Connection. Always scopes are added whatever you choose, By default ones are requested when you don't choose, and Optional ones only when you choose them. See Scopes.
| Scope | Requested |
|---|---|
Desk.tickets.READ | By default |
Desk.tickets.CREATE | By default |
Desk.tickets.UPDATE | By default |
Desk.tickets.DELETE | By default |
Desk.contacts.READ | By default |
Desk.contacts.CREATE | By default |
Desk.contacts.UPDATE | By default |
Desk.contacts.DELETE | By default |
Desk.tasks.READ | By default |
Desk.tasks.CREATE | By default |
Desk.tasks.UPDATE | By default |
Desk.tasks.DELETE | By default |
Desk.activities.READ | By default |
Desk.activities.CREATE | By default |
Desk.activities.UPDATE | By default |
Desk.activities.DELETE | By default |
Desk.products.READ | By default |
Desk.products.CREATE | By default |
Desk.products.UPDATE | By default |
Desk.products.DELETE | By default |
Desk.contracts.READ | By default |
Desk.articles.READ | By default |
Desk.articles.CREATE | By default |
Desk.articles.UPDATE | By default |
Desk.articles.DELETE | By default |
Desk.search.READ | By default |
Desk.basic.READ | Always |
Suggested read access
In the Console, Read limits the connection to these 321 read-only endpoints, plus deny rules for any write endpoint a broader rule would otherwise match. Endpoints Maton has found to return credentials, start jobs, or spend credits are left out; a few reads that can change state or return a secret depending on their parameters stay in, and their descriptions say how. It is a suggestion: the saved rules are exactly the ones you see, and you can change them with Custom. See Access policy.
Reference
Organization and Agent
Get My Information
maton api '/zoho-desk/api/v1/myinfo'Response:
{
"id": "1892000000056007",
"zuid": "11550965",
"name": "Jade Tywin",
"firstName": "Jade",
"lastName": "Tywin",
"emailId": "jade12tywin@zylker.com",
"roleId": "1892000000056097",
"profileId": "1892000000056091",
"associatedDepartmentIds": ["1892000000082069"],
"status": "ACTIVE",
"isConfirmed": true,
"langCode": "en_US",
"timeZone": "Asia/Kolkata"
}The agent the connection acts as. Use it as the first call.
List Organizations
maton api '/zoho-desk/api/v1/organizations'Response:
{
"data": [
{
"id": 2389290,
"companyName": "Zylker",
"portalName": "zylker",
"edition": "ENTERPRISE",
"isDefault": true,
"isAdminInOrg": true,
"currencyCode": "USD",
"country": "USA"
}
]
}The organizations the user belongs to. api/v1/accessibleOrganizations lists the ones this connection's token can reach (the one it is bound to).
List Agents
maton api '/zoho-desk/api/v1/agents?limit=50'Each agent carries id, name, emailId, roleId, profileId, associatedDepartmentIds, and status. agents/{agent_id} returns one agent, agents/email/{email} looks one up by email, and agentsByIds?agentIds={id1},{id2} returns several.
List Departments
maton api '/zoho-desk/api/v1/departments'Response:
{
"data": [
{
"id": "1892000000082069",
"name": "Zylker Support",
"description": "Customer support",
"isDefault": true,
"isEnabled": true,
"chatStatus": "AVAILABLE"
}
]
}Creating a ticket or task needs a departmentId from here. departments/{department_id}/agents lists a department's agents.
Tickets
List Tickets
maton api '/zoho-desk/api/v1/tickets?limit=25&sortBy=-createdTime'Response:
{
"data": [
{
"id": "1892000000143237",
"ticketNumber": "101",
"subject": "Real Time analysis Requirement",
"status": "Open",
"statusType": "Open",
"priority": "High",
"channel": "Email",
"email": "carol@zylker.com",
"contactId": "1892000000042032",
"assigneeId": "1892000000056007",
"departmentId": "1892000000082069",
"createdTime": "2016-06-21T13:16:14.000Z",
"dueDate": "2016-06-21T16:16:16.000Z",
"commentCount": "1",
"threadCount": "3",
"webUrl": "{ticket_web_url}"
}
]
}Query parameters: from, limit (1-100), departmentIds, viewId, assignee (an agent ID or Unassigned), teamIds, status, channel, priority, sortBy (createdTime, responseDueDate, customerResponseTime; prefix - for descending), receivedInDays (15, 30, 90), include (contacts, products, assignee, departments, isRead, team), and fields (up to 30 field names). An empty result is 204 with no body.
Get Ticket
maton api '/zoho-desk/api/v1/tickets/{ticket_id}?include=contacts,assignee,departments'Returns the full ticket, including description, resolution, cf (custom fields), classification, and the counts of threads, comments, attachments, and approvals.
Search Tickets
maton api '/zoho-desk/api/v1/tickets/search?subject=*refund*&status=Open&limit=25'Matches fields such as subject and description (wildcards with *), ticketNumber, email, status, priority, channel, category, assigneeId, and departmentId; ${empty} and ${notempty} test for a missing or present value. Needs the Desk.search.READ scope; without it Zoho answers 403 SCOPE_MISMATCH.
Create Ticket
maton api '/zoho-desk/api/v1/tickets' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{
"subject": "Real Time analysis Requirement",
"departmentId": "{department_id}",
"contactId": "{contact_id}",
"description": "Customer asked for real-time reporting.",
"priority": "High",
"status": "Open",
"channel": "Email"
}
JSONNote: {department_id} and {contact_id} stand for real values; fill each of them in before sending the request.
Body fields:
subject(string, required): Up to 255 charactersdepartmentId(string, required): FromdepartmentscontactId(string): The ticket's contact. Instead of an ID,contactcan be an object withlastNameoremail; an existing email reuses that contact, otherwise a new contact is createddescription,status,priority,assigneeId,category,subCategory,classification,dueDate,channel,language,cf(custom fields)
Creating a ticket can send the contact Zoho Desk's acknowledgement email, depending on the help desk's notification rules.
Update Ticket
maton api '/zoho-desk/api/v1/tickets/{ticket_id}' -X PATCH -H 'Content-Type: application/json' --input - <<'JSON'
{
"status": "Closed",
"priority": "Low"
}
JSONTakes the same fields as create. Closing a ticket can notify the contact; pass ?disableClosureNotification=true to skip that. tickets/updateMany with POST sets one field on many tickets (ids, fieldName, fieldValue), and closeTickets with POST closes several (ids).
Move Tickets to Trash
maton api '/zoho-desk/api/v1/tickets/moveToTrash' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{
"ticketIds": ["{ticket_id}"]
}
JSONReturns 204. The tickets stay in the Recycle Bin for 60 days, then are deleted permanently. Costs 6 credits per ticket.
Threads and Replies
List Threads
maton api '/zoho-desk/api/v1/tickets/{ticket_id}/threads'Response:
{
"data": [
{
"id": "1892000000094004",
"channel": "EMAIL",
"direction": "in",
"summary": "Hi, I was charged twice this month...",
"author": {"name": "Carol", "email": "carol@zylker.com", "type": "END_USER"},
"isDescriptionThread": true,
"canReply": true,
"hasAttach": false,
"visibility": "public",
"createdTime": "2016-05-25T10:06:09.686Z",
"status": "SUCCESS"
}
]
}Threads are the messages exchanged on a ticket; each list entry carries a summary. tickets/{ticket_id}/threads/{thread_id} returns one thread with its full content, tickets/{ticket_id}/latestThread the newest one, and tickets/{ticket_id}/conversations threads and comments together in order.
Send Email Reply
maton api '/zoho-desk/api/v1/tickets/{ticket_id}/sendReply' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{
"channel": "EMAIL",
"fromEmailAddress": "{support_address}",
"to": "{customer_email}",
"contentType": "html",
"content": "<p>Thanks for reaching out. We've refunded the duplicate charge.</p>"
}
JSONNote: {ticket_id}, {support_address} and {customer_email} stand for real values; fill each of them in before sending the request.
Body fields:
channel(string):EMAIL, or the ticket's channel (FACEBOOK,TWITTER,FORUMS, or a custom channel)content(string, required): The replyfromEmailAddress(string): A from address configured in the help desk (required forEMAIL)to,cc,bcc(string): Recipients forEMAILcontentType(string):htmlorplainText(default)isForward(boolean),inReplyToThreadId,attachmentIds
The reply is sent to the customer at once. tickets/{ticket_id}/draftReply with POST saves a draft instead, and tickets/{ticket_id}/draftReply/{thread_id} with PATCH updates it.
Comments
List Ticket Comments
maton api '/zoho-desk/api/v1/tickets/{ticket_id}/comments'Each comment carries id, content, isPublic, commenter, commentedTime, and attachments. tickets/{ticket_id}/comments/{comment_id} returns one comment.
Add a Ticket Comment
maton api '/zoho-desk/api/v1/tickets/{ticket_id}/comments' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{
"content": "Refund issued; waiting on the customer to confirm.",
"isPublic": false,
"contentType": "plainText"
}
JSONA private comment (isPublic: false, the safe choice) is visible to agents only; a public one is shown to the customer. Mention an agent with zsu[@user:{zuid}]zsu. tickets/{ticket_id}/comments/{comment_id} with PATCH edits a comment and with DELETE removes it.
Contacts and Accounts
List Contacts
maton api '/zoho-desk/api/v1/contacts?limit=50'Response:
{
"data": [
{
"id": "1892000000042032",
"firstName": "Hugh",
"lastName": "Jack",
"email": "hughjack@zylker.com",
"phone": "+1 2328829010",
"accountId": "1892000000052077",
"type": "paidUser",
"isEndUser": false,
"createdTime": "2016-06-21T13:16:14.000Z"
}
]
}contacts/{contact_id} returns one contact, contacts/{contact_id}/tickets its tickets, and contacts/search?email={email} finds contacts by field (with Desk.search.READ).
Create Contact
maton api '/zoho-desk/api/v1/contacts' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{
"lastName": "Jack",
"firstName": "Hugh",
"email": "{email}",
"accountId": "{account_id}"
}
JSONNote: {email} and {account_id} stand for real values; fill each of them in before sending the request.
Needs the Desk.contacts.CREATE scope. lastName is required. contacts/{contact_id} with PATCH updates a contact, and contacts/moveToTrash with POST (contactIds) trashes contacts.
List Accounts
maton api '/zoho-desk/api/v1/accounts?limit=50'Accounts are the companies contacts belong to; each carries id, accountName, email, phone, and website. accounts/{account_id} returns one, accounts/{account_id}/tickets its tickets, and accounts with POST (accountName, with Desk.contacts.CREATE) creates one; accounts/{account_id} with PATCH updates it and accounts/moveToTrash with POST (accountIds) trashes accounts.
Tasks
List Tasks
maton api '/zoho-desk/api/v1/tasks?limit=50'Each task carries id, subject, status, priority, dueDate, ownerId, ticketId, and departmentId. tickets/{ticket_id}/tasks lists a ticket's tasks and tasks/{task_id} returns one. An empty result is 204.
Create Task
maton api '/zoho-desk/api/v1/tasks' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{
"subject": "Follow up on refund",
"departmentId": "{department_id}",
"ticketId": "{ticket_id}",
"dueDate": "2026-12-05T09:00:00.000Z",
"priority": "High",
"status": "Not Started"
}
JSONNote: {department_id} and {ticket_id} stand for real values; fill each of them in before sending the request.
subject and departmentId are required. tasks/{task_id} with PATCH updates a task (for example "status": "Completed").
Calls and Events
Calls and events are activities, like tasks; they need the Desk.activities.* scopes. Creating one only logs the activity in Zoho Desk: it doesn't dial a number or send an invitation.
List Calls
maton api '/zoho-desk/api/v1/calls?limit=50'Response (trimmed, from Zoho's documentation):
{
"data": [
{
"id": "{call_id}",
"subject": "Follow-up call",
"direction": "inbound",
"status": "Completed",
"startTime": "2019-03-24T11:40:01.000Z",
"departmentId": "{department_id}",
"contactId": "{contact_id}",
"ownerId": "{agent_id}",
"priority": "Normal"
}
]
}calls/{call_id} returns one call, tickets/{ticket_id}/calls a ticket's calls, and calls/{call_id}/comments and calls/{call_id}/attachments its comments and attachments. An empty list is 204.
Create Call
maton api '/zoho-desk/api/v1/calls' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{
"subject": "Follow-up call",
"departmentId": "{department_id}",
"contactId": "{contact_id}",
"ticketId": "{ticket_id}",
"startTime": "2026-11-30T10:00:00.000Z",
"direction": "inbound",
"duration": "60",
"status": "Completed"
}
JSONNote: {department_id}, {contact_id}, and {ticket_id} stand for real values; fill each of them in before sending the request.
departmentId, subject, startTime, direction (inbound or outbound), duration (seconds), status, and contactId are required. calls/{call_id} with PATCH updates a call, calls/{call_id}/comments with POST ({"contentType": "html", "content": "..."}) adds a comment, and calls/moveToTrash with POST ({"entityIds": [...]}) trashes calls.
List Events
maton api '/zoho-desk/api/v1/events?limit=50'Each event carries id, subject, startTime, duration, status, priority, category, contactId, ticket, and ownerId. events/{event_id}, tickets/{ticket_id}/events, events/{event_id}/comments, and events/{event_id}/attachments work like the call routes. An empty list is 204.
Create Event
maton api '/zoho-desk/api/v1/events' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{
"subject": "Onboarding session",
"departmentId": "{department_id}",
"contactId": "{contact_id}",
"startTime": "2026-12-15T10:00:00.000Z",
"duration": "30"
}
JSONNote: {department_id} and {contact_id} stand for real values; fill each of them in before sending the request.
departmentId, subject, startTime, duration (minutes), and contactId are required. events/{event_id} with PATCH updates an event, events/{event_id}/comments with POST adds a comment, and events/moveToTrash with POST ({"entityIds": [...]}) trashes events.
Products
Products are the items the help desk supports; they need the Desk.products.* scopes.
List Products
maton api '/zoho-desk/api/v1/products?limit=50'Response (from Zoho's documentation):
{
"data": [
{"id": "{product_id}", "productName": "Dell", "productCode": null, "unitPrice": "100.0"}
]
}products/{product_id} returns one product, products/{product_id}/tickets, products/{product_id}/contacts, and products/{product_id}/accounts what it's linked to, and accounts/{account_id}/products and contacts/{contact_id}/products the other direction. An empty list is 204.
Create Product
maton api '/zoho-desk/api/v1/products' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{
"productName": "Dell",
"productCode": "12345",
"unitPrice": "100",
"departmentIds": ["{department_id}"]
}
JSONproductName and departmentIds are required. products/{product_id} with PATCH updates a product; products/{product_id}/associateContacts and products/{product_id}/associateAccounts with POST ({"ids": [...], "associate": true}, or false to unlink) link it to contacts or accounts; and products/moveToTrash with POST ({"productIds": [...], "departmentId": "..."}) trashes products.
Contracts
Contracts tie an account to a support plan and its SLA. They are read-only through this connection (Desk.contracts.READ).
List Contracts
maton api '/zoho-desk/api/v1/contracts?limit=50'Response (trimmed, from Zoho's documentation):
{
"data": [
{
"id": "{contract_id}",
"contractName": "Gold support",
"accountId": "{account_id}",
"contractStatus": "ACTIVE",
"startDate": "2026-01-01",
"endDate": "2026-12-31",
"supportPlan": {"id": "{plan_id}", "name": "SupportPlan with Gold SLAs", "supportType": "UNLIMITED_SUPPORT"}
}
]
}contracts/{contract_id} returns one contract, contracts/{contract_id}/comments its comments, and accounts/{account_id}/contracts an account's contracts. An empty list is 204.
Time Entries
Time entries record the time agents spent on a record. They are read under the parent record's scope:
maton api '/zoho-desk/api/v1/tickets/{ticket_id}/timeEntry'
maton api '/zoho-desk/api/v1/tickets/{ticket_id}/timeEntrySummation'Each entry carries id, hoursSpent, minutesSpent, secondsSpent, isBillable, executedTime, ownerId, and description. The same timeEntry and timeEntrySummation routes exist under tasks/{task_id}, contacts/{contact_id}, and accounts/{account_id}.
Search
Search Across Modules
maton api '/zoho-desk/api/v1/search?searchStr=zylker&module=tickets&limit=10'Searches tickets, contacts, accounts, and tasks for a keyword; module narrows it to one. Takes departmentId, from (0-4999), limit, and sortBy (relevance or modifiedTime). An empty result is 204.
Articles
The knowledge base needs the Desk.articles.* scopes; without them these calls answer 403 SCOPE_MISMATCH.
List Articles
maton api '/zoho-desk/api/v1/articles?limit=25&status=Published'Each article carries id, title, status (Draft, Review, Published), permission, categoryId, permalink, authorId, and its view and like counts. articles/{article_id} returns one with its answer (the content), and articles/search?searchStr={query} searches them.
Create Article
maton api '/zoho-desk/api/v1/articles' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{
"categoryId": "{category_id}",
"title": "Importance of a Knowledge Base",
"answer": "<p>The knowledge base is a key component of a good help center.</p>",
"status": "Draft",
"permission": "AGENTS"
}
JSONcategoryId, title, answer, and status are required; categoryId must be the lowest-level category. permission is ALL (public), REGISTEREDUSERS, or AGENTS. articles/{article_id} with PATCH updates an article (the same fields), and articles/moveToTrash with POST trashes articles.
Pagination
Lists use from and limit:
maton api '/zoho-desk/api/v1/tickets?from=0&limit=100'
maton api '/zoho-desk/api/v1/tickets?from=100&limit=100'from: Index of the first record (starts at 0)limit: Number of records, usually up to 100 (search takesfromup to 4999)
Keep paging while a page comes back full. A list with no more records returns 204 with an empty body, not an empty array.
Notes
- Read-only policy: the console's Read option leaves out
GET api/v1/channels, which returns each email channel's SMTP password, andGET api/v1/departments/{department_id}/mailConfigurations, for the same mail server settings. - Permanent deletes: the
deleteSpamandemptySpamroutes for tasks, calls, events, and activities delete records for good rather than moving them to the Recycle Bin, so they are left out of the access catalog. - IDs are numeric strings; dates are ISO 8601 in UTC (
2016-06-21T13:16:14.000Z). - Errors have an
errorCodeandmessage:SCOPE_MISMATCH(the connection lacks the scope;403),OAUTH_ORG_MISMATCH(anorgIdheader for another organization;422),INVALID_OAUTH(the token is no longer valid;401),UNPROCESSABLE_ENTITY(a missing or invalid parameter;422), andINVALID_DATAfor bad body fields. - Credits and rate limits: Zoho meters every call in API credits per organization per day, by edition; a call over the quota fails until it resets. Prefer
limitandfieldsover repeated calls. - Scopes: a
403SCOPE_MISMATCHmeans the connection wasn't granted that scope; reauthorizing the connection with--scopesadds it. Some areas need scopes Maton doesn't offer and answerSCOPE_MISMATCHwhatever the connection was granted: agent time entries and agent signatures, account SLAs, layout rules, validation rules, and layout profiles, the community, contract writes (contracts are read-only), and ticket templates and other admin settings. For those, contact Maton support at support@maton.ai with the operations you need.