> For the complete documentation index, see [llms.txt](https://help.nobi.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.nobi.pro/nobi-marketing/api-to-connect-website/guide-for-the-operation-flow-when-calling-api-in-nobita.md).

# Guide for the operation flow when calling API in Nobita

The operation map to call API as below:

![](/files/-Mkj8WQDY0NV0OqX_yeG)

### 1. Call API on Nobita.

Requirements: You must ensure that you have created an authentication key (See instructions on creating an authentication key: HERE)&#x20;

After creating the authentication key, perform Call API with the newly created key, with the website link and UTM code in the section:

&#x20;"queryString":{&#x20;

"link":"<https://yourwebsite.com/link/chien/dich>"

}&#x20;

Go to **Setup** -> **General Settings** -> **Accesstrade** to set up connection information.

**CHèn ẢNh**

### **2.** Create a Marketing campaign with the URL source link containing the UTM code.

To create a campaign with the  URL source link containing the UTM code, go to **Nobi Marketing** -> **Marketing Campaigns** -> **Campaigns** Tab -> **Add Campaign** => Form Add Campaign Display. Here you need to fill in the correct information in the fields.

**\*\*Note: Fill the URL source exactly as URL in API setup.**

**CHèn ảnh**

The purpose of creating a marketing campaign is so that when leads coming in from the website will be assigned to the campaign to report and measure the effectiveness of Marketing, the number of leads, how much revenue from the lead source...

### 3. Set up lead division, create lead tags, and assign tags.

To set up the lead division, please follow these steps:

**Step 1**: Go to **Nobi Sales** -> **Lead Management** -> **Configuration** -> Configure the appropriate lead division according to one of the ways of dividing the lead on the Nobita system.&#x20;

**Step 2:** At Nobisales switch to **Tasks/Results** to set up the tasks for the lead and the results after performing the task.&#x20;

**Step 3:** Sales receive leads, assign tags according to customer status -> From the lead's status on Nobita, the information will be automatically updated to your system.
