Stytch · Arazzo Workflow

Stytch Revoke a User's Connected App

Version 1.0.0

List a user's connected apps and revoke the first authorized app's access.

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

Provider

stytch

Workflows

revoke-connected-app
List a user's connected apps and revoke the first one when present.
Reads the Connected Apps a user has authorized and revokes the first app's access only when the list contains at least one entry.
2 steps inputs: user_id outputs: revokeRequestId, revokedConnectedAppId
1
listConnectedApps
List the Connected Apps the user has successfully authorized so the first one can be selected for revocation.
2
revokeApp
Revoke the first authorized Connected App's access for the user.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Stytch Revoke a User's Connected App
  summary: List a user's connected apps and revoke the first authorized app's access.
  description: >-
    A consent-management flow for consumer apps that act as an OAuth identity
    provider. The workflow lists the Connected Apps a user has authorized and
    then branches: when at least one app is present it revokes the first app's
    access, and when the user has authorized no apps it ends without revoking
    anything. 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-user-api-openapi.yml
      confidence: 0.75
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: userApi
  url: ../openapi/stytch-user-api-openapi.yml
  type: openapi
workflows:
- workflowId: revoke-connected-app
  summary: List a user's connected apps and revoke the first one when present.
  description: >-
    Reads the Connected Apps a user has authorized and revokes the first app's
    access only when the list contains at least one entry.
  inputs:
    type: object
    required:
    - user_id
    properties:
      user_id:
        type: string
        description: The id of the user whose connected app access is being managed.
  steps:
  - stepId: listConnectedApps
    description: >-
      List the Connected Apps the user has successfully authorized so the first
      one can be selected for revocation.
    operationId: api_user_v1_ConnectedApps
    parameters:
    - name: user_id
      in: path
      value: $inputs.user_id
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstConnectedAppId: $response.body#/connected_apps/0/connected_app_id
    onSuccess:
    - name: hasConnectedApp
      type: goto
      stepId: revokeApp
      criteria:
      - context: $response.body
        condition: $.connected_apps.length > 0
        type: jsonpath
    - name: noConnectedApps
      type: end
      criteria:
      - context: $response.body
        condition: $.connected_apps.length == 0
        type: jsonpath
  - stepId: revokeApp
    description: >-
      Revoke the first authorized Connected App's access for the user.
    operationId: api_user_v1_Revoke
    parameters:
    - name: user_id
      in: path
      value: $inputs.user_id
    - name: connected_app_id
      in: path
      value: $steps.listConnectedApps.outputs.firstConnectedAppId
    requestBody:
      contentType: application/json
      payload: {}
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      requestId: $response.body#/request_id
  outputs:
    revokedConnectedAppId: $steps.listConnectedApps.outputs.firstConnectedAppId
    revokeRequestId: $steps.revokeApp.outputs.requestId

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-revoke-connected-app-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.