POST
/
{listen_path}
/
tyk
/
batch
Run batch request.
curl --request POST \
  --url https://{tenant}/{listen_path}/tyk/batch \
  --header 'Content-Type: application/json' \
  --header 'X-Tyk-Authorization: <api-key>' \
  --data '{
  "requests": [
    {
      "body": "",
      "headers": {
        "authorization": "1dbc83b9c431649d7698faa9797e2900f",
        "x-tyk-test": "1",
        "x-tyk-version": "1.2"
      },
      "method": "GET",
      "relative_url": "get"
    },
    {
      "body": "",
      "headers": {
        "authorization": "1dbc83b9c431649d7698faa9797e2900f",
        "x-tyk-test": "2",
        "x-tyk-version": "1.2"
      },
      "method": "GET",
      "relative_url": "get"
    }
  ],
  "suppress_parallel_execution": false
}'
[
  {
    "body": "{\"message\": \"success\"}",
    "code": 200,
    "headers": {
      "Access-Control-Allow-Credentials": [
        "true"
      ],
      "Content-Type": [
        "application/json"
      ]
    },
    "relative_url": "get"
  }
]

Authorizations

X-Tyk-Authorization
string
header
required

Api key

Path Parameters

listen_path
string
required

API listen path

Body

application/json
requests
object[] | null
suppress_parallel_execution
boolean

Response

Success.

body
string
code
integer
headers
object
relative_url
string