# Convert CURL to Postman

**URL:** <https://community.postman.com/t/convert-curl-to-postman/24901>\
**Category:** Help Hub\
**Created:** [June 15, 2021, 11:30pm UTC](https://community.postman.com/t/convert-curl-to-postman/24901 "2021-06-15T23:30:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dankrm](https://avatars.discourse-cdn.com/v4/letter/d/b77776/32.png) [@dankrm](https://community.postman.com/u/dankrm)\
**Post date:** [June 15, 2021, 11:30pm UTC](https://community.postman.com/t/convert-curl-to-postman/24901/1 "2021-06-15T23:30:44Z")

</div>

Hi, I need to convert CURL to POSTMAN and have reviewed some of the documentation.  
I’ve attempted adjusting the CURL request and still receive the same error message which is “error while importing curl uri malformed”

Please help me find a solution to this error. I’m looking to convert this to Postman. The CURL code is:

curl -X POST -d “{"domainName":"%GIVEN\_DOMAIN\_NAME%","reconciliation":"%GIVEN\_RECONCILIATION%","type":"%GIVEN\_REQUEST\_TYPE%","inputFile":"%GIVEN\_FILEPATH%","storeResults":"%GIVEN\_STORE\_RESULTS%","reportToEmail":"%GIVEN\_EMAIL\_REPORT%"}” -H %HEADER\_1% %API\_URL% -u %GIVEN\_API\_AUTH%

I’ve been told I need to add this somewhere:  
curl --location --request GET ‘[https://matchimus-api-acceptance.operartis.com](https://matchimus-api-acceptance.operartis.com)’

---

<div class="post-metadata">

**Author:** ![kevin.swiber](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kevin.swiber/32/3820_2.png) [@kevin.swiber](https://community.postman.com/u/kevin.swiber)\
**Post date:** [June 16, 2021, 12:19am UTC](https://community.postman.com/t/convert-curl-to-postman/24901/2 "2021-06-16T00:19:56Z")

</div>

Hey @dankrm,

This `curl` command includes variables that will resolve in PowerShell or a Windows command prompt. You can convert these to Postman-style variables. You will need to either replace them once the request is imported or you’ll need to keep them and use something like an Environment to store these variable values.

To convert between variable syntax types, change something like `%API_URL%` to `{{API_URL}}`.

Reworked example:

```auto
curl -X POST -d “{“domainName”:”{{GIVEN_DOMAIN_NAME}}",“reconciliation”:"{{GIVEN_RECONCILIATION}}",“type”:"{{GIVEN_REQUEST_TYPE}}",“inputFile”:"{{GIVEN_FILEPATH}}",“storeResults”:"{{GIVEN_STORE_RESULTS}}",“reportToEmail”:"{{GIVEN_EMAIL_REPORT}}"}" -H {{HEADER_1}} {{API_URL}} -u {{GIVEN_API_AUTH}}

```
