← HTTP / Webhook + Salesflare integrations

Add Contact To Account with Salesflare API on New Requests from HTTP / Webhook API

Pipedream makes it easy to connect APIs for Salesflare, HTTP / Webhook and 1400+ other apps remarkably fast.

Trigger workflow on
New Requests from the HTTP / Webhook API
Next, do this
Add Contact To Account with the Salesflare API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜

Trusted by 500,000+ developers from startups to Fortune 500 companies

Adyen logo
Brex logo
Carta logo
Checkr logo
Chameleon logo
DevRev logo
LinkedIn logo
Netflix logo
New Relic logo
OnDeck logo
Replicated logo
Scale AI logo
Teamwork logo
Warner Bros. logo
Xendit logo

Developers Pipedream

Getting Started

This integration creates a workflow with a HTTP / Webhook trigger and Salesflare action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Requests trigger
    1. Optional- Configure Body Only
    2. Optional- Configure Response Status Code
    3. Optional- Configure Response Content-Type
    4. Optional- Configure Response Body
    5. Connect your HTTP / Webhook account
  3. Configure the Add Contact To Account action
    1. Connect your Salesflare account
    2. Select a Account ID
    3. Select one or more Contact IDs
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, source-available components from Pipedream's GitHub repo. These components are 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.

Trigger

Description:Get a URL and emit the full HTTP event on every request (including headers and query parameters). You can also configure the HTTP response code, body, and more.
Version:0.1.1
Key:http-new-requests

Trigger Code

import http from "../../http.app.mjs";

// Core HTTP component
export default {
  key: "http-new-requests",
  name: "New Requests",
  description: "Get a URL and emit the full HTTP event on every request (including headers and query parameters). You can also configure the HTTP response code, body, and more.",
  version: "0.1.1",
  type: "source",
  props: {
    httpInterface: {
      type: "$.interface.http",
      customResponse: true,
    },
    emitBodyOnly: {
      type: "boolean",
      label: "Body Only",
      description: "This source emits an event representing the full HTTP request by default. Select `true` to emit the body only.",
      optional: true,
      default: false,
    },
    resStatusCode: {
      type: "string",
      label: "Response Status Code",
      description: "The status code to return in the HTTP response",
      optional: true,
      default: "200",
    },
    resContentType: {
      type: "string",
      label: "Response Content-Type",
      description: "The `Content-Type` of the body returned in the HTTP response",
      optional: true,
      default: "application/json",
    },
    resBody: {
      type: "string",
      label: "Response Body",
      description: "The body to return in the HTTP response",
      optional: true,
      default: "{ \"success\": true }",
    },
    http,
  },
  async run(event) {
    const summary = `${event.method} ${event.path}`;

    this.httpInterface.respond({
      status: this.resStatusCode,
      body: this.resBody,
      headers: {
        "content-type": this.resContentType,
      },
    });

    if (this.emitBodyOnly) {
      this.$emit(event.body, {
        summary,
      });
    } else {
      this.$emit(event, {
        summary,
      });
    }
  },
};

Trigger 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
N/AhttpInterface$.interface.httpThis component uses $.interface.http to generate a unique URL when the component is first instantiated. Each request to the URL will trigger the run() method of the component.
Body OnlyemitBodyOnlyboolean

This source emits an event representing the full HTTP request by default. Select true to emit the body only.

Response Status CoderesStatusCodestring

The status code to return in the HTTP response

Response Content-TyperesContentTypestring

The Content-Type of the body returned in the HTTP response

Response BodyresBodystring

The body to return in the HTTP response

HTTP / WebhookhttpappThis component uses the HTTP / Webhook app.

Trigger Authentication

The HTTP / Webhook API does not require authentication.

About HTTP / Webhook

Get a unique URL where you can send HTTP or webhook requests

Action

Description:Adds a contact to an account [See the docs here](https://api.salesflare.com/docs#operation/postAccountsAccount_idContacts)
Version:0.0.1
Key:salesflare-add-contact-to-account

Salesflare Overview

The Salesflare API provides powerful tools for businesses to maximize their
customer experience. It offers a range of features that allow you to create
custom integrations and automated processes to help you make the most of your
customer data. Here are just a few examples of what you can build:

  • Automated customer data enrichments that continuously keep customer profiles
    up to date
  • Automated task and reminder systems to keep your teams on track
  • Custom in-app notifications to quickly alert customers to new deals and
    offers
  • Integrate Salesflare with your existing 3rd-party services to streamline
    workflows
  • Build custom customer segmentation systems
  • Automatically generate customer insights and trends
  • Connect customer data across all sources to provide a 360 view
  • Utilize machine learning to predict customer behavior and trends
  • Model customer lifetime value
  • Custom reporting to measure success
  • Automated surveys and customer feedback loops
  • Export customer data to any 3rd-party service.

Action Code

import app from "../../salesflare.app.mjs";

export default {
  key: "salesflare-add-contact-to-account",
  version: "0.0.1",
  type: "action",
  name: "Add Contact To Account",
  description: "Adds a contact to an account [See the docs here](https://api.salesflare.com/docs#operation/postAccountsAccount_idContacts)",
  props: {
    app,
    accountId: {
      propDefinition: [
        app,
        "accountIds",
      ],
      type: "integer",
      label: "Account ID",
      description: "Account ID",
      optional: false,
    },
    contactIds: {
      propDefinition: [
        app,
        "contactId",
      ],
      type: "integer[]",
      label: "Contact IDs",
      description: "Contact IDs",
    },
  },
  async run ({ $ }) {
    const resp = await this.app.addContactsToAccount({
      $,
      accountId: this.accountId,
      data: this.contactIds.map(( id ) => ({
        id,
      })),
    });
    $.export("$summary", "Contact(s) has been added to the account successfully.");
    return resp;
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
SalesflareappappThis component uses the Salesflare app.
Account IDaccountIdintegerSelect a value from the drop down menu.
Contact IDscontactIdsinteger[]Select a value from the drop down menu.

Action Authentication

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

You can make an API key in "Settings" > "API keys", and click on the large orange "+" button on the bottom right of the screen to create an API key.

About Salesflare

Salesflare is an intelligent CRM startups and small businesses love to use. It's a zero-input sales pipeline tool that thinks and works for its user, not the other way around.

More Ways to Connect Salesflare + HTTP / Webhook

Add Contact To Account with Salesflare API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Salesflare
 
Try it
Add Contact To Account with Salesflare API on New event when the content of the URL changes. from HTTP / Webhook API
HTTP / Webhook + Salesflare
 
Try it
Add User To Account with Salesflare API on New Requests from HTTP / Webhook API
HTTP / Webhook + Salesflare
 
Try it
Add User To Account with Salesflare API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Salesflare
 
Try it
Add User To Account with Salesflare API on New event when the content of the URL changes. from HTTP / Webhook API
HTTP / Webhook + Salesflare
 
Try it
New Requests from the HTTP / Webhook API

Get a URL and emit the full HTTP event on every request (including headers and query parameters). You can also configure the HTTP response code, body, and more.

 
Try it
New Requests (Payload Only) from the HTTP / Webhook API

Get a URL and emit the HTTP body as an event on every request

 
Try it
New event when the content of the URL changes. from the HTTP / Webhook API

Emit new event when the content of the URL changes.

 
Try it
New Account Event from the Salesflare API

Emit new events when new accounts are created. See the docs

 
Try it
New Contact Event from the Salesflare API

Emit new events when new contacts are created. See the docs

 
Try it
Send any HTTP Request with the HTTP / Webhook API

Send an HTTP request using any method and URL. Optionally configure query string parameters, headers, and basic auth.

 
Try it
Send GET Request with the HTTP / Webhook API

Send an HTTP GET request to any URL. Optionally configure query string parameters, headers and basic auth.

 
Try it
Send POST Request with the HTTP / Webhook API

Send an HTTP POST request to any URL. Optionally configure query string parameters, headers and basic auth.

 
Try it
Send PUT Request with the HTTP / Webhook API

Send an HTTP PUT request to any URL. Optionally configure query string parameters, headers and basic auth.

 
Try it
Return HTTP Response with the HTTP / Webhook API

Use with an HTTP trigger that uses "Return a custom response from your workflow" as its HTTP Response

 
Try it

Explore Other Apps

1
-
12
of
1400+
apps by most popular

HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Beta
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Beta
Data Stores
Data Stores
Use Pipedream Data Stores to manage state throughout your workflows.
Telegram Bot
Telegram Bot
Telegram is a cloud-based instant messaging and voice over IP service
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular apps like ChatGPT and DALL·E 2.
Google Sheets
Google Sheets
With Google Sheets, you can create, edit, and collaborate wherever you are
Discord
Discord
Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
GitHub
GitHub
Where the world builds software. Millions of developers and companies build, ship, and maintain their software on GitHub—the largest and most advanced development platform in the world.
Formatting
Formatting
Pre-built actions to make formatting and manipulating data within your workflows easier.
Slack
Slack
Slack is a channel-based messaging platform. With Slack, people can work together more effectively, connect all their software tools and services, and find the information they need to do their best work — all within a secure, enterprise-grade environment.