integration.manage and an active owner who currently holds that permission to start a request. A signed-in human with integration.manage can also call it. Polling requires integration.read; a read-only service key can poll when granted that scope. A service key cannot start collection.
Start a request
Generate a UUID once, store it with the source ID, and send an empty-body POST:202 and an operation id with state: pending. A replay of the same caller, key and source returns HTTP 200 with the current operation state. Reusing the key for a different source returns 409. The request can also be refused when the source is not connected, does not produce evidence, has no selected Microsoft client or already has an active refresh.
Poll the exact operation
id. The source and operation IDs must match in your MSP workspace; a foreign or mismatched pair returns 404. The response contains id, integrationId, state, optional sweepId and syncRunId, startedAt, finishedAt, errorCode and assessmentState: unknown. Both routes use Cache-Control: no-store on successful responses.
pending means recorded, running means an exact SyncRun was claimed, and completed means that exact run finished evidence collection. failed and interrupted carry a safe errorCode; vendor error bodies and credentials are not returned. assessmentState: unknown means the operation does not attest that later detection or standards evaluation completed. A passing control requires current, applicable evidence and its own evaluation.
If the POST response is uncertain, retry with the identical source and Idempotency-Key before creating a new request. After the exact run is claimed, the server does not automatically replay uncertain vendor work. Use the poll route to recover the durable outcome. See Refresh evidence with MCP for the state table and recovery guidance.