Cross-Provider Workflow

HubSpot Unsubscribe to SendGrid Suppression

Version 1.0.0

Update a HubSpot contact opt-out, then add a SendGrid suppression.

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

Providers Orchestrated

hubspot sendgrid

Workflows

hubspot-optout-to-sendgrid-suppression
Mark a HubSpot contact opted-out, then suppress in SendGrid.
Updates a HubSpot contact to reflect an opt-out, then adds the contact's email to a SendGrid unsubscribe group suppression list.
2 steps inputs: contactId, email, groupId outputs: suppressionStatus, updatedId
1
mark-optout
$sourceDescriptions.hubspotContactsApi.updateContact
Update the HubSpot contact to reflect the opt-out.
2
add-suppression
$sourceDescriptions.sendgridSuppressionsApi.AddSuppressionToAsmGroup
Add the email to a SendGrid unsubscribe group suppression.

Source API Descriptions

Arazzo Workflow Specification

crm-hubspot-unsubscribe-to-sendgrid-suppression-workflow.yml Raw ↑
arazzo: 1.0.1
info:
  title: HubSpot Unsubscribe to SendGrid Suppression
  summary: Update a HubSpot contact opt-out, then add a SendGrid suppression.
  description: >-
    A cross-provider workflow that propagates an opt-out from the HubSpot CRM
    into SendGrid by adding the contact's email to a SendGrid unsubscribe group
    suppression. Demonstrates honoring a CRM-side unsubscribe across the email
    sending platform so the address is suppressed from future group sends.
  version: 1.0.0
sourceDescriptions:
  - name: hubspotContactsApi
    url: https://raw.githubusercontent.com/api-evangelist/hubspot/refs/heads/main/openapi/hubspot-contacts-api-openapi.yml
    type: openapi
  - name: sendgridSuppressionsApi
    url: https://raw.githubusercontent.com/api-evangelist/sendgrid/refs/heads/main/openapi/sendgrid-suppressions-api-openapi.yml
    type: openapi
workflows:
  - workflowId: hubspot-optout-to-sendgrid-suppression
    summary: Mark a HubSpot contact opted-out, then suppress in SendGrid.
    description: >-
      Updates a HubSpot contact to reflect an opt-out, then adds the contact's
      email to a SendGrid unsubscribe group suppression list.
    inputs:
      type: object
      properties:
        contactId:
          type: string
        email:
          type: string
        groupId:
          type: string
    steps:
      - stepId: mark-optout
        description: Update the HubSpot contact to reflect the opt-out.
        operationId: $sourceDescriptions.hubspotContactsApi.updateContact
        parameters:
          - name: contactId
            in: path
            value: $inputs.contactId
        requestBody:
          contentType: application/json
          payload:
            properties:
              hs_marketable_status: false
              email_opt_out: true
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          updatedId: $response.body#/id
      - stepId: add-suppression
        description: Add the email to a SendGrid unsubscribe group suppression.
        operationId: $sourceDescriptions.sendgridSuppressionsApi.AddSuppressionToAsmGroup
        parameters:
          - name: group_id
            in: path
            value: $inputs.groupId
        requestBody:
          contentType: application/json
          payload:
            recipient_emails:
              - $inputs.email
        successCriteria:
          - condition: $statusCode == 201
        outputs:
          suppressionStatus: $statusCode
    outputs:
      updatedId: $steps.mark-optout.outputs.updatedId
      suppressionStatus: $steps.add-suppression.outputs.suppressionStatus

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/crm-hubspot-unsubscribe-to-sendgrid-suppression-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.