Permissions and request
Use a signed-in human with currentsweep.execute, sweep.read, organization.read and detection_rule.write permissions. The write request checks the execution and standard/client permissions; polling uses sweep.read. This write route requires a human access token; a user-owned API key cannot start the scoped run. Permission or sign-in changes can prevent remaining work from continuing.
Generate and save a canonical UUID for the Idempotency-Key before sending the request. Include both standardId and organizationIds; do not include integrationId in this mode.
202 and a durable sweep id. Evidence collection runs first; the named standard is then evaluated for those selected clients. Some sources may read an account-wide provider inventory, but only selected-client evidence is published and assessed by this run; other standards are not assessed.
Recover and read the result
If the POST response is uncertain, resend the identical standard, client IDs and Idempotency-Key. The same request returns its existing durable sweep. Reusing a key with a different standard or client set returns409; do not create a new key until you have reconciled the original request.
Poll the returned sweep:
progress with the selected-client count, overall collection and assessment states, per-source outcomes, per-standard assessment outcomes and per-client collection and assessment states. phase distinguishes collection (collecting), evaluation (checking) and terminal outcomes. A completed sweep does not mean every control passed: review client results and cited evidence. Missing or stale evidence is not a pass.
If permissions change or a source/client/standard no longer meets the request conditions, inspect the durable progress and safe error code. Resolve the underlying issue before deliberately starting a new request. The app’s Run checks dialog keeps the original request identity so it can be reconciled after an uncertain response.
This page documents the scoped POST /sweeps mode. Existing unscoped and single-integration sweep requests retain their existing request behavior. Check the authenticated live schema for the routes and permissions available to your deployment.