Get a Microsoft 365 flow run, or list a client's runs
GET/m365/flow-runs
Scope read:m365_identityRead only
Requires the read:m365_identity scope (or management), and the staff member who made the key must be allowed to do this in the portal right now.
Parameters
limitPage size, 1 to 100 (default 25).
cursorOpaque continuation token: pass back the nextCursor you were given. Never construct one.
idOne run, as a list of one (empty when it does not exist).
organizationIdLimit to one client id.
userExternalIdLimit to the runs for one Microsoft 365 person.
localees-419 for Spanish words; English otherwise.
Response 200
dataRequiredThe response payload.
data[].idRequiredThe run's handle; pass it back as ?id= (not a display value).
data[].flowNameRequiredName of the flow that is running.
data[].clientNameRequiredName of the client.
data[].userNameRequiredName of the person the flow is for.
data[].startedByNameRequiredName of the technician who started it.
data[].statusRequiredWhere the run stands.
data[].stepsRequiredThe steps, in order, each with its state.
data[].steps[].nRequiredStep number, from 1.
data[].steps[].labelRequiredWhat the step does, in words.
data[].steps[].whenRequiredWhen the step runs, in words (right away, or on day N after the start).
data[].steps[].needsRequiredapprover = the step waits for a technician to release it; nothing = it runs by itself.
data[].steps[].needsWordsRequiredThe same as needs, in words.
data[].steps[].stateRequireddone, waiting for an approver, next to run, later, or the step the run stopped at.
data[].nextStepAtRequiredWhen the next step is due (ISO 8601 UTC), or null.
data[].stoppedReasonRequiredWhy the run stopped, in words, or null.
data[].notesRequiredWhat has happened so far, oldest first.
data[].notes[].atRequiredWhen it happened (ISO 8601 UTC).
data[].notes[].sentenceRequiredWhat happened, in words.
data[].startedAtRequiredWhen the run started (ISO 8601 UTC).
data[].finishedAtRequiredWhen the run finished or stopped (ISO 8601 UTC), or null.
nextCursorRequiredPass back as cursor for the next page; null on the last page.
Errors (401, 403, 404, 429)
401Missing or invalid API key (apiKeyRequired / apiKeyInvalid). A key also stops working, with apiKeyInvalid, when the staff member who made it is deactivated, blocked or removed.403The key may not do this (apiKeyScopeInsufficient when it lacks the required scope, apiKeyMakerInsufficient when the staff member who made it does not hold the permission now). Or its organization is inactive (apiKeyOrgInactive). Or the key is limited to one client, which is not supported yet (apiClientKeyUnsupported).404Not found for this key (a record in another organization is also a 404, never a 403).429Rate limit exceeded; wait Retry-After seconds.