{"info":{"_postman_id":"78881d30-5010-4658-9bf1-6e2966c56f73","name":"TeleCRM Custom API","description":"<html><head></head><body><p>Using this api you can push data to telecrm from any sources.</p>\n<h1 id=\"overview\">Overview</h1>\n<p>User need to remember that<br>1. It's an POST request<br>2. Body is of JSON type<br>3. Request must contain phoneNumber with country code.</p>\n<h1 id=\"response-body\">Response Body</h1>\n<p>It must be a json structure which contains two section:</p>\n<h3 id=\"fields\"><strong>fields:</strong></h3>\n<ol>\n<li>It's an object which contain field name and its value.</li>\n<li>Field name are same as you created in your telecrm enterprise.</li>\n<li>Value will be the form value selected or entered by user.</li>\n</ol>\n<p>For eg: You have name,phone,email,course name as your lead fields and you want to populate it accordingly.<br>You fields object will be</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>fields:{\n    \"name\":\"TeleCRM\",\n    \"phone\":\"919999999999\",\n    \"email\":\"support@telecrm.in\",\n    \"Course\": \"Marketing\"\n}\n\n</code></pre><h3 id=\"actions\">actions:</h3>\n<ol>\n<li>This is an array.</li>\n<li>Its recommended to mention: Source, Other data you want to capture</li>\n</ol>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>actions:[\n{\n    \"type\":\"SYSTEM_NOTE\",\n    \"text\":\"Lead Source: Website ${websiteURL}\" // Or any source you want.\n},\n{\n    \"type\":\"SYSTEM_NOTE\",\n    \"text\":\"Message: Any extra data \"\n}\n]\n\n</code></pre><h1 id=\"response\">Response</h1>\n<p><strong>400:</strong> When the data submit to API is not in the proper format as mentioned</p>\n<h3 id=\"200\">200:</h3>\n<ol>\n<li><strong>LEAD_CREATED:</strong> A new lead is created</li>\n<li><strong>LEAD_UPDATED:</strong> A lead is updated</li>\n</ol>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Overview","slug":"overview"},{"content":"Response Body","slug":"response-body"},{"content":"Response","slug":"response"}],"owner":"22802079","collectionId":"78881d30-5010-4658-9bf1-6e2966c56f73","publishedId":"2s8YzNzjF7","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"FFFFFF","highlight":"EF5B25"},"publishDate":"2023-02-20T13:15:23.000Z"},"item":[{"name":"TeleCRM Custom API","id":"e2199edb-1c91-411b-8ebb-705997ba07c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"fields\": {\n        \"name\": \"Telecrm Support\",\n        \"phone\": \"9999999999\",\n        \"email\": \"support@telecrm.in\"\n    },\n    \"actions\": [\n        {\n            \"type\": \"SYSTEM_NOTE\",\n            \"text\": \"Lead Source: Test\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://app.telecrm.in/api/b1/enterprise/${key}/autoupdatelead","description":"<p>Use this api to push data to TeleCRM.</p>\n","urlObject":{"protocol":"https","path":["api","b1","enterprise","${key}","autoupdatelead"],"host":["app","telecrm","in"],"query":[],"variable":[]}},"response":[{"id":"c96fc501-fb87-4d13-aafb-8c15f101436e","name":"TeleCRM Custom API","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"fields\": {\n        \"name\": \"Telecrm Support\",\n        \"phone\": \"917017406742\",\n        \"email\": \"support@telecrm.in\"\n    },\n    \"actions\": [\n        {\n            \"type\": \"SYSTEM_NOTE\",\n            \"text\": \"Lead Source: ${leadSource}\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"https://app.telecrm.in/api/b1/enterprise/${key}/autoupdatelead"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"e2199edb-1c91-411b-8ebb-705997ba07c1"}],"event":[{"listen":"prerequest","script":{"id":"ce7489f1-edba-43c5-8bfc-d9081bd737dc","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"b600eb8c-69cd-4c91-883f-af39b1bd3fd8","type":"text/javascript","exec":[""]}}],"variable":[{"value":"","type":"string"},{"key":"keyid","value":"abc"}]}