Docs home

Contact Us

Sends a "contact us" enquiry from your website to your institute. It emails the details to your institute's support address and sends an acknowledgement email to the person who enquired. Use it behind a contact form on your own site.

POST/contactus
Contact Us
curl --request POST \
  --url 'https://<your-api-host>/nuSource/api/v1/contactus' \
  --form 'JSONString={"first_name":" Hemal","last_name":"Buha","email":"hemal@edmingle.com","message":"Enquiry ForCourse","contact_number":"7567786787","contact_number_dial_code":"+91","contact_number_country_id":"103","institute_id":<institutionId>,"add_db":1}'
{
  "message": "Thank you for contacting us we will revert you shortly",
  "code": 200
}

Access: Public, no API key needed. If a logged-in user calls it, their own email and phone number are used instead of the ones sent.

Request body: form-data with one field, JSONString, containing this JSON:

BodyJSONString
first_namestringrequired
Name of the person enquiring.
last_namestring
Last name.
emailstring
Email. The acknowledgement email goes here.
Mobile number, without the country code. Must be valid for the country.
Country of the mobile number. Defaults to India.
messagestring
The enquiry text.
countrystring
Country name.
Saved with the lead when add_db is 1.
add_dbinteger
1 also saves the enquiry as a lead in your Leads list. Default 0 (email only).
sourceinteger
Lead source when saved: 1 Website (default), 2 JustDial.
lead_dateUnix timestamp
Lead date when saved. Default now.
Response200application/json
messagestring
Example: Thank you for contacting us we will revert you shortly
codeinteger
Example: 200

Notes: The institute is worked out from the API host you call. Fails with "Please enter valid mobile number." for an invalid number. Rate limit: 5 requests per minute; going over locks you out for 30 minutes.

Updated yesterday

Ask AI