Tableau's REST API uses a session token model — you exchange long-lived PAT credentials for a short-lived session token before each API call. Without a pre-run hook handling this exchange, agents fail the moment a session expires mid-workflow. The Tableau connector handles session refresh transparently, before every tool call.

An executive reporting agent publishes weekly KPI dashboards to Tableau Server. The agent runs on a schedule and calls multiple Tableau REST API endpoints per run. Scalekit's pre-run hook exchanges the stored PAT credentials for a fresh session token before each tool execution batch. The agent never sees a session expiry error, even across multi-hour workflows.
What's included
- Pre-run hook fires before each tool call and exchanges PAT for a fresh session token transparently.
- Session expiry is no longer a failure mode the agent needs to handle.
- Same hook infrastructure available for any connector with similar session management requirements.
- Works across multi-hour, multi-step Tableau workflows without interruption.

.png)