Keyword setup
Where the keyword’s setup stands (queued → collecting → cleaning → done, or skipped / failed with statusReason) and, once done, every change the settings agent made with its reason, the mentions it removed, and until when the changes can be undone (POST /api/v2/keywords/{id}/setup/undo). 404 KEYWORD_NOT_FOUND for an unknown or foreign id; 404 KEYWORD_SETUP_NOT_FOUND for a keyword added before keyword setup existed.
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.
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 