Cross-Provider Workflow

WhatsApp OTP to SendGrid Confirmation

Version 1.0.0

Send a one-time passcode over WhatsApp, then email a confirmation receipt.

1 workflow 2 source APIs 2 providers
View Spec View on GitHub ArazzoWorkflowsCross-Provider

Providers Orchestrated

whatsapp sendgrid

Workflows

whatsapp-otp-and-email-confirm
Send an OTP over WhatsApp, then email a delivery confirmation.
Sends a one-time passcode message to a user over WhatsApp and, on a successful send, emails a delivery confirmation to the user via SendGrid.
2 steps inputs: passcode, phoneNumberId, userEmail, userNumber outputs: emailStatus, otpMessageId
1
send-otp-whatsapp
$sourceDescriptions.whatsappCloudApi.sendMessage
Send the one-time passcode to the user over WhatsApp.
2
email-confirmation
$sourceDescriptions.sendgridMailApi.SendMail
Email a delivery confirmation to the user via SendGrid.

Source API Descriptions

Arazzo Workflow Specification

msg-whatsapp-otp-to-sendgrid-confirmation.yml Raw ↑
arazzo: 1.0.1
info:
  title: WhatsApp OTP to SendGrid Confirmation
  summary: Send a one-time passcode over WhatsApp, then email a confirmation receipt.
  description: >-
    A cross-provider verification workflow that delivers a one-time passcode to a
    user over the WhatsApp Cloud API and then emails a confirmation receipt of
    the passcode delivery through SendGrid's Mail Send API. Demonstrates a
    multi-channel OTP delivery pattern combining WhatsApp and email in a single
    Arazzo workflow.
  version: 1.0.0
sourceDescriptions:
  - name: whatsappCloudApi
    url: https://raw.githubusercontent.com/api-evangelist/whatsapp/refs/heads/main/openapi/whatsapp-messages-api-openapi.yml
    type: openapi
  - name: sendgridMailApi
    url: https://raw.githubusercontent.com/api-evangelist/sendgrid/refs/heads/main/openapi/sendgrid-mail-send-api-openapi.yml
    type: openapi
workflows:
  - workflowId: whatsapp-otp-and-email-confirm
    summary: Send an OTP over WhatsApp, then email a delivery confirmation.
    description: >-
      Sends a one-time passcode message to a user over WhatsApp and, on a
      successful send, emails a delivery confirmation to the user via SendGrid.
    inputs:
      type: object
      properties:
        phoneNumberId:
          type: string
        userNumber:
          type: string
        passcode:
          type: string
        userEmail:
          type: string
    steps:
      - stepId: send-otp-whatsapp
        description: Send the one-time passcode to the user over WhatsApp.
        operationId: $sourceDescriptions.whatsappCloudApi.sendMessage
        parameters:
          - name: phone-number-id
            in: path
            value: $inputs.phoneNumberId
        requestBody:
          contentType: application/json
          payload:
            messaging_product: whatsapp
            to: $inputs.userNumber
            type: text
            text:
              body: Your verification code is $inputs.passcode
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          otpMessageId: $response.body#/messages/0/id
      - stepId: email-confirmation
        description: Email a delivery confirmation to the user via SendGrid.
        operationId: $sourceDescriptions.sendgridMailApi.SendMail
        requestBody:
          contentType: application/json
          payload:
            personalizations:
              - to:
                  - email: $inputs.userEmail
                subject: Verification code sent
            from:
              email: verify@example.com
            content:
              - type: text/plain
                value: A verification code was just sent to your WhatsApp number.
        successCriteria:
          - condition: $statusCode == 202
        outputs:
          emailStatus: $statusCode
    outputs:
      otpMessageId: $steps.send-otp-whatsapp.outputs.otpMessageId
      emailStatus: $steps.email-confirmation.outputs.emailStatus

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/msg-whatsapp-otp-to-sendgrid-confirmation"
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.