How to execute the Associate Lead (POST) API

Anonymous
Not applicable

How to execute the Associate Lead (POST) API

Hi,

We are trying to execute the Associate Lead API (Associate Lead » Marketo Developers ) but here cookie field is required.

So from where should we get the cookie value of the lead because when I hit the Get Leads API, it wont display cookie value.

Please suggest how to execute this API?

URL: <REST API Endpoint URL>/rest/v1/leads/{id}/associate.json

ParametersRequired/OptionalDescription

id

Required

Specified in URL request path

cookie

Required

Cookie value of lead

Tags (1)
1 REPLY 1
Anonymous
Not applicable

Re: How to execute the Associate Lead (POST) API

Hi, Deepali.

you can get the value  from _mkto_trk cookie. Of course, you will need to fetch that cookie from the user's browser before you send it.

Tks!