Call OAuth APIs from your hooks

Hooks can now call APIs that require OAuth, and the tokens cost you nothing: no actions, no token request on every run, no noise in your run logs. Add an OAuth connection once, and Cloudhooks takes care of the tokens.
The hidden cost of expiring tokens
More and more APIs replace static API keys with OAuth tokens that expire within hours or days. Zendesk, for example, stopped issuing API tokens and deactivates the rest on April 30, 2027. Fetching tokens in a hook meant storing the client secret and spending an action, plus log lines, on every request.
How Cloudhooks handles your tokens
Add an OAuth connection on the Settings page, or on a hook's Settings tab, with the service's token URL, your OAuth client's ID and secret, and the scopes you need. Cloudhooks takes it from there:
- Verified on save: Cloudhooks requests a token right away, so you know at once whether the connection works
- No actions spent on tokens: Cloudhooks renews tokens in the background before they expire, so refreshing a token never counts toward your usage
- No token request on every run: your runs reuse the current token instead of calling the token endpoint each time, so busy hooks don't run into its rate limit
- One change in your hook: send
context.oauth.<name>.accessTokenin theAuthorizationheader where your API key used to go, and your HTTP action works as before - Clean run logs: token renewals never show up in your run logs. You only see a line when a run couldn't get a token
- Secrets stay hidden: Cloudhooks masks access tokens and client secrets in run logs, in test runs too
All hooks in your store share its store connections. A hook connection with the same name overrides the store's for that one hook.
Zendesk, step by step
The help article walks you through moving a Zendesk integration from an API token to OAuth: creating the OAuth client in Zendesk, adding the connection in Cloudhooks, and the hook code.
Plan availability
All paid plans and the Trial include OAuth connections, like environment variables.