How to get real-time API from the browser when a contact is created?

Updated on January 15, 2020 08:16PM by Admin

API (Application Program Interface) has always been a front-runner when it comes to managing the work efficiently. The information becomes more flexible using API.

You can get real-time API when a contact is created. You can use the params(attribute information) to fill out the contact details and get it added as a contact in Apptivo without logging into Apptivo.

  • Go to Contacts App → select Create to create a new contact → Add the required information and select Create.
  • Once the contact is created, open the Inspect tab.
Inspect Tab

  • In the Inspect tab, navigate to contacts?a=save. You will see the information related to it in the Headers section of the Inspect tab.
  • In the Headers tab, you can get the API for creating a contact from the Request URL.
Header Section

  • You can get the information related to the attributes i.e params from Form Data → Contact Data of the Headers section.
Form Data

  • Once the required data from the Contacts app is acquired, it is mandatory to fetch the API Access key.
  • Go to the Business Settings section from the User Guide and navigate to API Access.
API Access

  • Here, you can get the API Key and Access Key.
  • Now, the necessary data is available. Develop the necessary coding and run it in your browser with changed values for the attributes.
Run in Browser

  • Contact will be created automatically in the Contacts App.
Contact Created

Bad Practices

  • Running the code in the browser with any misspelled words or missing terms will result in an error.
Status:failure

  • The code runs in the browser only if the browser has software to support the code like the JSON view or else you will see the code in the browser rather than the output.
Code in the Browser