ByteChef LogoByteChef

Freshsales

Freshsales is a customer relationship management (CRM) software designed to help businesses streamline sales processes and manage customer interactions effectively.

Categories: CRM

Type: freshsales/v1


Connections

Version: 1

API Key

Properties

NameLabelTypeDescriptionRequired
usernameBundle aliasSTRINGYour Freshsales bundle alias (e.g. https://<alias>.myfreshworks.com).true
keyAPI KeySTRINGThe API Key supplied by Freshsales.true

Connection Setup

  1. Login in to your Freshsales account and click your profile picture in the top right corner.
  2. Select Personal Settings.
  3. Go to the API tab.
  4. Copy your API Key.

Actions

Create Account

Name: createAccount

Creates a new account.

Properties

NameLabelTypeDescriptionRequired
nameNameSTRINGName of the account.true
websiteWebsiteSTRINGWebsite of the account.false
phonePhoneSTRINGPhone number of the account.false

Example JSON Structure

{
  "label" : "Create Account",
  "name" : "createAccount",
  "parameters" : {
    "name" : "",
    "website" : "",
    "phone" : ""
  },
  "type" : "freshsales/v1/createAccount"
}

Output

Type: OBJECT

Properties

NameTypeDescription
sales_accountOBJECT
Properties {NUMBER(id), STRING(name), STRING(website), STRING(phone)}

Output Example

{
  "sales_account" : {
    "id" : 0.0,
    "name" : "",
    "website" : "",
    "phone" : ""
  }
}

Create Contact

Name: createContact

Add new contact in Freshsales CRM.

Properties

NameLabelTypeDescriptionRequired
first_nameFirst NameSTRINGFirst name of the contact.false
last_nameLast NameSTRINGLast name of the contact.false
job_titleJob TitleSTRINGDesignation of the contact in the account they belong to.false
emailEmailSTRINGPrimary email address of the contact.true
work_numberWork NumberSTRINGWork phone number of the contact.false
mobile_numberMobile NumberSTRINGMobile phone number of the contact.false
addressAddressSTRINGAddress of the contact.false
cityCitySTRINGCity that the contact belongs to.false
stateStateSTRINGState that the contact belongs to.false
zipcodeZip CodeSTRINGZipcode of the region that the contact belongs to.false
countryCountrySTRINGCountry that the contact belongs to.false
mediumMediumSTRINGThe medium that led your contact to your website/web ap.pfalse
facebookFacebookSTRINGFacebook username of the contact.false
twitterTwitterSTRINGTwitter username of the contact.false
linkedinLinkedInSTRINGLinkedIn account of the contact.false

Example JSON Structure

{
  "label" : "Create Contact",
  "name" : "createContact",
  "parameters" : {
    "first_name" : "",
    "last_name" : "",
    "job_title" : "",
    "email" : "",
    "work_number" : "",
    "mobile_number" : "",
    "address" : "",
    "city" : "",
    "state" : "",
    "zipcode" : "",
    "country" : "",
    "medium" : "",
    "facebook" : "",
    "twitter" : "",
    "linkedin" : ""
  },
  "type" : "freshsales/v1/createContact"
}

Output

Type: OBJECT

Properties

NameTypeDescription
contactOBJECT
Properties {NUMBER(id), STRING(first_name), STRING(last_name), STRING(job_title), STRING(city), STRING(state), STRING(zipcode), STRING(country), STRING(email), STRING(work_number), STRING(mobile_number), STRING(address), STRING(medium), STRING(facebook), STRING(twitter), STRING(linkedin)}

Output Example

{
  "contact" : {
    "id" : 0.0,
    "first_name" : "",
    "last_name" : "",
    "job_title" : "",
    "city" : "",
    "state" : "",
    "zipcode" : "",
    "country" : "",
    "email" : "",
    "work_number" : "",
    "mobile_number" : "",
    "address" : "",
    "medium" : "",
    "facebook" : "",
    "twitter" : "",
    "linkedin" : ""
  }
}

Create Lead

Name: createLead

Creates a new lead.

Properties

NameLabelTypeDescriptionRequired
first_nameFirst NameSTRINGFirst name of the lead.false
last_nameLast NameSTRINGLast name of the lead.false
emailEmailSTRINGPrimary email address of the lead.true

Example JSON Structure

{
  "label" : "Create Lead",
  "name" : "createLead",
  "parameters" : {
    "first_name" : "",
    "last_name" : "",
    "email" : ""
  },
  "type" : "freshsales/v1/createLead"
}

Output

Type: OBJECT

Properties

NameTypeDescription
leadOBJECT
Properties {NUMBER(id), STRING(email), STRING(first_name), STRING(last_name)}

Output Example

{
  "lead" : {
    "id" : 0.0,
    "email" : "",
    "first_name" : "",
    "last_name" : ""
  }
}

What to do if your action is not listed here?

If this component doesn't have the action you need, you can use Custom Action to create your own. Custom Actions empower you to define HTTP requests tailored to your specific requirements, allowing for greater flexibility in integrating with external services or APIs.

To create a Custom Action, simply specify the desired HTTP method, path, and any necessary parameters. This way, you can extend the functionality of your component beyond the predefined actions, ensuring that you can meet all your integration needs effectively.

How is this guide?

Last updated on

On this page