PropelAuth · Arazzo Workflow

PropelAuth Upsert User By Email

Version 1.0.0

Look a user up by email and update them if they exist, otherwise create them.

1 workflow 1 source API 1 provider
View Spec View on GitHub AuthenticationIdentityB2BMulti-TenancyAuthorizationRBACSSOSCIMMCPAPIKeysArazzoWorkflows

Provider

propelauth

Workflows

upsert-user-by-email
Upsert a single user keyed by email — update if found, create if missing.
Resolves a user by email and either patches the matched user's profile fields or creates a brand new user when no match is found.
3 steps inputs: backendApiKey, email, firstName, lastName outputs: createdUserId, updatedUserId
1
findUser
Look up the user by email address.
2
updateExisting
Patch the matched user's name fields.
3
createNew
Create a brand new user when no existing user matched the email.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: PropelAuth Upsert User By Email
  summary: Look a user up by email and update them if they exist, otherwise create them.
  description: >-
    A find-then-act flow that keeps user records idempotent. The workflow looks
    up a user by email address and branches: when the user already exists it
    patches their profile, and when no user is found it creates a new one. Each
    step inlines its request, including the Backend Integration API key as a
    bearer token, so the flow reads and runs without the underlying OpenAPI
    description.
  version: 1.0.0
sourceDescriptions:
- name: usersApi
  url: ../openapi/propelauth-users-api-openapi.yml
  type: openapi
workflows:
- workflowId: upsert-user-by-email
  summary: Upsert a single user keyed by email — update if found, create if missing.
  description: >-
    Resolves a user by email and either patches the matched user's profile
    fields or creates a brand new user when no match is found.
  inputs:
    type: object
    required:
    - backendApiKey
    - email
    - firstName
    - lastName
    properties:
      backendApiKey:
        type: string
        description: PropelAuth Backend Integration API key presented as a bearer token.
      email:
        type: string
        description: Email address used to detect an existing user.
      firstName:
        type: string
        description: First name to write to the user record.
      lastName:
        type: string
        description: Last name to write to the user record.
  steps:
  - stepId: findUser
    description: Look up the user by email address.
    operationId: fetchUserByEmail
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.backendApiKey"
    - name: email
      in: query
      value: $inputs.email
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      matchedUserId: $response.body#/user_id
    onSuccess:
    - name: userExists
      type: goto
      stepId: updateExisting
      criteria:
      - context: $response.body
        condition: $.user_id != null
        type: jsonpath
    onFailure:
    - name: userMissing
      type: goto
      stepId: createNew
      criteria:
      - condition: $statusCode == 404
  - stepId: updateExisting
    description: Patch the matched user's name fields.
    operationId: updateUser
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.backendApiKey"
    - name: userId
      in: path
      value: $steps.findUser.outputs.matchedUserId
    requestBody:
      contentType: application/json
      payload:
        first_name: $inputs.firstName
        last_name: $inputs.lastName
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      userId: $steps.findUser.outputs.matchedUserId
    onSuccess:
    - name: done
      type: end
  - stepId: createNew
    description: Create a brand new user when no existing user matched the email.
    operationId: createUser
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.backendApiKey"
    requestBody:
      contentType: application/json
      payload:
        email: $inputs.email
        first_name: $inputs.firstName
        last_name: $inputs.lastName
        email_confirmed: true
        send_email_to_confirm_email_address: false
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      userId: $response.body#/user_id
  outputs:
    updatedUserId: $steps.updateExisting.outputs.userId
    createdUserId: $steps.createNew.outputs.userId

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/propelauth-upsert-user-by-email-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.