Answered

What is the way to create contact with `utm_*` fields? Nothing is declared on create/update contact pages

  • 17 August 2022
  • 3 replies
  • 49 views

What is the way to create contact with `utm_*` fields? Nothing is declared on create/update contact pages
icon

Best answer by Racheal 23 August 2022, 03:35

View original

3 replies

Request is

```

{'role': 'lead', 'email': 'unittest_174181ecb6b14e4eaa902e6581bc3b29@site', 'last_seen_at': 1660761183.0, 'utm_source': 'source'}

```

Response is

```

{'role': 'lead', 'email': 'unittest_174181ecb6b14e4eaa902e6581bc3b29@site', ...'utm_source': None, ...}

```

API v2.5, API v1.4 is working as expected

Userlevel 4
Badge +5

Hey @timur​ Racheal from the support engineer team here👋🏼

 

I'm afraid the UTM parameters are no longer exposed on the Contact Model for our API versions 2.0+. In order to receive these from our API, you would have to roll back to v1.4 or earlier.

 

That being said, I will also pass this along as a feature request, so our engineers are aware you'd like to see these returned to the Contact model in future versions. And I know you're not the first to ask for this, so this will give it another bump on their radar.

Reply