Skip to content
Mango9

Contacts API

Bring enquiries into Mango9 and keep contact details, notes and sales progress connected to your other tools.

In the CRM: Settings → Developer APIs → Contacts API

Keep the lead record connected

Use Contacts API when a website, advertising integration or another business system needs to pass customer details into Mango9. It can also read contacts, add notes and update their sales status.

For a marketing business, this means the phone number, enquiry details and campaign source can reach the team together. The agent can continue the conversation with useful context instead of retyping information from an email.

Get Contacts reads a page of records. Enter the saved API secret; the screenshot uses a placeholder. Select the image to enlarge it.

Match the action to the record

Match the action to the record
TaskEndpointWhat it does
Read contactsGET /api/contacts/getFilter by search or group_id and use page and limit. Maximum 100 contacts per page.
Read one contactGET /api/contacts/viewUse contact_id to read details, custom fields and notes.
Read setup listsGET /api/contacts/groups, /fields or /statusesFind the group IDs, field names and available sales statuses for the account.
Create / edit / removePOST /api/contacts/create, /update or /deleteCreate a record or act on the supplied contact_id.
Read / add notesGET or POST /api/contacts/notesRead notes or add a note for contact_id. POST /api/contacts/notes/delete removes a note by note_id.
Read / change statusGET or POST /api/contacts/statusRead or update the status for contact_id.

Send the useful enquiry details

Send the useful enquiry details
FieldWhat to provide
keyThe saved API secret belonging to this Mango9 account.
contactThe phone number, including its country code. Keep its format consistent across submissions.
name or first_name / last_nameThe person’s name; email can be supplied separately.
address, city, state, zip, countryLocation details collected by the enquiry form.
group_idAn existing group to organize the contact.
campaign_idThe intended lead campaign. A new contact with this value is submitted to that campaign’s routing rules.
source, note, lead_statusWhere the enquiry came from, useful context and its starting sales status.
Custom fieldsUse the account’s exact field_name values returned by /fields. Create the custom field in Mango9 before mapping data to it.

Try a controlled contact submission

Example details use a reserved test number and example.com email. No contact was submitted during the guide review. Select the image to enlarge it.
  1. Review the account’s lead-created workflows and the intended campaign routing before testing. Creating a contact can trigger those actions.
  2. Open Create Contact, paste the saved API key and enter your test contact’s phone number.
  3. Add the name, email and an existing Group ID if needed.
  4. Select Create Contact only when ready to save the test record.
  5. Retain the returned contact_id and find the record in Lead Fusion → Contacts. Confirm its fields and intended follow-up.

Handle an existing lead properly

The create endpoint returns err 97 when the same stored phone number already exists for the account. Find the existing contact and update it by contact_id instead of repeatedly creating it.

Creation accepts form fields or JSON. Successful responses use err 00 with data; missing and invalid keys use 01 and 02. Check the response body even when the HTTP status is 200.

Store the returned contact ID in your integration. This lets later notes, booking updates and sales-status changes stay attached to the correct person. Use a consistent phone format to reduce duplicate records.

Use it in a marketing campaign

A roofing enquiry can arrive with the postcode, project type and source form. A configured workflow can alert the team, arrange follow-up or start the next step. When campaign_id is included, the lead-routing engine applies the chosen campaign’s routing rules.

For a lead-selling business, prepare the buyers, campaign rules and delivery preferences before connecting the source. Creating the record successfully does not itself prove that a buyer accepted it; review campaign delivery and activity.