SendGrid · Arazzo Workflow

SendGrid Send Transactional Mail

Version 1.0.0

Send a single transactional email and branch on whether it was accepted.

1 workflow 1 source API 1 provider
View Spec View on GitHub EmailEmail APIMarketing EmailSMTPT1Transactional EmailEmail MarketingDeliverabilityMarketingArazzoWorkflows

Provider

sendgrid

Workflows

send-transactional-mail
Send one transactional email and confirm it was accepted.
Sends a single message with subject and HTML content and branches on the 202 acceptance status.
1 step inputs: apiKey, fromEmail, htmlContent, subject, toEmail outputs: sendStatus
1
sendMail
Send the message. SendGrid accepts a valid send asynchronously and returns a 202 status, which ends the flow.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: SendGrid Send Transactional Mail
  summary: Send a single transactional email and branch on whether it was accepted.
  description: >-
    The simplest and most common SendGrid flow. The workflow sends one
    transactional message through the Mail Send endpoint with an inline subject
    and HTML content body, and branches on the response: SendGrid accepts a
    valid send asynchronously and returns a 202, which ends the flow
    successfully. The request and bearer token are inlined so the message can be
    read and replayed without the OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: mailSendApi
  url: ../openapi/sendgrid-mail-send-api-openapi.yml
  type: openapi
workflows:
- workflowId: send-transactional-mail
  summary: Send one transactional email and confirm it was accepted.
  description: >-
    Sends a single message with subject and HTML content and branches on the
    202 acceptance status.
  inputs:
    type: object
    required:
    - apiKey
    - fromEmail
    - toEmail
    - subject
    - htmlContent
    properties:
      apiKey:
        type: string
        description: SendGrid API key sent as a bearer token.
      fromEmail:
        type: string
        description: The verified sender email address messages are sent from.
      toEmail:
        type: string
        description: The recipient email address.
      subject:
        type: string
        description: The subject line of the email.
      htmlContent:
        type: string
        description: The HTML body content of the email.
  steps:
  - stepId: sendMail
    description: >-
      Send the message. SendGrid accepts a valid send asynchronously and
      returns a 202 status, which ends the flow.
    operationId: SendMail
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.apiKey"
    requestBody:
      contentType: application/json
      payload:
        from:
          email: $inputs.fromEmail
        personalizations:
        - to:
          - email: $inputs.toEmail
        subject: $inputs.subject
        content:
        - type: text/html
          value: $inputs.htmlContent
    successCriteria:
    - condition: $statusCode == 202
    outputs:
      statusCode: $statusCode
    onSuccess:
    - name: accepted
      type: end
      criteria:
      - condition: $statusCode == 202
  outputs:
    sendStatus: $steps.sendMail.outputs.statusCode

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/sendgrid-send-transactional-mail-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.