← Twilio SendGrid

Delete Blocks with Twilio SendGrid API

Pipedream makes it easy to connect APIs for Twilio SendGrid and 1000+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Delete Blocks with the Twilio SendGrid API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Create a workflow to Delete Blocks with the Twilio SendGrid API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Delete Blocks action
    1. Connect your Twilio SendGrid account
    2. Configure Delete All
    3. Optional- Configure Emails
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Delete Blocks with Twilio SendGrid API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Twilio SendGrid
 
Try it
Delete Blocks with Twilio SendGrid API on New Message from Discord API
Discord + Twilio SendGrid
 
Try it
Delete Blocks with Twilio SendGrid API on New Message In Channels from Slack API
Slack + Twilio SendGrid
 
Try it
Delete Blocks with Twilio SendGrid API on New Message in Channel from Discord Bot API
Discord Bot + Twilio SendGrid
 
Try it
Delete Blocks with Twilio SendGrid API on New Submission from Typeform API
Typeform + Twilio SendGrid
 
Try it

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Delete Blocks on Twilio SendGrid
Description:Allows you to delete all email addresses on your blocks list. [See the docs here](https://docs.sendgrid.com/api-reference/blocks-api/delete-blocks)
Version:0.0.1
Key:sendgrid-delete-blocks

Code

import common from "../common.mjs";

export default {
  ...common,
  key: "sendgrid-delete-blocks",
  name: "Delete Blocks",
  description: "Allows you to delete all email addresses on your blocks list. [See the docs here](https://docs.sendgrid.com/api-reference/blocks-api/delete-blocks)",
  version: "0.0.1",
  type: "action",
  props: {
    ...common.props,
    deleteAll: {
      propDefinition: [
        common.props.sendgrid,
        "deleteAll",
      ],
    },
    emails: {
      propDefinition: [
        common.props.sendgrid,
        "emails",
      ],
    },
  },
  async run({ $ }) {
    if (this.deleteAll && this.emails) {
      throw new Error("Must provide only one of `deleteAll` or `emails` parameters.");
    }
    const resp = await this.sendgrid.deleteBlocks(this.deleteAll, this.emails);
    $.export("$summary", "Successfully deleted blocks");
    return resp;
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
Twilio SendGridsendgridappThis component uses the Twilio SendGrid app.
Delete AlldeleteAllboolean

Indicates if you want to delete all blocked email addresses. This can not be used with the emails parameter.

Emailsemailsstring[]

A string array of the specific blocked email addresses that you want to delete. This can not be used with the deleteAll parameter. Example: ["email1@example.com","email2@example.com"]

Authentication

Twilio SendGrid uses API keys for authentication. When you connect your Twilio SendGrid account, Pipedream securely stores the keys so you can easily authenticate to Twilio SendGrid APIs in both code and no-code steps.

Enter your Sendgrid API key below

About Twilio SendGrid

Delivering your transactional and marketing emails through the world's largest cloud-based email delivery platform. Send with confidence.

More Ways to Use Twilio SendGrid

Triggers

New Contact from the Twilio SendGrid API

Emit new event when a new contact is created

 
Try it
New Events (Instant) from the Twilio SendGrid API

Emit new event when any of the specified SendGrid events is received

 
Try it

Actions

Add Email to Global Suppression with the Twilio SendGrid API

Allows you to add one or more email addresses to the global suppressions group. See the docs here

 
Try it
Add or Update Contact with the Twilio SendGrid API

Adds or updates a contact. See the docs here

 
Try it
Create Contact List with the Twilio SendGrid API

Allows you to create a new contact list. See the docs here

 
Try it
Delete Bounces with the Twilio SendGrid API

Allows you to delete all emails on your bounces list. See the docs here

 
Try it
Delete Contacts with the Twilio SendGrid API

Allows you to delete one or more contacts. See the docs here

 
Try it