Microsoft 365

2 operations. Paths start at your portal’s /api/v1.

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

  • limitintegerin query

    Page size, 1 to 100 (default 25).

    Min 1. Max 100. Default 25.

  • cursorstringin query

    Opaque continuation token: pass back the nextCursor you were given. Never construct one.

  • idstringin query

    One run, as a list of one (empty when it does not exist).

  • organizationIdstringin query

    Limit to one client id.

  • userExternalIdstringin query

    Limit to the runs for one Microsoft 365 person.

  • localestringin query

    es-419 for Spanish words; English otherwise.

    One of: en, es-419.

Response 200

  • dataobject[]Required

    The response payload.

  • data[].idstringRequired

    The run's handle; pass it back as ?id= (not a display value).

  • data[].flowNamestringRequired

    Name of the flow that is running.

  • data[].clientNamestringRequired

    Name of the client.

  • data[].userNamestringRequired

    Name of the person the flow is for.

  • data[].startedByNamestringRequired

    Name of the technician who started it.

  • data[].statusstringRequired

    Where the run stands.

    One of: running, waiting_for_approver, completed, stopped.

  • data[].stepsobject[]Required

    The steps, in order, each with its state.

  • data[].steps[].nintegerRequired

    Step number, from 1.

  • data[].steps[].labelstringRequired

    What the step does, in words.

  • data[].steps[].whenstringRequired

    When the step runs, in words (right away, or on day N after the start).

  • data[].steps[].needsstringRequired

    approver = the step waits for a technician to release it; nothing = it runs by itself.

    One of: nothing, approver.

  • data[].steps[].needsWordsstringRequired

    The same as needs, in words.

  • data[].steps[].statestringRequired

    done, waiting for an approver, next to run, later, or the step the run stopped at.

    One of: done, waiting, next, later, stopped.

  • data[].nextStepAtstring or nullRequired

    When the next step is due (ISO 8601 UTC), or null.

  • data[].stoppedReasonstring or nullRequired

    Why the run stopped, in words, or null.

  • data[].notesobject[]Required

    What has happened so far, oldest first.

  • data[].notes[].atstringRequired

    When it happened (ISO 8601 UTC).

  • data[].notes[].sentencestringRequired

    What happened, in words.

  • data[].startedAtstringRequired

    When the run started (ISO 8601 UTC).

  • data[].finishedAtstring or nullRequired

    When the run finished or stopped (ISO 8601 UTC), or null.

  • nextCursorstring or nullRequired

    Pass back as cursor for the next page; null on the last page.

Errors (401, 403, 404, 429)
  • 401 Missing 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.
  • 403 The 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).
  • 404 Not found for this key (a record in another organization is also a 404, never a 403).
  • 429 Rate limit exceeded; wait Retry-After seconds.

List the Microsoft 365 flows

GET/m365/flows

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

  • limitintegerin query

    Page size, 1 to 100 (default 25).

    Min 1. Max 100. Default 25.

  • cursorstringin query

    Opaque continuation token: pass back the nextCursor you were given. Never construct one.

  • organizationIdstringin query

    Client id, to say whether each flow is on for that client.

  • localestringin query

    es-419 for Spanish words; English otherwise.

    One of: en, es-419.

Response 200

  • dataobject[]Required

    The response payload.

  • data[].idstringRequired

    The flow's handle (not a display value).

  • data[].namestringRequired

    Display name.

  • data[].descriptionstring or nullRequired

    What the flow is for, or null.

  • data[].systembooleanRequired

    true for a locked flow the platform provides (change it by making a copy).

  • data[].copiedFromstring or nullRequired

    For a copy: the name of the locked flow it was copied from; otherwise null.

  • data[].startsstringRequired

    when_marked_leaving = starts when a person is marked as leaving; by_hand = a technician starts it.

    One of: when_marked_leaving, by_hand.

  • data[].armedbooleanRequired

    true when the flow is switched on.

  • data[].enabledForClientboolean or nullRequired

    Whether the named client's flow list includes this flow; null when no client was named.

  • data[].stepsobject[]Required

    The steps, in order.

  • data[].steps[].nintegerRequired

    Step number, from 1.

  • data[].steps[].labelstringRequired

    What the step does, in words.

  • data[].steps[].whenstringRequired

    When the step runs, in words (right away, or on day N after the start).

  • data[].steps[].needsstringRequired

    approver = the step waits for a technician to release it; nothing = it runs by itself.

    One of: nothing, approver.

  • data[].steps[].needsWordsstringRequired

    The same as needs, in words.

  • nextCursorstring or nullRequired

    Pass back as cursor for the next page; null on the last page.

Errors (401, 403, 404, 429)
  • 401 Missing 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.
  • 403 The 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).
  • 404 Not found for this key (a record in another organization is also a 404, never a 403).
  • 429 Rate limit exceeded; wait Retry-After seconds.

All API areas →