Pass UTM Values Through REST API

How can one go about passing utm_source, utm_medium, and utm_campaign values through the REST API when creating a new contact?

I see the field for setting the “lead_source_id” on a contact but don’t see any way to get a list of existing lead sources through the API. How should one go about setting that ID without hardcoding all of the IDs into their code base? Is there a way to allow Infusionsoft to set the ID by passing the UTM codes with the contact when created through the API?

Unfortunately, we don’t have endpoints for creating lead sources via the API yet.

We’re going to have our marketing person include the infusionsoft lead souce id in the links we use in addition to the utm codes.

Have a look at my iTracker360 product. It will capture UTM parameters in custom fields, apply leadsources, apply UTM tags, and so on. All you need to do is include the itracker JS snippet on your site. Shoot me an email if you have any questions or want an upgraded trial account.

Thanks,
Casey
casey@itracker360.com