403 Forbidden | Community
Skip to main content
Ashwini_Hejmad1
Level 2
Aug 28, 2017 1:33 PM UTC
Solved

403 Forbidden

Hello

I am trying to create a lead using the following information

https://mktorest.com/POST/rest/v1/leads.json?access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxx

Payload

{ 

   "action":"createOnly",

   "lookupField":"email",

   "input":[ 

      { 

         "email":"kjashaedd-1@klooblept.com",

         "firstName":"Kataldar-1",

         "postalCode":"04828"

      }

   ]

}

But when i execute the request. I get the following error

<html> <head><title>403 Forbidden</title></head> <body bgcolor="white"> <center><h1>403 Forbidden</h1></center> <hr><center>nginx</center> </body> </html>

Please advise

Ashwini

Ashwini_Hejmad1
Ashwini_Hejmad1Accepted solution
Level 2
Aug 28, 2017 7:12 PM UTC

Thanks. The issue was resolved

5 replies

SanfordWhiteman
Level 10
Aug 28, 2017 3:28 PM UTC

That's not the correct URL. You should reread the docs. REST URLs begin with the Munchkin ID and do not contain the word POST (that's the HTTP method, not in the path).

Why are you using the API exactly, and from what language?

Translate
Ashwini_Hejmad1
Ashwini_Hejmad1AuthorAccepted solution
Level 2
Aug 28, 2017 7:12 PM UTC

Thanks. The issue was resolved

Translate
SanfordWhiteman
Level 10
Aug 28, 2017 7:15 PM UTC

Ok, please mark my answer as Correct.

Translate