Undo a keyword's setup changes
Undo one change the keyword’s setup made (change: its ref from GET /api/v2/keywords/{id}/setup) or all of them. A setting edited since the setup is left as it is and named in summary. Answers the updated setup. 409 KEYWORD_SETUP_NOTHING_TO_UNDO when the setup changed nothing, 409 KEYWORD_SETUP_UNDO_EXPIRED after the undo window, 404 KEYWORD_SETUP_CHANGE_NOT_FOUND for an unknown change.
Authorizations
Clerk API key. Create one in Settings → API Keys. Pass as Authorization: Bearer <key>. Keys carry a scope — read, write (implies read) or admin (implies write) — chosen when the key is minted. Each operation's security requirement (and its x-required-scope extension) names the minimum scope it needs; request the least-privileged key that covers the operations you call.
Body
Response
200 response
An added keyword's setup: the bounded first collection onboarding runs, then the settings agent's clean-up on the mentions that landed. Each change carries its reason and can be undone.
queued (added, the setup starts in a moment) → collecting (the first week of mentions is coming in) → cleaning (the settings agent is reading them) → done. skipped: nothing to set up (see statusReason: the mention limit is reached, the keyword was removed, a search-only workspace). failed: the setup stopped (see statusReason); the keyword keeps collecting as it is.
queued, collecting, cleaning, done, skipped, failed 