← Freshdesk

Create a Contact with Freshdesk API

Pipedream makes it easy to connect APIs for Freshdesk and 900+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Create a Contact with the Freshdesk 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 Create a Contact with the Freshdesk API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Create a Contact action
    1. Connect your Freshdesk account
    2. Configure Name
    3. Optional- Configure Email
    4. Optional- Configure Additional email addresses
    5. Optional- Configure Phone number
    6. Optional- Select a Company ID
  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

Create a Contact with Freshdesk API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Freshdesk
 
Try it
Create a Contact with Freshdesk API on New Message from Discord API
Discord + Freshdesk
 
Try it
Create a Contact with Freshdesk API on New Message In Channels from Slack API
Slack + Freshdesk
 
Try it
Create a Contact with Freshdesk API on New Message in Channel from Discord Bot API
Discord Bot + Freshdesk
 
Try it
Create a Contact with Freshdesk API on New Submission from Typeform API
Typeform + Freshdesk
 
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.

Create a Contact on Freshdesk
Description:Create a contact. [See docs here](https://developers.freshdesk.com/api/#create_contact)
Version:0.0.1
Key:freshdesk-create-contact

Code

import { removeNullEntries } from "../../common/utils.mjs";
import freshdesk from "../../freshdesk.app.mjs";

export default {
  key: "freshdesk-create-contact",
  name: "Create a Contact",
  description: "Create a contact. [See docs here](https://developers.freshdesk.com/api/#create_contact)",
  version: "0.0.1",
  type: "action",
  props: {
    freshdesk,
    name: {
      type: "string",
      label: "Name",
      description: "Name of the contact.",
    },
    email: {
      type: "string",
      label: "Email",
      description: "Primary email address of the contact. If you want to associate additional email(s) with this contact, use the other_emails attribute.",
      optional: true,
    },
    otherEmails: {
      type: "string[]",
      label: "Additional email addresses",
      description: "String array of additional email addresses.",
      optional: true,
    },
    phone: {
      type: "string",
      label: "Phone number",
      description: "Telephone number of the contact.",
      optional: true,
    },
    companyId: {
      propDefinition: [
        freshdesk,
        "companyId",
      ],
      optional: true,
    },
  },
  async run({ $ }) {
    const data = removeNullEntries({
      name: this.name,
      email: this.email,
      other_emails: this.otherEmails,
      phone: this.phone,
      company_id: this.companyId && Number(this.companyId),
    });
    const response = await this.freshdesk.createContact({
      $,
      data,
    });
    response && $.export("$summary", "Contact successfully created");
    return response;
  },
};

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
FreshdeskfreshdeskappThis component uses the Freshdesk app.
Namenamestring

Name of the contact.

Emailemailstring

Primary email address of the contact. If you want to associate additional email(s) with this contact, use the other_emails attribute.

Additional email addressesotherEmailsstring[]

String array of additional email addresses.

Phone numberphonestring

Telephone number of the contact.

Company IDcompanyIdintegerSelect a value from the drop down menu.

Authentication

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

Your API key is in your Profile > Settings page, below the change password section on the right.
Your domain is 12345678 if your Freshdesk URL is https://12345678.freshdesk.com/

About Freshdesk

Customer support software

More Ways to Use Freshdesk

Triggers

New Contact from the Freshdesk API

Emit new notifications when a new contact is created

 
Try it
New Ticket from the Freshdesk API

Emit new notifications when a new ticket is created

 
Try it

Actions

Create a Company with the Freshdesk API

Create a company. See docs here

 
Try it
Create a Ticket with the Freshdesk API

Create a ticket. See docs here

 
Try it
Get Ticket Details with the Freshdesk API

Get a Ticket. See docs here

 
Try it
List All Tickets with the Freshdesk API

Use filters to view only specific tickets (those which match the criteria that you choose). By default, only tickets that have not been deleted or marked as spam will be returned, unless you use the 'deleted' filter.

 
Try it