Skip to main content

Error handling

This page covers errors during the connection flow and token exchange. For MCP server errors (tool execution failures, protocol errors), see the MCP specification on error handling. When an error occurs during the connection flow, Zapier redirects the user back to your redirect_uri with an error code and optionally a description.

Error response format

Error codes

Redirect errors

These errors are returned as redirects to your redirect_uri with the error parameters above.

Non-redirect errors

These errors are returned as HTTP responses before redirect_uri has been validated.

Token exchange (POST /oauth/token)

Token exchange errors return JSON responses since this is a backend-to-backend call. Example error response:

Token refresh (POST /oauth/token)

Refresh token errors also return JSON responses. See Token exchange — refreshing for the request format.

Connection flow

Connection flow errors are returned in one of two ways:
  • If a valid redirect_uri is present: Zapier redirects to it with ?error={error_code}&error_description={description} query parameters (see Redirect errors above).
  • Otherwise: Zapier returns an HTML error page directly to the user.