agents
Admin Scrub Public Agents
Admin-only escape hatch to scrub leaked test/demo agents from the public Talent Pool + Compare + Registry surfaces.
Soft-fix only — flips is_public to False, leaves the row otherwise intact so the owner can still find it under their own /agents. Added 2026-05-17 after an E2E session left a handful of throwaway agents ('v0.1.7 verify', 'QA Test Agent', etc.) visible on /compare.
Returns the count + names of rows updated so the operator can sanity- check what they just touched. ADMIN_EMAILS gate via require_admin.
post/api/v1/agents/admin/scrub-public
Request
- Base URL: https://api.badgeia.com
- URL: https://api.badgeia.com/api/v1/agents/admin/scrub-public
- Auth: none declared
Query parameters
name_patternstring required
Case-insensitive substring. Any agent whose name contains this string will be flipped to is_public=false.
Response
Successful Response
object required
Changes
No recorded changes to this operation across all 1 revision of this API.