Skip to main content
POST
/
api
/
v1
/
passthrough
Make Passthrough Request
curl --request POST \
  --url https://api.bindbee.dev/api/v1/passthrough \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-connector-token: <x-connector-token>' \
  --data '
{
  "path": "<string>",
  "headers": {
    "Content-Type": "application/json"
  },
  "params": {
    "a": 1,
    "b": 2
  },
  "data": {
    "a": 1,
    "b": 2
  },
  "request_format": "JSON",
  "response_format": "JSON",
  "timeout": 300
}
'
import requests

url = "https://api.bindbee.dev/api/v1/passthrough"

payload = {
"path": "<string>",
"headers": { "Content-Type": "application/json" },
"params": {
"a": 1,
"b": 2
},
"data": {
"a": 1,
"b": 2
},
"request_format": "JSON",
"response_format": "JSON",
"timeout": 300
}
headers = {
"x-connector-token": "<x-connector-token>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

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

print(response.text)
const options = {
method: 'POST',
headers: {
'x-connector-token': '<x-connector-token>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
path: '<string>',
headers: {'Content-Type': 'application/json'},
params: {a: 1, b: 2},
data: {a: 1, b: 2},
request_format: 'JSON',
response_format: 'JSON',
timeout: 300
})
};

fetch('https://api.bindbee.dev/api/v1/passthrough', 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.bindbee.dev/api/v1/passthrough",
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([
'path' => '<string>',
'headers' => [
'Content-Type' => 'application/json'
],
'params' => [
'a' => 1,
'b' => 2
],
'data' => [
'a' => 1,
'b' => 2
],
'request_format' => 'JSON',
'response_format' => 'JSON',
'timeout' => 300
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"x-connector-token: <x-connector-token>"
],
]);

$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.bindbee.dev/api/v1/passthrough"

payload := strings.NewReader("{\n \"path\": \"<string>\",\n \"headers\": {\n \"Content-Type\": \"application/json\"\n },\n \"params\": {\n \"a\": 1,\n \"b\": 2\n },\n \"data\": {\n \"a\": 1,\n \"b\": 2\n },\n \"request_format\": \"JSON\",\n \"response_format\": \"JSON\",\n \"timeout\": 300\n}")

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

req.Header.Add("x-connector-token", "<x-connector-token>")
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.bindbee.dev/api/v1/passthrough")
.header("x-connector-token", "<x-connector-token>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"path\": \"<string>\",\n \"headers\": {\n \"Content-Type\": \"application/json\"\n },\n \"params\": {\n \"a\": 1,\n \"b\": 2\n },\n \"data\": {\n \"a\": 1,\n \"b\": 2\n },\n \"request_format\": \"JSON\",\n \"response_format\": \"JSON\",\n \"timeout\": 300\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.bindbee.dev/api/v1/passthrough")

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

request = Net::HTTP::Post.new(url)
request["x-connector-token"] = '<x-connector-token>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"path\": \"<string>\",\n \"headers\": {\n \"Content-Type\": \"application/json\"\n },\n \"params\": {\n \"a\": 1,\n \"b\": 2\n },\n \"data\": {\n \"a\": 1,\n \"b\": 2\n },\n \"request_format\": \"JSON\",\n \"response_format\": \"JSON\",\n \"timeout\": 300\n}"

response = http.request(request)
puts response.read_body
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-connector-token
string
required

Body

application/json
method
enum<string>
required

Method of the request

Available options:
CONNECT,
DELETE,
GET,
HEAD,
OPTIONS,
PATCH,
POST,
PUT,
TRACE
Example:

"POST"

path
string
required

Path of the request

Example:

"/employees"

headers
headers · object | null
required

headers of the request

Example:
{ "Content-Type": "application/json" }
params
params · object | null

params of the request

Example:
{ "a": 1, "b": 2 }
data

Body of the request

Example:
{ "a": 1, "b": 2 }
request_format
enum<string> | null
default:JSON

format of the request

Available options:
JSON,
XML,
MULTIPART
Example:

"JSON"

response_format
enum<string> | null
default:JSON

format of the response

Available options:
JSON,
XML,
MULTIPART
Example:

"JSON"

timeout
number | null

timeout of the request

Example:

300

Response

Successful Response