freshsales_list_contact_views
List contact views
List the saved contact views (filters) of the account, e.g. 'My Contacts', 'New Contacts', 'All Contacts'. A view id is needed by freshsales_list_contacts; ids differ per account. GET /contacts/filters.
無需輸入參數。
freshsales_list_contacts
List contacts
List the contacts in a view (get view_id from freshsales_list_contact_views), 25 per page with name, email, phone numbers, job title, lead score, open deals amount and last contacted. Pages: use next_page. GET /contacts/view/{view_id}.
輸入參數pagesortview_id必填sort_type
freshsales_get_contact
Get contact
One contact by id with all its fields, optionally with related records embedded via include (notes, tasks, appointments, deals, sales_accounts, owner, sales_activities...). GET /contacts/{id}.
輸入參數includecontact_id必填
freshsales_search
Search records
Search by name/email text across one record type: contact, sales_account (company), deal or user. Returns id, type, name and email for the matches (up to per_page, default 10). Use the id with the get tools. GET /search.
輸入參數query必填entityper_page
freshsales_lookup
Look up by exact field
Exact-match lookup of contacts, companies or deals by one field, e.g. a contact by email address. field is 'email' (contacts), 'name', or a custom field name (cf_...). Returns the full records. GET /lookup.
輸入參數field必填value必填entity
freshsales_list_account_views
List account views
List the saved account (company) views of the account, e.g. 'My Accounts'. A view id is needed by freshsales_list_accounts. GET /sales_accounts/filters.
無需輸入參數。
freshsales_list_accounts
List accounts
List the accounts (companies) in a view (view_id from freshsales_list_account_views), 25 per page, with name, location, open deals amount and last contacted. GET /sales_accounts/view/{view_id}.
輸入參數pagesortview_id必填sort_type
freshsales_get_account
Get account
One account (company) by id with its fields, optionally with related records embedded (contacts, deals, tasks, appointments, owner...). GET /sales_accounts/{id}.
輸入參數includeaccount_id必填
freshsales_list_deal_views
List deal views
List the saved deal views of the account, e.g. 'Open Deals'. A view id is needed by freshsales_list_deals. GET /deals/filters.
無需輸入參數。
freshsales_list_deals
List deals
List the deals in a view (view_id from freshsales_list_deal_views), 25 per page, with name, amount, expected close, probability and age. GET /deals/view/{view_id}.
輸入參數pagesortview_id必填sort_type
freshsales_get_deal
Get deal
One deal by id with amount, expected close, probability and ids of its stage, pipeline and owner, optionally with related records embedded (contacts, sales_account, deal_stage, owner, notes via sales_activities...). GET /deals/{id}.
輸入參數deal_id必填include
freshsales_list_tasks
List tasks
List tasks by status filter: open, due_today, due_tomorrow, overdue or completed (one filter per call). Returns title, due date, owner and status. GET /tasks.
輸入參數pagefilter
freshsales_get_task
Get task
One task by id. GET /tasks/{id}.
輸入參數task_id必填
freshsales_list_appointments
List appointments
List appointments that are open (upcoming) or complete (one filter per call), with title, time, location and creator. GET /appointments.
輸入參數pagefilter
freshsales_get_appointment
Get appointment
One appointment by id with its attendees. GET /appointments/{id}.
輸入參數appointment_id必填
freshsales_list_sales_activities
List sales activities
List logged sales activities (calls, meetings, emails...) of the account. GET /sales_activities.
輸入參數pageper_page
freshsales_list_owners
List owners (users)
List the users of the account (id and name). Use the id as owner_id when creating or updating records. GET /selector/owners.
無需輸入參數。
freshsales_list_deal_pipelines
List deal pipelines
List the deal pipelines (id, name). GET /selector/deal_pipelines.
無需輸入參數。
freshsales_list_deal_stages
List deal stages
List deal stages (id, name, deal_pipeline_id): those of the default pipeline, or of the pipeline given by pipeline_id. Use the id as deal_stage_id. GET /selector/deal_stages or /selector/deal_pipelines/{id}/deal_stages.
輸入參數pipeline_id
freshsales_list_options
List option values
List the configured choices (id and name) for a field: lead_sources, contact_statuses, lifecycle_stages, deal_types, deal_reasons, deal_products, deal_payment_statuses, territories, currencies, industry_types, business_types, campaigns, sales_activity_types, sales_activity_outcomes. Use the ids in the *_id fields of the write tools. GET /selector/{kind}.
輸入參數kind必填
freshsales_create_contact
Create contact
WRITE: create a contact. Freshsales requires an email or a mobile number. It may create a duplicate of an existing contact: search first (freshsales_lookup by email). POST /contacts.
輸入參數cityemailstateaddresscountryzipcodeowner_idjob_titlelast_namefirst_namework_numbercustom_field另有 5 個
freshsales_update_contact
Update contact
WRITE: change fields of an existing contact; only the fields you pass are changed (passing sales_accounts replaces the associated companies). PUT /contacts/{id}.
輸入參數cityemailstateaddresscountryzipcodeowner_idjob_titlelast_namecontact_id必填first_namework_number另有 6 個
freshsales_create_account
Create account
WRITE: create an account (company). name is required. It may duplicate an existing company: search first (freshsales_search). POST /sales_accounts.
輸入參數cityname必填phonestateaddresscountrywebsitezipcodeowner_idcustom_fieldannual_revenuebusiness_type_id另有 2 個
freshsales_update_account
Update account
WRITE: change fields of an existing account (company); only the fields you pass are changed. PUT /sales_accounts/{id}.
輸入參數citynamephonestateaddresscountrywebsitezipcodeowner_idaccount_id必填custom_fieldannual_revenue另有 3 個
freshsales_create_deal
Create deal
WRITE: create a deal. name, amount and sales_account_id are required; contact_ids attach existing contacts. Stage and pipeline default to the first of the default pipeline. POST /deals.
輸入參數name必填amount必填owner_idcontact_idsprobabilitycustom_fielddeal_type_iddeal_stage_idexpected_closelead_source_iddeal_pipeline_idsales_account_id必填
freshsales_update_deal
Update deal
WRITE: change fields of an existing deal, e.g. move it to another stage (deal_stage_id), change amount or expected close; only the fields you pass are changed. PUT /deals/{id}.
輸入參數nameamountdeal_id必填owner_idprobabilitycustom_fielddeal_type_iddeal_stage_idexpected_closelead_source_idadd_contact_idsdeal_pipeline_id另有 2 個
freshsales_create_note
Add note
WRITE: add a note to a contact, account or deal. Visible to your team on the record. POST /notes.
輸入參數target_id必填description必填target_type必填
freshsales_update_note
Update note
WRITE: replace the text of an existing note. PUT /notes/{id}.
輸入參數note_id必填description必填
freshsales_create_task
Create task
WRITE: create a task (to-do) attached to a contact, account or deal. title, due_date, owner_id and the target are required. POST /tasks.
輸入參數title必填due_date必填owner_id必填target_id必填descriptiontarget_type必填
freshsales_update_task
Update task
WRITE: change a task: title, details, due date, owner, or mark it completed (status 1) or open (status 0). PUT /tasks/{id}.
輸入參數titlestatustask_id必填due_dateowner_iddescription
freshsales_create_appointment
Create appointment
WRITE: create an appointment (meeting) with a start and end, optionally attached to a contact, account or deal and with attendees. Attendees may be notified by Freshsales. POST /appointments.
輸入參數title必填end_date必填locationfrom_date必填target_idtime_zonedescriptiontarget_typeattendee_user_idsattendee_contact_ids