Skip to main content
POST
/
v1
/
bulk
Bulk Request API
curl --request POST \
  --url 'https://api.askmiso.com/v1/bulk?api_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "requests": [
    {
      "api_name": "<string>",
      "body": {}
    }
  ]
}
'
import requests

url = "https://api.askmiso.com/v1/bulk?api_key="

payload = { "requests": [
        {
            "api_name": "<string>",
            "body": {}
        }
    ] }
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({requests: [{api_name: '<string>', body: JSON.stringify({})}]})
};

fetch('https://api.askmiso.com/v1/bulk?api_key=', 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.askmiso.com/v1/bulk?api_key=",
  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([
    'requests' => [
        [
                'api_name' => '<string>',
                'body' => [
                                
                ]
        ]
    ]
  ]),
  CURLOPT_HTTPHEADER => [
    "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.askmiso.com/v1/bulk?api_key="

	payload := strings.NewReader("{\n  \"requests\": [\n    {\n      \"api_name\": \"<string>\",\n      \"body\": {}\n    }\n  ]\n}")

	req, _ := http.NewRequest("POST", url, payload)

	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.askmiso.com/v1/bulk?api_key=")
  .header("Content-Type", "application/json")
  .body("{\n  \"requests\": [\n    {\n      \"api_name\": \"<string>\",\n      \"body\": {}\n    }\n  ]\n}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.askmiso.com/v1/bulk?api_key=")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n  \"requests\": [\n    {\n      \"api_name\": \"<string>\",\n      \"body\": {}\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
{
  "data": [
    {
      "error": true,
      "status_code": 123,
      "body": {}
    }
  ],
  "errors": true
}
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

api_key
string
query
required

Your secret API key is used to access every Miso API endpoint. You should secure this key and only use it on a backend server. Never leave this key in your client-side JavaScript code. If the private key is compromised, you can revoke it in Dojo and get a new one.

Specify your secret key in the api_key query parameter. For example:

POST /v1/users?api_key=039c501ac8dfcac91c6f05601cee876e1cc07e17

Body

application/json

Bulk API request

requests
EngineAPIRequest · object[]
required

An array of request objects

Required array length: 1 - 100 elements

Response

Successful Response

Bulk API response

data
BulkIndividualResponse · object[]
required

The bulk request results

errors
boolean
required

Whether there is any errors in the responses