curl --request POST \
--url https://api.iotools.cloud/v1/tool/har-to-postman-collection-converter \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"harInput": "{\n \"log\": {\n \"version\": \"1.2\",\n \"entries\": [\n {\n \"request\": {\n \"method\": \"GET\",\n \"url\": \"https://api.example.com/v1/users?limit=20\",\n \"headers\": [\n {\n \"name\": \":method\",\n \"value\": \"GET\"\n },\n {\n \"name\": \"accept\",\n \"value\": \"application/json\"\n },\n {\n \"name\": \"authorization\",\n \"value\": \"Bearer eyJhbGciOi.example.token\"\n },\n {\n \"name\": \"cookie\",\n \"value\": \"session=abc123\"\n }\n ]\n },\n \"response\": {\n \"status\": 200,\n \"statusText\": \"OK\",\n \"headers\": [\n {\n \"name\": \"content-type\",\n \"value\": \"application/json\"\n }\n ],\n \"content\": {\n \"mimeType\": \"application/json\",\n \"text\": \"[]\"\n }\n }\n },\n {\n \"request\": {\n \"method\": \"POST\",\n \"url\": \"https://api.example.com/v1/orders\",\n \"headers\": [\n {\n \"name\": \"content-type\",\n \"value\": \"application/json\"\n },\n {\n \"name\": \"authorization\",\n \"value\": \"Bearer eyJhbGciOi.example.token\"\n }\n ],\n \"postData\": {\n \"mimeType\": \"application/json\",\n \"text\": \"{\\\"productId\\\":\\\"sku-42\\\",\\\"qty\\\":2}\"\n }\n },\n \"response\": {\n \"status\": 201,\n \"statusText\": \"Created\",\n \"headers\": [\n {\n \"name\": \"content-type\",\n \"value\": \"application/json\"\n }\n ],\n \"content\": {\n \"mimeType\": \"application/json\",\n \"text\": \"{\\\"orderId\\\":\\\"ord_1\\\"}\"\n }\n }\n }\n ]\n }\n}",
"collectionName": "My API",
"grouping": "host",
"filterSearch": "",
"filterMethod": "any",
"filterStatus": "any",
"filterType": "any",
"stripCookies": "true",
"stripAuth": "true",
"stripPseudo": "true",
"promoteVars": "true"
}
'import requests
url = "https://api.iotools.cloud/v1/tool/har-to-postman-collection-converter"
payload = {
"harInput": "{
\"log\": {
\"version\": \"1.2\",
\"entries\": [
{
\"request\": {
\"method\": \"GET\",
\"url\": \"https://api.example.com/v1/users?limit=20\",
\"headers\": [
{
\"name\": \":method\",
\"value\": \"GET\"
},
{
\"name\": \"accept\",
\"value\": \"application/json\"
},
{
\"name\": \"authorization\",
\"value\": \"Bearer eyJhbGciOi.example.token\"
},
{
\"name\": \"cookie\",
\"value\": \"session=abc123\"
}
]
},
\"response\": {
\"status\": 200,
\"statusText\": \"OK\",
\"headers\": [
{
\"name\": \"content-type\",
\"value\": \"application/json\"
}
],
\"content\": {
\"mimeType\": \"application/json\",
\"text\": \"[]\"
}
}
},
{
\"request\": {
\"method\": \"POST\",
\"url\": \"https://api.example.com/v1/orders\",
\"headers\": [
{
\"name\": \"content-type\",
\"value\": \"application/json\"
},
{
\"name\": \"authorization\",
\"value\": \"Bearer eyJhbGciOi.example.token\"
}
],
\"postData\": {
\"mimeType\": \"application/json\",
\"text\": \"{\\"productId\\":\\"sku-42\\",\\"qty\\":2}\"
}
},
\"response\": {
\"status\": 201,
\"statusText\": \"Created\",
\"headers\": [
{
\"name\": \"content-type\",
\"value\": \"application/json\"
}
],
\"content\": {
\"mimeType\": \"application/json\",
\"text\": \"{\\"orderId\\":\\"ord_1\\"}\"
}
}
}
]
}
}",
"collectionName": "My API",
"grouping": "host",
"filterSearch": "",
"filterMethod": "any",
"filterStatus": "any",
"filterType": "any",
"stripCookies": "true",
"stripAuth": "true",
"stripPseudo": "true",
"promoteVars": "true"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
harInput: '{\n "log": {\n "version": "1.2",\n "entries": [\n {\n "request": {\n "method": "GET",\n "url": "https://api.example.com/v1/users?limit=20",\n "headers": [\n {\n "name": ":method",\n "value": "GET"\n },\n {\n "name": "accept",\n "value": "application/json"\n },\n {\n "name": "authorization",\n "value": "Bearer eyJhbGciOi.example.token"\n },\n {\n "name": "cookie",\n "value": "session=abc123"\n }\n ]\n },\n "response": {\n "status": 200,\n "statusText": "OK",\n "headers": [\n {\n "name": "content-type",\n "value": "application/json"\n }\n ],\n "content": {\n "mimeType": "application/json",\n "text": "[]"\n }\n }\n },\n {\n "request": {\n "method": "POST",\n "url": "https://api.example.com/v1/orders",\n "headers": [\n {\n "name": "content-type",\n "value": "application/json"\n },\n {\n "name": "authorization",\n "value": "Bearer eyJhbGciOi.example.token"\n }\n ],\n "postData": {\n "mimeType": "application/json",\n "text": "{\"productId\":\"sku-42\",\"qty\":2}"\n }\n },\n "response": {\n "status": 201,\n "statusText": "Created",\n "headers": [\n {\n "name": "content-type",\n "value": "application/json"\n }\n ],\n "content": {\n "mimeType": "application/json",\n "text": "{\"orderId\":\"ord_1\"}"\n }\n }\n }\n ]\n }\n}',
collectionName: 'My API',
grouping: 'host',
filterSearch: '',
filterMethod: 'any',
filterStatus: 'any',
filterType: 'any',
stripCookies: 'true',
stripAuth: 'true',
stripPseudo: 'true',
promoteVars: 'true'
})
};
fetch('https://api.iotools.cloud/v1/tool/har-to-postman-collection-converter', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.iotools.cloud/v1/tool/har-to-postman-collection-converter",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'harInput' => '{
"log": {
"version": "1.2",
"entries": [
{
"request": {
"method": "GET",
"url": "https://api.example.com/v1/users?limit=20",
"headers": [
{
"name": ":method",
"value": "GET"
},
{
"name": "accept",
"value": "application/json"
},
{
"name": "authorization",
"value": "Bearer eyJhbGciOi.example.token"
},
{
"name": "cookie",
"value": "session=abc123"
}
]
},
"response": {
"status": 200,
"statusText": "OK",
"headers": [
{
"name": "content-type",
"value": "application/json"
}
],
"content": {
"mimeType": "application/json",
"text": "[]"
}
}
},
{
"request": {
"method": "POST",
"url": "https://api.example.com/v1/orders",
"headers": [
{
"name": "content-type",
"value": "application/json"
},
{
"name": "authorization",
"value": "Bearer eyJhbGciOi.example.token"
}
],
"postData": {
"mimeType": "application/json",
"text": "{\\"productId\\":\\"sku-42\\",\\"qty\\":2}"
}
},
"response": {
"status": 201,
"statusText": "Created",
"headers": [
{
"name": "content-type",
"value": "application/json"
}
],
"content": {
"mimeType": "application/json",
"text": "{\\"orderId\\":\\"ord_1\\"}"
}
}
}
]
}
}',
'collectionName' => 'My API',
'grouping' => 'host',
'filterSearch' => '',
'filterMethod' => 'any',
'filterStatus' => 'any',
'filterType' => 'any',
'stripCookies' => 'true',
'stripAuth' => 'true',
'stripPseudo' => 'true',
'promoteVars' => 'true'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.iotools.cloud/v1/tool/har-to-postman-collection-converter"
payload := strings.NewReader("{\n \"harInput\": \"{\\n \\\"log\\\": {\\n \\\"version\\\": \\\"1.2\\\",\\n \\\"entries\\\": [\\n {\\n \\\"request\\\": {\\n \\\"method\\\": \\\"GET\\\",\\n \\\"url\\\": \\\"https://api.example.com/v1/users?limit=20\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\":method\\\",\\n \\\"value\\\": \\\"GET\\\"\\n },\\n {\\n \\\"name\\\": \\\"accept\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n },\\n {\\n \\\"name\\\": \\\"authorization\\\",\\n \\\"value\\\": \\\"Bearer eyJhbGciOi.example.token\\\"\\n },\\n {\\n \\\"name\\\": \\\"cookie\\\",\\n \\\"value\\\": \\\"session=abc123\\\"\\n }\\n ]\\n },\\n \\\"response\\\": {\\n \\\"status\\\": 200,\\n \\\"statusText\\\": \\\"OK\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\"content-type\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n }\\n ],\\n \\\"content\\\": {\\n \\\"mimeType\\\": \\\"application/json\\\",\\n \\\"text\\\": \\\"[]\\\"\\n }\\n }\\n },\\n {\\n \\\"request\\\": {\\n \\\"method\\\": \\\"POST\\\",\\n \\\"url\\\": \\\"https://api.example.com/v1/orders\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\"content-type\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n },\\n {\\n \\\"name\\\": \\\"authorization\\\",\\n \\\"value\\\": \\\"Bearer eyJhbGciOi.example.token\\\"\\n }\\n ],\\n \\\"postData\\\": {\\n \\\"mimeType\\\": \\\"application/json\\\",\\n \\\"text\\\": \\\"{\\\\\\\"productId\\\\\\\":\\\\\\\"sku-42\\\\\\\",\\\\\\\"qty\\\\\\\":2}\\\"\\n }\\n },\\n \\\"response\\\": {\\n \\\"status\\\": 201,\\n \\\"statusText\\\": \\\"Created\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\"content-type\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n }\\n ],\\n \\\"content\\\": {\\n \\\"mimeType\\\": \\\"application/json\\\",\\n \\\"text\\\": \\\"{\\\\\\\"orderId\\\\\\\":\\\\\\\"ord_1\\\\\\\"}\\\"\\n }\\n }\\n }\\n ]\\n }\\n}\",\n \"collectionName\": \"My API\",\n \"grouping\": \"host\",\n \"filterSearch\": \"\",\n \"filterMethod\": \"any\",\n \"filterStatus\": \"any\",\n \"filterType\": \"any\",\n \"stripCookies\": \"true\",\n \"stripAuth\": \"true\",\n \"stripPseudo\": \"true\",\n \"promoteVars\": \"true\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.iotools.cloud/v1/tool/har-to-postman-collection-converter")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"harInput\": \"{\\n \\\"log\\\": {\\n \\\"version\\\": \\\"1.2\\\",\\n \\\"entries\\\": [\\n {\\n \\\"request\\\": {\\n \\\"method\\\": \\\"GET\\\",\\n \\\"url\\\": \\\"https://api.example.com/v1/users?limit=20\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\":method\\\",\\n \\\"value\\\": \\\"GET\\\"\\n },\\n {\\n \\\"name\\\": \\\"accept\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n },\\n {\\n \\\"name\\\": \\\"authorization\\\",\\n \\\"value\\\": \\\"Bearer eyJhbGciOi.example.token\\\"\\n },\\n {\\n \\\"name\\\": \\\"cookie\\\",\\n \\\"value\\\": \\\"session=abc123\\\"\\n }\\n ]\\n },\\n \\\"response\\\": {\\n \\\"status\\\": 200,\\n \\\"statusText\\\": \\\"OK\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\"content-type\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n }\\n ],\\n \\\"content\\\": {\\n \\\"mimeType\\\": \\\"application/json\\\",\\n \\\"text\\\": \\\"[]\\\"\\n }\\n }\\n },\\n {\\n \\\"request\\\": {\\n \\\"method\\\": \\\"POST\\\",\\n \\\"url\\\": \\\"https://api.example.com/v1/orders\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\"content-type\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n },\\n {\\n \\\"name\\\": \\\"authorization\\\",\\n \\\"value\\\": \\\"Bearer eyJhbGciOi.example.token\\\"\\n }\\n ],\\n \\\"postData\\\": {\\n \\\"mimeType\\\": \\\"application/json\\\",\\n \\\"text\\\": \\\"{\\\\\\\"productId\\\\\\\":\\\\\\\"sku-42\\\\\\\",\\\\\\\"qty\\\\\\\":2}\\\"\\n }\\n },\\n \\\"response\\\": {\\n \\\"status\\\": 201,\\n \\\"statusText\\\": \\\"Created\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\"content-type\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n }\\n ],\\n \\\"content\\\": {\\n \\\"mimeType\\\": \\\"application/json\\\",\\n \\\"text\\\": \\\"{\\\\\\\"orderId\\\\\\\":\\\\\\\"ord_1\\\\\\\"}\\\"\\n }\\n }\\n }\\n ]\\n }\\n}\",\n \"collectionName\": \"My API\",\n \"grouping\": \"host\",\n \"filterSearch\": \"\",\n \"filterMethod\": \"any\",\n \"filterStatus\": \"any\",\n \"filterType\": \"any\",\n \"stripCookies\": \"true\",\n \"stripAuth\": \"true\",\n \"stripPseudo\": \"true\",\n \"promoteVars\": \"true\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.iotools.cloud/v1/tool/har-to-postman-collection-converter")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"harInput\": \"{\\n \\\"log\\\": {\\n \\\"version\\\": \\\"1.2\\\",\\n \\\"entries\\\": [\\n {\\n \\\"request\\\": {\\n \\\"method\\\": \\\"GET\\\",\\n \\\"url\\\": \\\"https://api.example.com/v1/users?limit=20\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\":method\\\",\\n \\\"value\\\": \\\"GET\\\"\\n },\\n {\\n \\\"name\\\": \\\"accept\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n },\\n {\\n \\\"name\\\": \\\"authorization\\\",\\n \\\"value\\\": \\\"Bearer eyJhbGciOi.example.token\\\"\\n },\\n {\\n \\\"name\\\": \\\"cookie\\\",\\n \\\"value\\\": \\\"session=abc123\\\"\\n }\\n ]\\n },\\n \\\"response\\\": {\\n \\\"status\\\": 200,\\n \\\"statusText\\\": \\\"OK\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\"content-type\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n }\\n ],\\n \\\"content\\\": {\\n \\\"mimeType\\\": \\\"application/json\\\",\\n \\\"text\\\": \\\"[]\\\"\\n }\\n }\\n },\\n {\\n \\\"request\\\": {\\n \\\"method\\\": \\\"POST\\\",\\n \\\"url\\\": \\\"https://api.example.com/v1/orders\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\"content-type\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n },\\n {\\n \\\"name\\\": \\\"authorization\\\",\\n \\\"value\\\": \\\"Bearer eyJhbGciOi.example.token\\\"\\n }\\n ],\\n \\\"postData\\\": {\\n \\\"mimeType\\\": \\\"application/json\\\",\\n \\\"text\\\": \\\"{\\\\\\\"productId\\\\\\\":\\\\\\\"sku-42\\\\\\\",\\\\\\\"qty\\\\\\\":2}\\\"\\n }\\n },\\n \\\"response\\\": {\\n \\\"status\\\": 201,\\n \\\"statusText\\\": \\\"Created\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\"content-type\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n }\\n ],\\n \\\"content\\\": {\\n \\\"mimeType\\\": \\\"application/json\\\",\\n \\\"text\\\": \\\"{\\\\\\\"orderId\\\\\\\":\\\\\\\"ord_1\\\\\\\"}\\\"\\n }\\n }\\n }\\n ]\\n }\\n}\",\n \"collectionName\": \"My API\",\n \"grouping\": \"host\",\n \"filterSearch\": \"\",\n \"filterMethod\": \"any\",\n \"filterStatus\": \"any\",\n \"filterType\": \"any\",\n \"stripCookies\": \"true\",\n \"stripAuth\": \"true\",\n \"stripPseudo\": \"true\",\n \"promoteVars\": \"true\"\n}"
response = http.request(request)
puts response.read_body{
"tool": "har-to-postman-collection-converter",
"tool_version": "1.0.1",
"outputs": {
"summary": [
{
"metric": "Included",
"value": "2 of 2"
},
{
"metric": "Base URL",
"value": "https://api.example.com"
}
],
"postmanOutput": "{\n \"info\": {\n \"name\": \"My API\",\n \"description\": \"Generated from a HAR (HTTP Archive) export by iotools.cloud — HAR to Postman Collection Converter.\",\n \"schema\": \"https://schema.getpostman.com/json/collection/v2.1.0/collection.json\",\n \"_exporter_id\": \"iotools-har-to-postman\"\n },\n \"item\": [\n {\n \"name\": \"api.example.com\",\n \"item\": [\n {\n \"name\": \"GET /v1/users\",\n \"request\": {\n \"method\": \"GET\",\n \"header\": [\n {\n \"key\": \"accept\",\n \"value\": \"application/json\"\n },\n {\n \"key\": \"authorization\",\n \"value\": \"{{token}}\"\n }\n ],\n \"url\": {\n \"raw\": \"{{baseUrl}}/v1/users?limit=20\",\n \"host\": [\n \"{{baseUrl}}\"\n ],\n \"path\": [\n \"v1\",\n \"users\"\n ],\n \"query\": [\n {\n \"key\": \"limit\",\n \"value\": \"20\"\n }\n ]\n }\n },\n \"response\": [\n {\n \"name\": \"GET /v1/users · 200\",\n \"originalRequest\": {\n \"method\": \"GET\",\n \"header\": [\n {\n \"key\": \"accept\",\n \"value\": \"application/json\"\n },\n {\n \"key\": \"authorization\",\n \"value\": \"{{token}}\"\n }\n ],\n \"url\": {\n \"raw\": \"{{baseUrl}}/v1/users?limit=20\",\n \"host\": [\n \"{{baseUrl}}\"\n ],\n \"path\": [\n \"v1\",\n \"users\"\n ],\n \"query\": [\n {\n \"key\": \"limit\",\n \"value\": \"20\"\n }\n ]\n }\n },\n \"status\": \"OK\",\n \"code\": 200,\n \"_postman_previewlanguage\": \"json\",\n \"header\": [\n {\n \"key\": \"content-type\",\n \"value\": \"application/json\"\n }\n ],\n \"body\": \"[]\"\n }\n ]\n },\n {\n \"name\": \"POST /v1/orders\",\n \"request\": {\n \"method\": \"POST\",\n \"header\": [\n {\n \"key\": \"content-type\",\n \"value\": \"application/json\"\n },\n {\n \"key\": \"authorization\",\n \"value\": \"{{token}}\"\n }\n ],\n \"url\": {\n \"raw\": \"{{baseUrl}}/v1/orders\",\n \"host\": [\n \"{{baseUrl}}\"\n ],\n \"path\": [\n \"v1\",\n \"orders\"\n ]\n },\n \"body\": {\n \"mode\": \"raw\",\n \"raw\": \"{\\\"productId\\\":\\\"sku-42\\\",\\\"qty\\\":2}\",\n \"options\": {\n \"raw\": {\n \"language\": \"json\"\n }\n }\n }\n },\n \"response\": [\n {\n \"name\": \"POST /v1/orders · 201\",\n \"originalRequest\": {\n \"method\": \"POST\",\n \"header\": [\n {\n \"key\": \"content-type\",\n \"value\": \"application/json\"\n },\n {\n \"key\": \"authorization\",\n \"value\": \"{{token}}\"\n }\n ],\n \"url\": {\n \"raw\": \"{{baseUrl}}/v1/orders\",\n \"host\": [\n \"{{baseUrl}}\"\n ],\n \"path\": [\n \"v1\",\n \"orders\"\n ]\n },\n \"body\": {\n \"mode\": \"raw\",\n \"raw\": \"{\\\"productId\\\":\\\"sku-42\\\",\\\"qty\\\":2}\",\n \"options\": {\n \"raw\": {\n \"language\": \"json\"\n }\n }\n }\n },\n \"status\": \"Created\",\n \"code\": 201,\n \"_postman_previewlanguage\": \"json\",\n \"header\": [\n {\n \"key\": \"content-type\",\n \"value\": \"application/json\"\n }\n ],\n \"body\": \"{\\\"orderId\\\":\\\"ord_1\\\"}\"\n }\n ]\n }\n ]\n }\n ],\n \"variable\": [\n {\n \"key\": \"baseUrl\",\n \"value\": \"https://api.example.com\",\n \"type\": \"string\"\n },\n {\n \"key\": \"token\",\n \"value\": \"\",\n \"type\": \"string\"\n }\n ]\n}"
},
"credits_used": 3,
"credits_remaining": null
}{
"type": "https://iotools.cloud/docs/errors/validation_error",
"title": "Invalid request",
"status": 400,
"code": "validation_error",
"detail": "One or more inputs are invalid — see `fields`.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11",
"fields": {
"inputString": "Required"
}
}{
"type": "https://iotools.cloud/docs/errors/invalid_api_key",
"title": "Invalid API key",
"status": 401,
"code": "invalid_api_key",
"detail": "Provide 'Authorization: Bearer <key>'.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/insufficient_credits",
"title": "Insufficient credits",
"status": 402,
"code": "insufficient_credits",
"detail": "This call costs 1 credit and 0 remain in this month's allowance.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11",
"credits_used": 0,
"credits_remaining": 0
}{
"type": "https://iotools.cloud/docs/errors/tool_not_allowed",
"title": "Tool not available over the API",
"status": 403,
"code": "tool_not_allowed",
"detail": "\"Background Remover\" is available on iotools.cloud but has no API endpoint.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/tool_not_found",
"title": "Tool not found",
"status": 404,
"code": "tool_not_found",
"detail": "No tool with that slug. See GET /v1/tools/list.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/payload_too_large",
"title": "Payload too large",
"status": 413,
"code": "payload_too_large",
"detail": "Request body exceeds this tool's size limit.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/rate_limited",
"title": "Rate limit exceeded",
"status": 429,
"code": "rate_limited",
"detail": "Too many requests. Retry in 30s.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11",
"retry_after": 30
}{
"type": "https://iotools.cloud/docs/errors/processing_error",
"title": "Tool failed to run",
"status": 500,
"code": "processing_error",
"detail": "The tool failed to run. Please try again.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11",
"credits_used": 0
}{
"type": "https://iotools.cloud/docs/errors/tool_disabled",
"title": "Tool temporarily disabled",
"status": 503,
"code": "tool_disabled",
"detail": "This tool is temporarily unavailable. Try again shortly.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}HAR to Postman Collection Converter
Convert a HAR (HTTP Archive) file into a Postman Collection v2.1 — grouped by host or path, with cookie/auth cleanup and a promoted variable.
curl --request POST \
--url https://api.iotools.cloud/v1/tool/har-to-postman-collection-converter \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"harInput": "{\n \"log\": {\n \"version\": \"1.2\",\n \"entries\": [\n {\n \"request\": {\n \"method\": \"GET\",\n \"url\": \"https://api.example.com/v1/users?limit=20\",\n \"headers\": [\n {\n \"name\": \":method\",\n \"value\": \"GET\"\n },\n {\n \"name\": \"accept\",\n \"value\": \"application/json\"\n },\n {\n \"name\": \"authorization\",\n \"value\": \"Bearer eyJhbGciOi.example.token\"\n },\n {\n \"name\": \"cookie\",\n \"value\": \"session=abc123\"\n }\n ]\n },\n \"response\": {\n \"status\": 200,\n \"statusText\": \"OK\",\n \"headers\": [\n {\n \"name\": \"content-type\",\n \"value\": \"application/json\"\n }\n ],\n \"content\": {\n \"mimeType\": \"application/json\",\n \"text\": \"[]\"\n }\n }\n },\n {\n \"request\": {\n \"method\": \"POST\",\n \"url\": \"https://api.example.com/v1/orders\",\n \"headers\": [\n {\n \"name\": \"content-type\",\n \"value\": \"application/json\"\n },\n {\n \"name\": \"authorization\",\n \"value\": \"Bearer eyJhbGciOi.example.token\"\n }\n ],\n \"postData\": {\n \"mimeType\": \"application/json\",\n \"text\": \"{\\\"productId\\\":\\\"sku-42\\\",\\\"qty\\\":2}\"\n }\n },\n \"response\": {\n \"status\": 201,\n \"statusText\": \"Created\",\n \"headers\": [\n {\n \"name\": \"content-type\",\n \"value\": \"application/json\"\n }\n ],\n \"content\": {\n \"mimeType\": \"application/json\",\n \"text\": \"{\\\"orderId\\\":\\\"ord_1\\\"}\"\n }\n }\n }\n ]\n }\n}",
"collectionName": "My API",
"grouping": "host",
"filterSearch": "",
"filterMethod": "any",
"filterStatus": "any",
"filterType": "any",
"stripCookies": "true",
"stripAuth": "true",
"stripPseudo": "true",
"promoteVars": "true"
}
'import requests
url = "https://api.iotools.cloud/v1/tool/har-to-postman-collection-converter"
payload = {
"harInput": "{
\"log\": {
\"version\": \"1.2\",
\"entries\": [
{
\"request\": {
\"method\": \"GET\",
\"url\": \"https://api.example.com/v1/users?limit=20\",
\"headers\": [
{
\"name\": \":method\",
\"value\": \"GET\"
},
{
\"name\": \"accept\",
\"value\": \"application/json\"
},
{
\"name\": \"authorization\",
\"value\": \"Bearer eyJhbGciOi.example.token\"
},
{
\"name\": \"cookie\",
\"value\": \"session=abc123\"
}
]
},
\"response\": {
\"status\": 200,
\"statusText\": \"OK\",
\"headers\": [
{
\"name\": \"content-type\",
\"value\": \"application/json\"
}
],
\"content\": {
\"mimeType\": \"application/json\",
\"text\": \"[]\"
}
}
},
{
\"request\": {
\"method\": \"POST\",
\"url\": \"https://api.example.com/v1/orders\",
\"headers\": [
{
\"name\": \"content-type\",
\"value\": \"application/json\"
},
{
\"name\": \"authorization\",
\"value\": \"Bearer eyJhbGciOi.example.token\"
}
],
\"postData\": {
\"mimeType\": \"application/json\",
\"text\": \"{\\"productId\\":\\"sku-42\\",\\"qty\\":2}\"
}
},
\"response\": {
\"status\": 201,
\"statusText\": \"Created\",
\"headers\": [
{
\"name\": \"content-type\",
\"value\": \"application/json\"
}
],
\"content\": {
\"mimeType\": \"application/json\",
\"text\": \"{\\"orderId\\":\\"ord_1\\"}\"
}
}
}
]
}
}",
"collectionName": "My API",
"grouping": "host",
"filterSearch": "",
"filterMethod": "any",
"filterStatus": "any",
"filterType": "any",
"stripCookies": "true",
"stripAuth": "true",
"stripPseudo": "true",
"promoteVars": "true"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
harInput: '{\n "log": {\n "version": "1.2",\n "entries": [\n {\n "request": {\n "method": "GET",\n "url": "https://api.example.com/v1/users?limit=20",\n "headers": [\n {\n "name": ":method",\n "value": "GET"\n },\n {\n "name": "accept",\n "value": "application/json"\n },\n {\n "name": "authorization",\n "value": "Bearer eyJhbGciOi.example.token"\n },\n {\n "name": "cookie",\n "value": "session=abc123"\n }\n ]\n },\n "response": {\n "status": 200,\n "statusText": "OK",\n "headers": [\n {\n "name": "content-type",\n "value": "application/json"\n }\n ],\n "content": {\n "mimeType": "application/json",\n "text": "[]"\n }\n }\n },\n {\n "request": {\n "method": "POST",\n "url": "https://api.example.com/v1/orders",\n "headers": [\n {\n "name": "content-type",\n "value": "application/json"\n },\n {\n "name": "authorization",\n "value": "Bearer eyJhbGciOi.example.token"\n }\n ],\n "postData": {\n "mimeType": "application/json",\n "text": "{\"productId\":\"sku-42\",\"qty\":2}"\n }\n },\n "response": {\n "status": 201,\n "statusText": "Created",\n "headers": [\n {\n "name": "content-type",\n "value": "application/json"\n }\n ],\n "content": {\n "mimeType": "application/json",\n "text": "{\"orderId\":\"ord_1\"}"\n }\n }\n }\n ]\n }\n}',
collectionName: 'My API',
grouping: 'host',
filterSearch: '',
filterMethod: 'any',
filterStatus: 'any',
filterType: 'any',
stripCookies: 'true',
stripAuth: 'true',
stripPseudo: 'true',
promoteVars: 'true'
})
};
fetch('https://api.iotools.cloud/v1/tool/har-to-postman-collection-converter', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.iotools.cloud/v1/tool/har-to-postman-collection-converter",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'harInput' => '{
"log": {
"version": "1.2",
"entries": [
{
"request": {
"method": "GET",
"url": "https://api.example.com/v1/users?limit=20",
"headers": [
{
"name": ":method",
"value": "GET"
},
{
"name": "accept",
"value": "application/json"
},
{
"name": "authorization",
"value": "Bearer eyJhbGciOi.example.token"
},
{
"name": "cookie",
"value": "session=abc123"
}
]
},
"response": {
"status": 200,
"statusText": "OK",
"headers": [
{
"name": "content-type",
"value": "application/json"
}
],
"content": {
"mimeType": "application/json",
"text": "[]"
}
}
},
{
"request": {
"method": "POST",
"url": "https://api.example.com/v1/orders",
"headers": [
{
"name": "content-type",
"value": "application/json"
},
{
"name": "authorization",
"value": "Bearer eyJhbGciOi.example.token"
}
],
"postData": {
"mimeType": "application/json",
"text": "{\\"productId\\":\\"sku-42\\",\\"qty\\":2}"
}
},
"response": {
"status": 201,
"statusText": "Created",
"headers": [
{
"name": "content-type",
"value": "application/json"
}
],
"content": {
"mimeType": "application/json",
"text": "{\\"orderId\\":\\"ord_1\\"}"
}
}
}
]
}
}',
'collectionName' => 'My API',
'grouping' => 'host',
'filterSearch' => '',
'filterMethod' => 'any',
'filterStatus' => 'any',
'filterType' => 'any',
'stripCookies' => 'true',
'stripAuth' => 'true',
'stripPseudo' => 'true',
'promoteVars' => 'true'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.iotools.cloud/v1/tool/har-to-postman-collection-converter"
payload := strings.NewReader("{\n \"harInput\": \"{\\n \\\"log\\\": {\\n \\\"version\\\": \\\"1.2\\\",\\n \\\"entries\\\": [\\n {\\n \\\"request\\\": {\\n \\\"method\\\": \\\"GET\\\",\\n \\\"url\\\": \\\"https://api.example.com/v1/users?limit=20\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\":method\\\",\\n \\\"value\\\": \\\"GET\\\"\\n },\\n {\\n \\\"name\\\": \\\"accept\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n },\\n {\\n \\\"name\\\": \\\"authorization\\\",\\n \\\"value\\\": \\\"Bearer eyJhbGciOi.example.token\\\"\\n },\\n {\\n \\\"name\\\": \\\"cookie\\\",\\n \\\"value\\\": \\\"session=abc123\\\"\\n }\\n ]\\n },\\n \\\"response\\\": {\\n \\\"status\\\": 200,\\n \\\"statusText\\\": \\\"OK\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\"content-type\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n }\\n ],\\n \\\"content\\\": {\\n \\\"mimeType\\\": \\\"application/json\\\",\\n \\\"text\\\": \\\"[]\\\"\\n }\\n }\\n },\\n {\\n \\\"request\\\": {\\n \\\"method\\\": \\\"POST\\\",\\n \\\"url\\\": \\\"https://api.example.com/v1/orders\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\"content-type\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n },\\n {\\n \\\"name\\\": \\\"authorization\\\",\\n \\\"value\\\": \\\"Bearer eyJhbGciOi.example.token\\\"\\n }\\n ],\\n \\\"postData\\\": {\\n \\\"mimeType\\\": \\\"application/json\\\",\\n \\\"text\\\": \\\"{\\\\\\\"productId\\\\\\\":\\\\\\\"sku-42\\\\\\\",\\\\\\\"qty\\\\\\\":2}\\\"\\n }\\n },\\n \\\"response\\\": {\\n \\\"status\\\": 201,\\n \\\"statusText\\\": \\\"Created\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\"content-type\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n }\\n ],\\n \\\"content\\\": {\\n \\\"mimeType\\\": \\\"application/json\\\",\\n \\\"text\\\": \\\"{\\\\\\\"orderId\\\\\\\":\\\\\\\"ord_1\\\\\\\"}\\\"\\n }\\n }\\n }\\n ]\\n }\\n}\",\n \"collectionName\": \"My API\",\n \"grouping\": \"host\",\n \"filterSearch\": \"\",\n \"filterMethod\": \"any\",\n \"filterStatus\": \"any\",\n \"filterType\": \"any\",\n \"stripCookies\": \"true\",\n \"stripAuth\": \"true\",\n \"stripPseudo\": \"true\",\n \"promoteVars\": \"true\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.iotools.cloud/v1/tool/har-to-postman-collection-converter")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"harInput\": \"{\\n \\\"log\\\": {\\n \\\"version\\\": \\\"1.2\\\",\\n \\\"entries\\\": [\\n {\\n \\\"request\\\": {\\n \\\"method\\\": \\\"GET\\\",\\n \\\"url\\\": \\\"https://api.example.com/v1/users?limit=20\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\":method\\\",\\n \\\"value\\\": \\\"GET\\\"\\n },\\n {\\n \\\"name\\\": \\\"accept\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n },\\n {\\n \\\"name\\\": \\\"authorization\\\",\\n \\\"value\\\": \\\"Bearer eyJhbGciOi.example.token\\\"\\n },\\n {\\n \\\"name\\\": \\\"cookie\\\",\\n \\\"value\\\": \\\"session=abc123\\\"\\n }\\n ]\\n },\\n \\\"response\\\": {\\n \\\"status\\\": 200,\\n \\\"statusText\\\": \\\"OK\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\"content-type\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n }\\n ],\\n \\\"content\\\": {\\n \\\"mimeType\\\": \\\"application/json\\\",\\n \\\"text\\\": \\\"[]\\\"\\n }\\n }\\n },\\n {\\n \\\"request\\\": {\\n \\\"method\\\": \\\"POST\\\",\\n \\\"url\\\": \\\"https://api.example.com/v1/orders\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\"content-type\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n },\\n {\\n \\\"name\\\": \\\"authorization\\\",\\n \\\"value\\\": \\\"Bearer eyJhbGciOi.example.token\\\"\\n }\\n ],\\n \\\"postData\\\": {\\n \\\"mimeType\\\": \\\"application/json\\\",\\n \\\"text\\\": \\\"{\\\\\\\"productId\\\\\\\":\\\\\\\"sku-42\\\\\\\",\\\\\\\"qty\\\\\\\":2}\\\"\\n }\\n },\\n \\\"response\\\": {\\n \\\"status\\\": 201,\\n \\\"statusText\\\": \\\"Created\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\"content-type\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n }\\n ],\\n \\\"content\\\": {\\n \\\"mimeType\\\": \\\"application/json\\\",\\n \\\"text\\\": \\\"{\\\\\\\"orderId\\\\\\\":\\\\\\\"ord_1\\\\\\\"}\\\"\\n }\\n }\\n }\\n ]\\n }\\n}\",\n \"collectionName\": \"My API\",\n \"grouping\": \"host\",\n \"filterSearch\": \"\",\n \"filterMethod\": \"any\",\n \"filterStatus\": \"any\",\n \"filterType\": \"any\",\n \"stripCookies\": \"true\",\n \"stripAuth\": \"true\",\n \"stripPseudo\": \"true\",\n \"promoteVars\": \"true\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.iotools.cloud/v1/tool/har-to-postman-collection-converter")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"harInput\": \"{\\n \\\"log\\\": {\\n \\\"version\\\": \\\"1.2\\\",\\n \\\"entries\\\": [\\n {\\n \\\"request\\\": {\\n \\\"method\\\": \\\"GET\\\",\\n \\\"url\\\": \\\"https://api.example.com/v1/users?limit=20\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\":method\\\",\\n \\\"value\\\": \\\"GET\\\"\\n },\\n {\\n \\\"name\\\": \\\"accept\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n },\\n {\\n \\\"name\\\": \\\"authorization\\\",\\n \\\"value\\\": \\\"Bearer eyJhbGciOi.example.token\\\"\\n },\\n {\\n \\\"name\\\": \\\"cookie\\\",\\n \\\"value\\\": \\\"session=abc123\\\"\\n }\\n ]\\n },\\n \\\"response\\\": {\\n \\\"status\\\": 200,\\n \\\"statusText\\\": \\\"OK\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\"content-type\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n }\\n ],\\n \\\"content\\\": {\\n \\\"mimeType\\\": \\\"application/json\\\",\\n \\\"text\\\": \\\"[]\\\"\\n }\\n }\\n },\\n {\\n \\\"request\\\": {\\n \\\"method\\\": \\\"POST\\\",\\n \\\"url\\\": \\\"https://api.example.com/v1/orders\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\"content-type\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n },\\n {\\n \\\"name\\\": \\\"authorization\\\",\\n \\\"value\\\": \\\"Bearer eyJhbGciOi.example.token\\\"\\n }\\n ],\\n \\\"postData\\\": {\\n \\\"mimeType\\\": \\\"application/json\\\",\\n \\\"text\\\": \\\"{\\\\\\\"productId\\\\\\\":\\\\\\\"sku-42\\\\\\\",\\\\\\\"qty\\\\\\\":2}\\\"\\n }\\n },\\n \\\"response\\\": {\\n \\\"status\\\": 201,\\n \\\"statusText\\\": \\\"Created\\\",\\n \\\"headers\\\": [\\n {\\n \\\"name\\\": \\\"content-type\\\",\\n \\\"value\\\": \\\"application/json\\\"\\n }\\n ],\\n \\\"content\\\": {\\n \\\"mimeType\\\": \\\"application/json\\\",\\n \\\"text\\\": \\\"{\\\\\\\"orderId\\\\\\\":\\\\\\\"ord_1\\\\\\\"}\\\"\\n }\\n }\\n }\\n ]\\n }\\n}\",\n \"collectionName\": \"My API\",\n \"grouping\": \"host\",\n \"filterSearch\": \"\",\n \"filterMethod\": \"any\",\n \"filterStatus\": \"any\",\n \"filterType\": \"any\",\n \"stripCookies\": \"true\",\n \"stripAuth\": \"true\",\n \"stripPseudo\": \"true\",\n \"promoteVars\": \"true\"\n}"
response = http.request(request)
puts response.read_body{
"tool": "har-to-postman-collection-converter",
"tool_version": "1.0.1",
"outputs": {
"summary": [
{
"metric": "Included",
"value": "2 of 2"
},
{
"metric": "Base URL",
"value": "https://api.example.com"
}
],
"postmanOutput": "{\n \"info\": {\n \"name\": \"My API\",\n \"description\": \"Generated from a HAR (HTTP Archive) export by iotools.cloud — HAR to Postman Collection Converter.\",\n \"schema\": \"https://schema.getpostman.com/json/collection/v2.1.0/collection.json\",\n \"_exporter_id\": \"iotools-har-to-postman\"\n },\n \"item\": [\n {\n \"name\": \"api.example.com\",\n \"item\": [\n {\n \"name\": \"GET /v1/users\",\n \"request\": {\n \"method\": \"GET\",\n \"header\": [\n {\n \"key\": \"accept\",\n \"value\": \"application/json\"\n },\n {\n \"key\": \"authorization\",\n \"value\": \"{{token}}\"\n }\n ],\n \"url\": {\n \"raw\": \"{{baseUrl}}/v1/users?limit=20\",\n \"host\": [\n \"{{baseUrl}}\"\n ],\n \"path\": [\n \"v1\",\n \"users\"\n ],\n \"query\": [\n {\n \"key\": \"limit\",\n \"value\": \"20\"\n }\n ]\n }\n },\n \"response\": [\n {\n \"name\": \"GET /v1/users · 200\",\n \"originalRequest\": {\n \"method\": \"GET\",\n \"header\": [\n {\n \"key\": \"accept\",\n \"value\": \"application/json\"\n },\n {\n \"key\": \"authorization\",\n \"value\": \"{{token}}\"\n }\n ],\n \"url\": {\n \"raw\": \"{{baseUrl}}/v1/users?limit=20\",\n \"host\": [\n \"{{baseUrl}}\"\n ],\n \"path\": [\n \"v1\",\n \"users\"\n ],\n \"query\": [\n {\n \"key\": \"limit\",\n \"value\": \"20\"\n }\n ]\n }\n },\n \"status\": \"OK\",\n \"code\": 200,\n \"_postman_previewlanguage\": \"json\",\n \"header\": [\n {\n \"key\": \"content-type\",\n \"value\": \"application/json\"\n }\n ],\n \"body\": \"[]\"\n }\n ]\n },\n {\n \"name\": \"POST /v1/orders\",\n \"request\": {\n \"method\": \"POST\",\n \"header\": [\n {\n \"key\": \"content-type\",\n \"value\": \"application/json\"\n },\n {\n \"key\": \"authorization\",\n \"value\": \"{{token}}\"\n }\n ],\n \"url\": {\n \"raw\": \"{{baseUrl}}/v1/orders\",\n \"host\": [\n \"{{baseUrl}}\"\n ],\n \"path\": [\n \"v1\",\n \"orders\"\n ]\n },\n \"body\": {\n \"mode\": \"raw\",\n \"raw\": \"{\\\"productId\\\":\\\"sku-42\\\",\\\"qty\\\":2}\",\n \"options\": {\n \"raw\": {\n \"language\": \"json\"\n }\n }\n }\n },\n \"response\": [\n {\n \"name\": \"POST /v1/orders · 201\",\n \"originalRequest\": {\n \"method\": \"POST\",\n \"header\": [\n {\n \"key\": \"content-type\",\n \"value\": \"application/json\"\n },\n {\n \"key\": \"authorization\",\n \"value\": \"{{token}}\"\n }\n ],\n \"url\": {\n \"raw\": \"{{baseUrl}}/v1/orders\",\n \"host\": [\n \"{{baseUrl}}\"\n ],\n \"path\": [\n \"v1\",\n \"orders\"\n ]\n },\n \"body\": {\n \"mode\": \"raw\",\n \"raw\": \"{\\\"productId\\\":\\\"sku-42\\\",\\\"qty\\\":2}\",\n \"options\": {\n \"raw\": {\n \"language\": \"json\"\n }\n }\n }\n },\n \"status\": \"Created\",\n \"code\": 201,\n \"_postman_previewlanguage\": \"json\",\n \"header\": [\n {\n \"key\": \"content-type\",\n \"value\": \"application/json\"\n }\n ],\n \"body\": \"{\\\"orderId\\\":\\\"ord_1\\\"}\"\n }\n ]\n }\n ]\n }\n ],\n \"variable\": [\n {\n \"key\": \"baseUrl\",\n \"value\": \"https://api.example.com\",\n \"type\": \"string\"\n },\n {\n \"key\": \"token\",\n \"value\": \"\",\n \"type\": \"string\"\n }\n ]\n}"
},
"credits_used": 3,
"credits_remaining": null
}{
"type": "https://iotools.cloud/docs/errors/validation_error",
"title": "Invalid request",
"status": 400,
"code": "validation_error",
"detail": "One or more inputs are invalid — see `fields`.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11",
"fields": {
"inputString": "Required"
}
}{
"type": "https://iotools.cloud/docs/errors/invalid_api_key",
"title": "Invalid API key",
"status": 401,
"code": "invalid_api_key",
"detail": "Provide 'Authorization: Bearer <key>'.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/insufficient_credits",
"title": "Insufficient credits",
"status": 402,
"code": "insufficient_credits",
"detail": "This call costs 1 credit and 0 remain in this month's allowance.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11",
"credits_used": 0,
"credits_remaining": 0
}{
"type": "https://iotools.cloud/docs/errors/tool_not_allowed",
"title": "Tool not available over the API",
"status": 403,
"code": "tool_not_allowed",
"detail": "\"Background Remover\" is available on iotools.cloud but has no API endpoint.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/tool_not_found",
"title": "Tool not found",
"status": 404,
"code": "tool_not_found",
"detail": "No tool with that slug. See GET /v1/tools/list.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/payload_too_large",
"title": "Payload too large",
"status": 413,
"code": "payload_too_large",
"detail": "Request body exceeds this tool's size limit.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}{
"type": "https://iotools.cloud/docs/errors/rate_limited",
"title": "Rate limit exceeded",
"status": 429,
"code": "rate_limited",
"detail": "Too many requests. Retry in 30s.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11",
"retry_after": 30
}{
"type": "https://iotools.cloud/docs/errors/processing_error",
"title": "Tool failed to run",
"status": 500,
"code": "processing_error",
"detail": "The tool failed to run. Please try again.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11",
"credits_used": 0
}{
"type": "https://iotools.cloud/docs/errors/tool_disabled",
"title": "Tool temporarily disabled",
"status": 503,
"code": "tool_disabled",
"detail": "This tool is temporarily unavailable. Try again shortly.",
"request_id": "e4042b29-8f1e-4c7a-9b52-6f0d1a3c7e11"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
HAR Content
Collection name
Group by
host, path, none Search
Method
any, GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS Status
any, 2xx, 3xx, 4xx, 5xx Type
any, xhr, document, no-static Strip Cookie request headers
Replace Authorization values with {{token}} variable
Skip HTTP/2 pseudo-headers (:method, :path, etc.)
Promote scheme + host to a {{baseUrl}} collection variable
Response
Tool output
Show child attributes
Show child attributes
The tool's slug, echoing the {slug} in the request path.
Output-contract version for this tool.
Credits this call consumed, after any settlement refund. 0 when metering is disabled.
Credits left in the current monthly allowance, or null when metering is disabled.
Correlation id, also sent as x-request-id.
Was this page helpful?