Skip to content
Docs

Creating a Zendesk OAuth 2.0 client

This guide is part of the Publicus connection catalog. Once you have the credentials, connect the service and Publicus stores them for you.

Distilled from Zendesk’s own documentation: Using OAuth authentication with your application, Creating and using OAuth tokens with the API, and the OAuth Tokens for Grant Types reference. Retrieved 2026-07-03.

OAuth clients are per-account: every URL is built on https://{subdomain}.zendesk.com, so note your account subdomain (the {subdomain} in {subdomain}.zendesk.com) before you start — the connect form asks for it.

  1. Sign in to your Zendesk account as an administrator and open Admin Center.
  2. In the sidebar, click Apps and integrations, then select APIs > OAuth clients.
  3. Click Add OAuth client on the right of the OAuth client list.
  4. Enter a Name (this is what users see on the consent screen). The Identifier field auto-populates from the name — this becomes your client_id; change it if you wish.
  5. Choose the Client kind — Confidential for a server-side app that can keep a secret (recommended), or Public for a client that cannot (public clients should use PKCE).
  6. Under Redirect URLs, enter the callback URL(s) exactly as shown on the connect form. Zendesk matches redirect URIs exactly.
  7. Click Save. After the page refreshes a pre-populated Secret field appears — this is your client_secret. Copy it now and store it safely: for security reasons the secret is shown in full only once (afterwards only the first nine characters are visible). Click Save again.
  8. Record the Identifier (client ID) and Secret (client secret) into the connect form together with your account subdomain.

Operational notes (from OAuth Tokens for Grant Types and Creating and using OAuth tokens with the API):

  • Authorization request: the browser is redirected to https://{subdomain}.zendesk.com/oauth/authorizations/new?response_type=code&redirect_uri=...&client_id=...&scope=read%20write. Scopes are space-separated (%20-encoded). See the per-capability scopes in this catalog entry for tighter grants (tickets:read, users:write, …).
  • Token exchange: POST https://{subdomain}.zendesk.com/oauth/tokens with grant_type=authorization_code, code, client_id, client_secret, and redirect_uri in the request body (formatted as JSON — the request must be over HTTPS). Client credentials go in the body, not a Basic auth header.
  • Access-token lifetime is set per token via expires_in (must be > 300s and < 172,800s). Clients created on or after 2026-04-30 default to 1,800s; older clients default to a non-expiring token. Refresh with grant_type=refresh_token.
  • Refresh tokens rotate: each refresh returns a new access token and a new refresh token and invalidates the previous pair, so always persist the newly returned refresh_token.
  • The authorization_code grant returns a refresh token automatically — Zendesk needs no offline_access-style scope.

Open Connections under Credentials, choose Zendesk, and pick Zendesk OAuth 2.0. Publicus asks for exactly the fields listed above and keeps them in your workspace’s secret storage.

See also: Zendesk in the catalog.

This guide is maintained by Publicus and published under CC BY 4.0.