Stytch · Arazzo Workflow

Stytch B2B Create Organization and Invite Member

Version 1.0.0

Create a B2B organization and email a magic link invite to a new member.

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

Provider

stytch

Workflows

create-org-invite-member
Create an organization, then email a magic link invite to a member.
Provisions a B2B organization and dispatches an email magic link invite that attaches the invited member to that organization.
2 steps inputs: email_address, invite_redirect_url, organization_name, organization_slug outputs: memberId, organizationId
1
createOrganization
Create a new B2B organization, returning the organization object whose id is used to scope the invite.
2
inviteMember
Send an email magic link invite to the prospective member, attaching them to the newly created organization.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Stytch B2B Create Organization and Invite Member
  summary: Create a B2B organization and email a magic link invite to a new member.
  description: >-
    A tenant bootstrap flow for B2B apps. The workflow creates a new
    organization and then sends an email magic link invite to a prospective
    member, attaching them to the freshly created organization so they can join
    by clicking through. 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-magic-links-api-openapi.yml
      confidence: 0.85
    model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: b2bMagicLinksApi
  url: ../openapi/stytch-b2b-magic-links-api-openapi.yml
  type: openapi
- name: organizationApi
  url: ../openapi/stytch-organization-api-openapi.yml
  type: openapi
workflows:
- workflowId: create-org-invite-member
  summary: Create an organization, then email a magic link invite to a member.
  description: >-
    Provisions a B2B organization and dispatches an email magic link invite that
    attaches the invited member to that organization.
  inputs:
    type: object
    required:
    - organization_name
    - email_address
    - invite_redirect_url
    properties:
      organization_name:
        type: string
        description: The human-readable name of the organization to create.
      organization_slug:
        type: string
        description: Optional unique slug for the organization.
      email_address:
        type: string
        description: The email address of the member to invite.
      invite_redirect_url:
        type: string
        description: The URL the invited member is redirected to after clicking the invite.
  steps:
  - stepId: createOrganization
    description: >-
      Create a new B2B organization, returning the organization object whose id
      is used to scope the invite.
    operationId: api_organization_v1_Create
    requestBody:
      contentType: application/json
      payload:
        organization_name: $inputs.organization_name
        organization_slug: $inputs.organization_slug
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      organizationId: $response.body#/organization/organization_id
  - stepId: inviteMember
    description: >-
      Send an email magic link invite to the prospective member, attaching them
      to the newly created organization.
    operationId: api_b2b_magic_v1_b2b_magic_links_email_Invite
    requestBody:
      contentType: application/json
      payload:
        organization_id: $steps.createOrganization.outputs.organizationId
        email_address: $inputs.email_address
        invite_redirect_url: $inputs.invite_redirect_url
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      memberId: $response.body#/member_id
  outputs:
    organizationId: $steps.createOrganization.outputs.organizationId
    memberId: $steps.inviteMember.outputs.memberId

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-create-org-invite-member-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.