# API - Chamada API para atualizar as UTMs do Lead

Se você está trazendo seus Leads de outro sistema, ainda não é possível trazer junto nas importações de planilha, as UTM's que esses Leads tenham, orindos de outros sistemas.

Mas é possível trazer essas UTM's via API. Use a chamada a seguir

## Atualizar Tags UTM do Lead

<mark style="color:green;">`PUT`</mark> `/leads/utm/XXXX?i=instancia`

XXX = ID do Lead

Endpoint completo: <https://sprinthub-api-master.sprinthub.app/leads/utm/XXXX?i=instancia>

OBS: Cada chamada será adicionada uma nova linha na tab Tags UTM do Lead.

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |
| apitoken      | XXXXXX             |

**Body**

<table><thead><tr><th>Name</th><th width="206">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>utm_campaign</code></td><td>string</td><td>UTM CAMPAIGN</td></tr><tr><td><code>utm_content</code></td><td>string</td><td>UTM CONTENT</td></tr><tr><td><code>utm_source</code></td><td>string</td><td>UTM SOURCE</td></tr><tr><td><code>utm_medium</code></td><td>string</td><td>UTM MEDIUM</td></tr><tr><td><code>utm_term</code></td><td>string</td><td>UTM TERM</td></tr></tbody></table>

**Exemplos:**

<figure><img src="/files/GzbCYUa3oKVwmj3SI5ZX" alt=""><figcaption></figcaption></figure>

Resultado

<figure><img src="/files/wr1gmyGCKjEZZEn5dd6j" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sprinthub.com/topicos/api/api-chamada-api-para-atualizar-as-utms-do-lead.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
