Navigate to:
1. Introduction
2. Integration
3. Verification
1. Introduction
Welcome to the official documentation for ANAROCK Portal API!
You can use this set of APIs for pushing leads to the host (passed with request object) database.
2. Integration
Commonfloor will be going to share the following details with the ANAROCK CRM SPOC
- project_name
- project_id
ANAROCK CRM SPOC will provide the api_key & parameters for the integration.
Route:
https://marketing.anarock.com/api/v0/:channel/push-lead?api_key=:api_key
POST request
Body :
{ "api_key": "Your Key here", // Provided by the Anarock Team or Support@anarock.com "channel": "portal name" // Please select from below table "name": "Rahil Shah", "email": "support@anarock.com", "phone": "8097974250", "country_code": "91", "project_name": "Adani Western Heights", "project_id": "59679995", "city": "Mumbai", "locality": "Jawahar Nagar", "min_budget": 10000000, "max_budget": 11000000, "remarks": "This user is looking for 3 BHK Multistorey Apartment for Sale in Goregaon West, Mumbai and has viewed your contact details.", }
Channel Details:
ID | Portals | Channels |
1 | Commonfloor | common-floor |
Params:
Param | Type | Sample Value | Mandatory | Description |
api_key | String | 1mLD91P5cj0r1wUGrB0Wi67xRx6QpYkN_uEBJU4c9qeY | True | Separate API Key for different clients and projects provided by anarock team |
channel | String | common-floor | True | Source of inquiry |
phone | String | 8097974245 | True | Phone Number of the person inquiring. Can be with or without country_code. If without country_code in phone then need to provide country_code |
country_code | String | 91 | True | Phone Number country code |
name | String | Rahil Shah | Lead/Client Name | |
String | support@anarock.com | Email of the person inquiring | ||
project_name | String | Adani Western Heights | Listing project name | |
project_id | String | 59679995 | Listing project id | |
city | String | Mumbai | City of the inquiry | |
locality | String | Jawahar Nagar | Locality of the inquiry | |
min_budget | Integer | 10000000 | Minimum budget of the person inquiring | |
max_budget | Integer | 15000000 | Maximum budget of the person inquiring | |
remarks | String | This user is looking for 3 BHK Multistorey Apartment for Sale in Goregaon West, Mumbai and has viewed your contact details. | Comments/Messages of the user if any |
Response:
3. Integration Verification
Integration needs to be verified with the below cURL once it is completed for the respective client.
I. Open the Command Line Prompt (Windows OS).
- Click on the search option in the search window.
- Type ‘command line prompt & hit enter.
- Command Prompt will open as shown in the below screenshot.
II. In the cURL mentioned below, update the api_key in the URL section of cURL.
III. Copy the updated cURL & paste it to the Command Line prompt and hit enter.
Commonfloor cURL
curl --location --request POST 'https://marketing.anarock.com/api/v0/common-floor/push-lead?api_key=your_API_Key' \ --header 'Content-Type: application/json' \ --data-raw '{ "name": "Rahil Shah", "email": "rahil.shah1@anarock.com", "country_code": "91", "phone": "8097974258", "project_name": "Adani Western Heights", "project_id": "59679995", "city": "Mumbai", "locality": "Jawahar Nagar", "min_budget": 10000000, "max_budget": 11000000, "remarks": "This user is looking for 3 BHK Multistorey Apartment for Sale in Goregaon West, Mumbai and has viewed your contact details." }'
IV. Check the message whether the integration is a success or a failure.
V. If the response fails, verify the reasons below.
Failure Reasons: - Invalid api_key: Check whether the Google Sheet ID is correct and is added to both the Master Sheet and the client’s URL you created. - Something went wrong: Check if the Google Sheet ID is correct and editor access is given to the email present in the document. - Failed adding lead to the system: Check the default campaign, tenant, and apikey on the Google master sheet. - Successfully added lead to the system: Everything is correct and good to go. |
VI. If the response succeeds, check the lead in the system.
For any support on our products, please reach out to support@anarock.com
For any feedback, please reach out to tech-feedback@anarock.com
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article