# Problem with http request node

**URL:** <https://community.n8n.io/t/problem-with-http-request-node/6738>\
**Category:** Questions\
**Created:** [July 13, 2021, 1:10pm UTC](https://community.n8n.io/t/problem-with-http-request-node/6738 "2021-07-13T13:10:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![victormiranda](https://avatars.discourse-cdn.com/v4/letter/v/48db29/32.png) [@victormiranda](https://community.n8n.io/u/victormiranda)\
**Post date:** [July 13, 2021, 1:10pm UTC](https://community.n8n.io/t/problem-with-http-request-node/6738/1 "2021-07-13T13:10:09Z")

</div>

Hi, im trying to send to the API of MessageBird the next Parameters:

- to (Number to send a message)
- from (ChannelId from user of MessageBird)
- template (template’s name from user to start conversation)
- type (type from message, always text)
- content (Text of the message)

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/c/c212ac48388594d3fe2666451f52ebb65bef6deb.png)

I always receive this error because this parameter that the API expect to receive is a json, and the node that permit to send this paremeters don’t allow to send a json, only a parameter and her value.

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/8/890995dcf820f7d6daf1966a3a01704efb8e6615.png)

The documentation from the site is here → [MessageBird | API Conversations](https://developers.messagebird.com/api/conversations/#whatsapp-api)

And the URL that im trying to send the information is these →   
[https://conversations.messagebird.com/v1/conversations/start](https://conversations.messagebird.com/v1/conversations/start)

I have already authenticated with the access\_key, the problem is that parameter

---

<div class="post-metadata">

**Author:** ![RicardoE105](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ricardoe105/32/550_2.png) [@RicardoE105](https://community.n8n.io/u/RicardoE105)\
**Post date:** [July 13, 2021, 2:36pm UTC](https://community.n8n.io/t/problem-with-http-request-node/6738/2 "2021-07-13T14:36:33Z")

</div>

You are not defining the content parameter. Also, you are defining the template, but that parameter it’s not in the docs.

> **[MessageBird for Developers](https://developers.messagebird.com/api/conversations/#start-a-conversation)**
>
> The MessageBird API connects your website or application to operators around the world. With our API you can integrate Voice, SMS en WhatsApp.

---

<div class="post-metadata">

**Author:** ![victormiranda](https://avatars.discourse-cdn.com/v4/letter/v/48db29/32.png) [@victormiranda](https://community.n8n.io/u/victormiranda)\
**Post date:** [July 14, 2021, 6:24am UTC](https://community.n8n.io/t/problem-with-http-request-node/6738/3 "2021-07-14T06:24:38Z")

</div>

But in the node it only lets me send parameters and their values, that’s why it gives me that error.

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/8/8d91714a42efbcad3605368a85068e32677e3e46.png)

---

<div class="post-metadata">

**Author:** ![harshil1712](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/harshil1712/32/1374_2.png) [@harshil1712](https://community.n8n.io/u/harshil1712)\
**Post date:** [July 14, 2021, 7:13am UTC](https://community.n8n.io/t/problem-with-http-request-node/6738/4 "2021-07-14T07:13:13Z")

</div>

Hey @victormiranda!

You will have to set the content type in the Header parameter. You can set the Header parameters under the Headers section.

 ![Screenshot 2021-07-14 at 9.12.42 AM](https://europe1.discourse-cdn.com/n8n/original/2X/6/6c690ef52fdd6d0ae581fd1fbcd7a21fa402aada.png)

---

<div class="post-metadata">

**Author:** ![victormiranda](https://avatars.discourse-cdn.com/v4/letter/v/48db29/32.png) [@victormiranda](https://community.n8n.io/u/victormiranda)\
**Post date:** [July 14, 2021, 10:00am UTC](https://community.n8n.io/t/problem-with-http-request-node/6738/5 "2021-07-14T10:00:00Z")

</div>

If i put the type content in the header i receive this error.

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/1/1b3b2cc63f8729bd71b51b0a5d74a8de9de8e98a.png)

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/9/918327e533e5b8d8008dba88c64d78d7f4f2ee89.png)

I need to put this inside Body Parameters, and when i put this inside i recieve this other error.

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/a/a89d537c5292f98c154192d637b64c20263bfc06.png)

---

<div class="post-metadata">

**Author:** ![harshil1712](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/harshil1712/32/1374_2.png) [@harshil1712](https://community.n8n.io/u/harshil1712)\
**Post date:** [July 14, 2021, 10:17am UTC](https://community.n8n.io/t/problem-with-http-request-node/6738/6 "2021-07-14T10:17:09Z")

</div>

You need to add the following in the Header parameter:  
_ **Name:** _ Content-Type  
_ **Value:** _ application/json

---

<div class="post-metadata">

**Author:** ![victormiranda](https://avatars.discourse-cdn.com/v4/letter/v/48db29/32.png) [@victormiranda](https://community.n8n.io/u/victormiranda)\
**Post date:** [July 14, 2021, 10:51am UTC](https://community.n8n.io/t/problem-with-http-request-node/6738/7 "2021-07-14T10:51:09Z")

</div>

Same error, i can’t do anything.

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/e/e5f9b257a11fc69ff8a11eb3f596c4e3d4f4856b.png)

---

<div class="post-metadata">

**Author:** ![harshil1712](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/harshil1712/32/1374_2.png) [@harshil1712](https://community.n8n.io/u/harshil1712)\
**Post date:** [July 14, 2021, 11:27am UTC](https://community.n8n.io/t/problem-with-http-request-node/6738/8 "2021-07-14T11:27:31Z")

</div>

Hey, can you please share the credentials via personal message? This will help me replicate the issue and provide you a solution

---

<div class="post-metadata">

**Author:** ![victormiranda](https://avatars.discourse-cdn.com/v4/letter/v/48db29/32.png) [@victormiranda](https://community.n8n.io/u/victormiranda)\
**Post date:** [July 14, 2021, 11:34am UTC](https://community.n8n.io/t/problem-with-http-request-node/6738/9 "2021-07-14T11:34:47Z")

</div>

It work now, i add the option JSON/RAW Parameters and insert this in Body Parameters:

{  
“url”: “[https://conversations.messagebird.com/v1/send](https://conversations.messagebird.com/v1/send)”,  
“raw\_url”: “[https://conversations.messagebird.com/v1/send](https://conversations.messagebird.com/v1/send)”,  
“method”: “post”,  
“to” : “+34XXXXXXXX”,  
“channelId” : “???”,  
“type” : “text”,  
“headers”: {  
“Authorization”: “AccessKey ???”,  
“Content-Type”: “application/json”  
},  
“content”: {  
“text”:“Hi there, Im Using Whatsapp”  
}  
}

I’m so happy ajajaja, 2 days for this, but finally it works, Thanks you for your help.
