Stytch · Arazzo Workflow

Stytch User Create, Search, and Delete

Version 1.0.0

Create a user, find them again by email search, then delete the matched user.

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

Provider

stytch

Workflows

user-create-search-delete
Provision a user, locate them by email search, and delete the match.
Creates a user, runs a user search filtered by email address, and deletes the user only when the search confirms a matching record.
3 steps inputs: email outputs: createdUserId, deleteRequestId, matchedUserId
1
createUser
Add a new user to Stytch under the supplied email, returning the user_id.
2
searchUser
Search the user store for an account whose email matches the supplied address, confirming the record was created.
3
deleteUser
Delete the matched user by user_id to clean up the account.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Stytch User Create, Search, and Delete
  summary: Create a user, find them again by email search, then delete the matched user.
  description: >-
    A user lifecycle management flow for consumer apps. The workflow creates a
    user, searches the user store by email to confirm the record exists, and
    then branches: when the search returns a match it deletes the matched user,
    and when no match is found it ends without deleting 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: user-create-search-delete
  summary: Provision a user, locate them by email search, and delete the match.
  description: >-
    Creates a user, runs a user search filtered by email address, and deletes
    the user only when the search confirms a matching record.
  inputs:
    type: object
    required:
    - email
    properties:
      email:
        type: string
        description: The email address to create and then search/delete the user by.
  steps:
  - stepId: createUser
    description: >-
      Add a new user to Stytch under the supplied email, returning the user_id.
    operationId: api_user_v1_Create
    requestBody:
      contentType: application/json
      payload:
        email: $inputs.email
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      userId: $response.body#/user_id
  - stepId: searchUser
    description: >-
      Search the user store for an account whose email matches the supplied
      address, confirming the record was created.
    operationId: api_user_v1_Search
    requestBody:
      contentType: application/json
      payload:
        limit: 1
        query:
          operator: AND
          operands:
          - filter_name: email_address
            filter_value:
            - $inputs.email
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      matchedUserId: $response.body#/results/0/user_id
    onSuccess:
    - name: userFound
      type: goto
      stepId: deleteUser
      criteria:
      - context: $response.body
        condition: $.results.length > 0
        type: jsonpath
    - name: userMissing
      type: end
      criteria:
      - context: $response.body
        condition: $.results.length == 0
        type: jsonpath
  - stepId: deleteUser
    description: >-
      Delete the matched user by user_id to clean up the account.
    operationId: api_user_v1_Delete
    parameters:
    - name: user_id
      in: path
      value: $steps.searchUser.outputs.matchedUserId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      requestId: $response.body#/request_id
  outputs:
    createdUserId: $steps.createUser.outputs.userId
    matchedUserId: $steps.searchUser.outputs.matchedUserId
    deleteRequestId: $steps.deleteUser.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-user-create-search-delete-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.