REST Api Import Leads Error 600

Anonymous
Not applicable

REST Api Import Leads Error 600

Hey guys,

So, I'm trying to upload a csv of emails to a list. I'm following the API doc and attempting to post via cURL. I've attached images of the curl command and response.

C:\>curl --trace-ascii -v -k -i --header "content-type:application/json" -F access_token=<here's where I paste the access token> -F format=csv -F file=@AddToList.csv -F listId=ST49394A1LA1 -F lookupField=email https://823-CFH-542.mktorest.com/rest/v1/leads.json

The response is: code 600: Access token not specified. Pretty straight forward except that I see that I am indeed sending the access token in the outgoing message:


=> Send data, 395 bytes (0x18b)
0000: --------------------------34e293bdcdb66e1d
002c: Content-Disposition: form-data; name="access_token"
0061:
0063: <My Access token shows here>
008c: --------------------------34e293bdcdb66e1d
00b8: Content-Disposition: form-data; name="format"
00e7:
00e9: csv
00ee: --------------------------34e293bdcdb66e1d
011a: Content-Disposition: form-data; name="file"; filename="AddToList
015a: .csv"
0161: Content-Type: application/octet-stream

Any suggestions are greatly appreicated.
Tags (1)
2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: REST Api Import Leads Error 600

Try sending the token in the query string.
Anonymous
Not applicable

Re: REST Api Import Leads Error 600

Hi Dane

This API is not standard rest endpoint url.

Correct URL: <REST API Endpoint URL>/bulk/v1/leads.json

Your URL: <REST API Endpoint URL>/rest/v1/leads.json