# Post api in api connector

**URL:** <https://forum.bubble.io/t/post-api-in-api-connector/11280>\
**Category:** APIs\
**Created:** [March 13, 2017, 12:39pm UTC](https://forum.bubble.io/t/post-api-in-api-connector/11280 "2017-03-13T12:39:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertmramsden](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/robertmramsden/32/12284_2.png) [@robertmramsden](https://forum.bubble.io/u/robertmramsden)\
**Post date:** [March 13, 2017, 12:39pm UTC](https://forum.bubble.io/t/post-api-in-api-connector/11280/1 "2017-03-13T12:39:51Z")

</div>

Hi there , I am trying to format the following in the api connector. it is a post to the following url [https://app.getswift.co/api/v2/deliveries](https://app.getswift.co/api/v2/deliveries)

{  
“apiKey”: “MERCHANT\_KEY”,  
“booking”:{  
“pickupDetail”: {  
“name”: “Rupert”,  
“phone”: “1234567890”,  
“address”: “57 luscombe st, brunswick, melbourne”  
},  
“dropoffDetail”: {  
“name”: “Igor”,  
“phone”: “0987654321”,  
“address”: “105 collins st, 3000”  
}  
}  
}

How can I structure this in the api connector? I have set header as Content-type application/json, tried putting apiKey as a header and a body parameter, none worked, have entered body parameters like this booking[pickupDetail][address]. it is working in postman

---

<div class="post-metadata">

**Author:** ![robertmramsden](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/robertmramsden/32/12284_2.png) [@robertmramsden](https://forum.bubble.io/u/robertmramsden)\
**Post date:** [March 13, 2017, 3:58pm UTC](https://forum.bubble.io/t/post-api-in-api-connector/11280/2 "2017-03-13T15:58:24Z")

</div>

Ok I have made it work if I put the parameters in the body as json , and use dynamic values using \<\>

---

<div class="post-metadata">

**Author:** ![boris](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@boris](https://forum.bubble.io/u/boris)\
**Post date:** [March 27, 2017, 7:18pm UTC](https://forum.bubble.io/t/post-api-in-api-connector/11280/4 "2017-03-27T19:18:33Z")

</div>

Can you share more info on how you did this? I’m trying to set up the swift API and can’t seem to figure it out.

---

<div class="post-metadata">

**Author:** ![robertmramsden](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/robertmramsden/32/12284_2.png) [@robertmramsden](https://forum.bubble.io/u/robertmramsden)\
**Post date:** [March 28, 2017, 4:23pm UTC](https://forum.bubble.io/t/post-api-in-api-connector/11280/5 "2017-03-28T16:23:26Z")

</div>

replace the static values with dynamic variables surrounding the variable with “\< \>”

 ![](https://us1.discourse-cdn.com/bubble/original/2X/b/b67c597dc21563ded92f2e718aecc8e1ac78ea2d.png)
