Cotool + Zendesk
Connect Zendesk to Cotool so agents triage security tickets such as reported phishing, read email details from ticket audits, and ingest Zendesk audit and access logs.
The short answer
Security requests and user-reported phishing often arrive in Zendesk as support tickets. Cotool agents search and read those tickets, their comments and audits, then update, tag, reply to, or merge them, and Cotool can ingest Zendesk audit and access logs for built-in detections.[1][2][9][10]
How it connects: Cotool connects through a confidential Zendesk OAuth client using the client credentials grant. That grant issues an access token from the client's secret without a user authorization step, and the token acts as the admin who created the client.[1][6][7]
What Cotool uses from Zendesk
- Ticket search
- The Search API takes Zendesk query syntax, such as tickets with an open status, and returns up to 1,000 results per query. New tickets can take a few minutes to be indexed for search.[8]
- Ticket audits
- Audits are a read-only history of every update to a ticket: field changes, new comments, tag changes, and notifications. Audit metadata carries system data such as the IP address the update came from, and the via object records the channel.[10]
- Tickets and comments
- Tickets carry status, priority, tags, requester, assignee, and group. The comments in a ticket's audits hold the original request, replies, and internal notes, with any attachments.[9][10]
- Audit logs
- The account audit log records changes such as create, destroy, exported, login, and update actions, with the actor, the IP address, the changed item, and a description like a role change. Records are kept for the life of the account.[11]
- Access logs
- Access logs are a 90-day record of what agents and admins viewed, including read events that change nothing. Each entry has the REST path or GraphQL query, HTTP method, user id, IP address, client, and response size.[12]
Response actions
These change state in Zendesk, so they are the steps teams usually gate behind approval.
- Create a ticket
- Opens a ticket whose first comment can be public or internal, with requester, status, priority, tags, group, assignee, and custom fields.[1][9]
- Update a ticket and comment
- Changes status, priority, assignment, or custom fields and adds an internal note or a public reply to the requester, for example to tell a reporter the email they sent in was phishing.[1][9]
- Merge duplicate tickets
- Merges one or more source tickets into a target ticket, such as several reports of the same phishing email. Attachments are copied to the target, and Zendesk runs the merge as a background job.[9]
Detections, hunts, and triage
- Triage reported phishing ticketsTriage
- A webhook starts a Cotool agent when a phishing report lands. The agent reads the ticket's comments and audits for the sending details and IP address, checks the indicators, and posts its verdict as an internal note or a reply to the reporter.[1][4][9][10]
- Consolidate duplicate reportsResponse
- When several employees report the same message, the agent merges their tickets into one target so the evidence and attachments sit together and the team works one case.[1][9]
Example query
curl -g 'https://{subdomain}.zendesk.com/api/v2/audit_logs?filter[source_type]=user&filter[action]=update' \
-H "Authorization: Bearer {access_token}"Returns audit log records for updates to users, newest first, with the actor, IP address, and change description. Replace the subdomain and token, or filter by actor_id, ip_address, or created_at instead.[11]
Setup and permissions
An admin adds an OAuth client in Admin Center under Apps and integrations, APIs, OAuth clients, sets the client kind to Confidential, and copies the secret, which Zendesk shows in full only once.[6]
| Permission | Access | Why |
|---|---|---|
| read scopeAllows GET requests, including tickets, users, and ticket audits, which need the global read scope rather than tickets:read.[6][10] | Read | Allows GET requests, including tickets, users, and ticket audits, which need the global read scope rather than tickets:read.[6][10] |
| write scopeAllows POST, PUT, and DELETE requests, used to create and update tickets, add comments, and merge tickets.[6][9] | Write | Allows POST, PUT, and DELETE requests, used to create and update tickets, add comments, and merge tickets.[6][9] |
| Admin roleThe audit log endpoints are allowed for admins on accounts with audit log access, so the client should be created by an admin.[7][11] | Read | The audit log endpoints are allowed for admins on accounts with audit log access, so the client should be created by an admin.[7][11] |
| Merge permissionAgents on Enterprise accounts need merge permissions in their custom role to merge tickets.[9] | Write | Agents on Enterprise accounts need merge permissions in their custom role to merge tickets.[9] |
- Client credentials tokens act on behalf of the admin who created the OAuth client. If that admin is deleted or downgraded, the tokens stop working even though the client stays active.[6]
- The Audit Logs endpoints are only available on the Enterprise plan. The Access Logs API needs the Advanced Data Privacy and Protection add-on, which is sold for Suite Enterprise and above and Support Enterprise.[11][12][13]
How Cotool works with Zendesk
- Cotool added Zendesk in release 0.79.0 for ticket investigation and response, with managed audit and access log ingestion and built-in detections. Release 0.80.0 let read-only OAuth clients connect.[1]
- Ingested Zendesk logs land in Cotool Logs, where they can be searched and evaluated on a schedule by the Detections Platform. Connecting Zendesk and enabling its log streams are separate steps.[3]
- Cotool agents can be called from a webhook, the API, or a cron schedule, which is how a new support ticket can start a triage agent.[4]
FAQ
- Which Zendesk plan do audit logs and access logs need?
- Zendesk audit logs through the API need the Enterprise plan. Zendesk access logs need the Advanced Data Privacy and Protection add-on, available for Suite Enterprise and above and for Support Enterprise.[11][13]
- Why did a Zendesk client credentials token stop working?
- A Zendesk client credentials token acts as the admin who created the OAuth client. If that admin is deleted, downgraded, or loses the access to manage OAuth clients, requests with the token fail; create a new client as an active admin.[6]
Sources
- Changelog (Cotool docs) · accessed November 22, 2026
- Integrations (Cotool) · accessed November 22, 2026
- Cotool Log Ingest (Cotool docs) · accessed November 22, 2026
- Respond to every signal (Cotool Respond) · accessed November 22, 2026
- Threat hunting (Cotool Hunt) · accessed November 22, 2026
- Using OAuth authentication with your application (Zendesk help) · accessed November 22, 2026
- OAuth Tokens for Grant Types (Zendesk Developer Docs) · accessed November 22, 2026
- Search (Zendesk Developer Docs) · accessed November 22, 2026
- Tickets (Zendesk Developer Docs) · accessed November 22, 2026
- Ticket Audits (Zendesk Developer Docs) · accessed November 22, 2026
- Audit Logs (Zendesk Developer Docs) · accessed November 22, 2026
- Access Logs (Zendesk Developer Docs) · accessed November 22, 2026
- About the Advanced Data Privacy and Protection add-on (Zendesk help) · accessed November 22, 2026

