# Problem to create new lead using rest api

**URL:** <https://forum.mautic.org/t/problem-to-create-new-lead-using-rest-api/3463>\
**Category:** Product Support\
**Created:** [February 14, 2016, 9:27pm UTC](https://forum.mautic.org/t/problem-to-create-new-lead-using-rest-api/3463 "2016-02-14T21:27:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jocenunes](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@jocenunes](https://forum.mautic.org/u/jocenunes)\
**Post date:** [February 14, 2016, 9:27pm UTC](https://forum.mautic.org/t/problem-to-create-new-lead-using-rest-api/3463/1 "2016-02-14T21:27:51Z")

</div>

I am keep getting {“error”:{“message”:“parameter\_absent”,“code”:400}}  
  
i am using outh 1a.  
  
  
  
curl\_setopt\_array($curl, array(  
  
CURLOPT\_RETURNTRANSFER =\> 1,  
  
CURLOPT\_URL =\> ‘[http://marketing.fashionlearn.com.br/api/leads/new](http://marketing.fashionlearn.com.br/api/leads/new)’,  
  
CURLOPT\_USERAGENT =\> ‘Codular Sample cURL Request’,  
  
CURLOPT\_POST =\> 1,  
  
CURLOPT\_POSTFIELDS =\> array(  
  
‘oauth\_callback’ =\> “https%3A%2F%[2Fdevelop.fashionlearn.me](http://2Fdevelop.fashionlearn.me)%2Fcreateleads”,  
  
‘oauth\_consumer\_key’ =\> “186s41rkeqpwow08w8884g0s8s8g4sokgwo4okcsg884ccoo4o”,  
  
‘oauth\_nonce’=\>$outhnouns,  
  
‘oauth\_signature\_method’ =\> “HMAC-SHA1”,  
  
‘oauth\_timestamp’ =\> time(),  
  
‘oauth\_token’=\>$outh,  
  
‘oauth\_version’ =\> ‘1.0’,  
  
‘oauth\_verifier’=\>$id,  
  
‘title’=\>“fashionlearn2”,  
  
‘firstname’=\>‘joce’,  
  
‘lastname’=\>‘nunes’  
  
  
  
  
  
  
  
)  
  
  
  
the same array i am sending as paramenters while creating signature.  
  
please tell me what i am missing as parameter

---

<div class="post-metadata">

**Author:** ![jocenunes](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@jocenunes](https://forum.mautic.org/u/jocenunes)\
**Post date:** [February 14, 2016, 9:27pm UTC](https://forum.mautic.org/t/problem-to-create-new-lead-using-rest-api/3463/2 "2016-02-14T21:27:51Z")

</div>

I am keep getting {“error”:{“message”:“parameter\_absent”,“code”:400}}  
i am using outh 1a.

curl\_setopt\_array($curl, array(  
CURLOPT\_RETURNTRANSFER =\> 1,  
CURLOPT\_URL =\> ‘[http://marketing.fashionlearn.com.br/api/leads/new](http://marketing.fashionlearn.com.br/api/leads/new)’,  
CURLOPT\_USERAGENT =\> ‘Codular Sample cURL Request’,  
CURLOPT\_POST =\> 1,  
CURLOPT\_POSTFIELDS =\> array(  
‘oauth\_callback’ =\> “https%3A%2F%[2Fdevelop.fashionlearn.me](http://2Fdevelop.fashionlearn.me)%2Fcreateleads”,  
‘oauth\_consumer\_key’ =\> “186s41rkeqpwow08w8884g0s8s8g4sokgwo4okcsg884ccoo4o”,  
‘oauth\_nonce’=\>$outhnouns,  
‘oauth\_signature\_method’ =\> “HMAC-SHA1”,  
‘oauth\_timestamp’ =\> time(),  
‘oauth\_token’=\>$outh,  
‘oauth\_version’ =\> ‘1.0’,  
‘oauth\_verifier’=\>$id,  
‘title’=\>“fashionlearn2”,  
‘firstname’=\>‘joce’,  
‘lastname’=\>‘nunes’

```
)

```

the same array i am sending as paramenters while creating signature.  
please tell me what i am missing as parameter

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [February 15, 2016, 9:57am UTC](https://forum.mautic.org/t/problem-to-create-new-lead-using-rest-api/3463/3 "2016-02-15T09:57:39Z")

</div>

Duplicate of [https://www.mautic.org/community/index.php/2729-url-not-found-after-authenticating/p1#p8135](https://www.mautic.org/community/index.php/2729-url-not-found-after-authenticating/p1#p8135) . Please, do not spam the same questions all over this forum otherwise you’ll piss the people answering it.
