Stytch · Arazzo Workflow

Stytch B2B Recovery Codes Get and Rotate

Version 1.0.0

Read a member's MFA recovery codes, then rotate them to a fresh set.

1 workflow 1 source API 1 provider
View Spec View on GitHub AuthenticationIdentityPasswordlessSecurityB2BConnected AppsMCPAI AgentsDeveloper ToolsArazzoWorkflows

Provider

stytch

Workflows

recovery-codes-rotate
Fetch a member's recovery codes, then rotate to a new set.
Reads the member's current MFA recovery codes and rotates them, returning a freshly generated set.
2 steps inputs: member_id, organization_id outputs: currentRecoveryCodes, newRecoveryCodes
1
getRecoveryCodes
Read the member's current set of MFA recovery codes by organization and member id.
2
rotateRecoveryCodes
Rotate the member's recovery codes, retiring the current set and returning a freshly generated set.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Stytch B2B Recovery Codes Get and Rotate
  summary: Read a member's MFA recovery codes, then rotate them to a fresh set.
  description: >-
    A recovery-code management flow for B2B members. The workflow reads a
    member's current set of MFA recovery codes and then rotates them, retiring
    the existing codes and issuing a brand new set the member can store. Every
    step spells out its request inline so the flow can be read and executed
    without opening the underlying OpenAPI description. All calls authenticate
    with HTTP Basic auth using your Stytch project_id as the username and secret
    as the password.
  version: 1.0.0
  x-realizes-capability-ids:
  - BC-620.20
  x-capability-derivation:
    method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
    min_confidence: 0.7
    sources:
    - capability_id: BC-620.20
      capability_name: Identity & Access Management
      spec: stytch-b2b-recovery-codes-api-openapi.yml
      confidence: 0.78
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: b2bRecoveryCodesApi
  url: ../openapi/stytch-b2b-recovery-codes-api-openapi.yml
  type: openapi
workflows:
- workflowId: recovery-codes-rotate
  summary: Fetch a member's recovery codes, then rotate to a new set.
  description: >-
    Reads the member's current MFA recovery codes and rotates them, returning a
    freshly generated set.
  inputs:
    type: object
    required:
    - organization_id
    - member_id
    properties:
      organization_id:
        type: string
        description: The id of the organization the member belongs to.
      member_id:
        type: string
        description: The id of the member whose recovery codes are managed.
  steps:
  - stepId: getRecoveryCodes
    description: >-
      Read the member's current set of MFA recovery codes by organization and
      member id.
    operationId: api_b2b_recovery_codes_v1_Get
    parameters:
    - name: organization_id
      in: path
      value: $inputs.organization_id
    - name: member_id
      in: path
      value: $inputs.member_id
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      currentRecoveryCodes: $response.body#/recovery_codes
  - stepId: rotateRecoveryCodes
    description: >-
      Rotate the member's recovery codes, retiring the current set and returning
      a freshly generated set.
    operationId: api_b2b_recovery_codes_v1_Rotate
    requestBody:
      contentType: application/json
      payload:
        organization_id: $inputs.organization_id
        member_id: $inputs.member_id
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      newRecoveryCodes: $response.body#/recovery_codes
  outputs:
    currentRecoveryCodes: $steps.getRecoveryCodes.outputs.currentRecoveryCodes
    newRecoveryCodes: $steps.rotateRecoveryCodes.outputs.newRecoveryCodes

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/stytch-b2b-recovery-codes-rotate-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.