Automate work with routines changedroutines
Nearest release: v2.1.299, published under an hour after upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 14 Oct 2026 00:08 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 14 Oct 2026 00:37 UTC.
Upstream edited
Recorded here
Lines+5added
Lines−2removed
From line
162
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits36to this page, all time
The whole hunk
from line 162, old and new numbered
/
from line 162
162162
163163An API trigger gives a routine a dedicated HTTP endpoint. POSTing to the endpoint with the routine's bearer token starts a new session and returns a session URL. Use this to wire Claude Code into alerting systems, deploy pipelines, internal tools, or anywhere you can make an authenticated HTTP request.
164164
165API triggers are added to an existing routine from the web. The CLI cannot currently create or revoke tokens.
165API triggers are added to an existing routine from the web. The CLI can't currently create, regenerate, or delete tokens.
166166
167167<Steps>
168168 <Step title="Open the routine for editing">
from line 182
182182 </Step>
183183</Steps>
184184
185Each routine has its own token, scoped to triggering that routine only. To rotate or revoke it, return to the same modal and click **Regenerate** or **Revoke**.
185Each routine has its own token, scoped to triggering that routine only. To turn off API access or rotate the token, return to the same modal:
186
187* **Turn off API access**: click **Delete token**, the trash icon next to **Regenerate**
188* **Rotate the token**: click **Regenerate**
186189
187190#### Trigger a routine
188191
No line in this hunk matches that.