Zendesk Support API bindings.

  • ::zendesk::tickets creates, reads, updates, comments on, merges and tags tickets, lists ticket fields and satisfaction ratings, and runs the cursor-based incremental ticket export
  • ::zendesk::users and ::zendesk::organizations look up and manage requesters and their companies
  • ::zendesk::views and ::zendesk::macros work the queues agents use: execute a view, preview or apply a macro
  • ::zendesk::search runs the search API (with its 1,000-result cap) and the cursor-based search export
  • ::zendesk::side-conversations starts and replies to side conversations
  • ::zendesk::webhooks verifies X-Zendesk-Webhook-Signature
  • ::zendesk::api holds the transport, cursor pagination, and the request escape hatch

Setup: context variables:

  • zendesk.subdomain: acme or acme.zendesk.com
  • API token auth: zendesk.email (the agent or admin the token acts as) and zendesk.api.token (Admin Center → Apps and integrations → APIs → Zendesk API)
  • or OAuth: zendesk.oauth.token, a Bearer access token (wins when both are set)

Every API-calling function also takes a trailing opts Map for per-call credentials; see ::zendesk::api.

Quick start

::tickets ::zendesk::tickets

urgent ::zendesk::search/search("type:ticket status:open priority:urgent")

ticket ::tickets/create-ticket("Login page down", "Customers report 500s on /login.", {priority: "urgent"})
::tickets/add-comment(ticket.ticket.id, "Deployed a rollback; monitoring.", false)

Values

DEFAULT_PAGE_SIZE

DEFAULT_PAGE_SIZE: Int 100