Create import destination
curl --request POST \
--url https://api.prequel.co/import/destinations \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"destination": {
"type": "<unknown>",
"webhook_record": {
"request_template": {
"uri": "<string>",
"headers": {},
"body": "<string>"
},
"max_records_per_minute": 3000,
"max_concurrency": 1
},
"name": "<string>",
"record_schema": "<unknown>"
}
}
'import requests
url = "https://api.prequel.co/import/destinations"
payload = { "destination": {
"type": "<unknown>",
"webhook_record": {
"request_template": {
"uri": "<string>",
"headers": {},
"body": "<string>"
},
"max_records_per_minute": 3000,
"max_concurrency": 1
},
"name": "<string>",
"record_schema": "<unknown>"
} }
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
destination: {
type: '<unknown>',
webhook_record: {
request_template: {uri: '<string>', headers: {}, body: JSON.stringify('<string>')},
max_records_per_minute: 3000,
max_concurrency: 1
},
name: '<string>',
record_schema: '<unknown>'
}
})
};
fetch('https://api.prequel.co/import/destinations', 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.prequel.co/import/destinations",
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([
'destination' => [
'type' => '<unknown>',
'webhook_record' => [
'request_template' => [
'uri' => '<string>',
'headers' => [
],
'body' => '<string>'
],
'max_records_per_minute' => 3000,
'max_concurrency' => 1
],
'name' => '<string>',
'record_schema' => '<unknown>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$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.prequel.co/import/destinations"
payload := strings.NewReader("{\n \"destination\": {\n \"type\": \"<unknown>\",\n \"webhook_record\": {\n \"request_template\": {\n \"uri\": \"<string>\",\n \"headers\": {},\n \"body\": \"<string>\"\n },\n \"max_records_per_minute\": 3000,\n \"max_concurrency\": 1\n },\n \"name\": \"<string>\",\n \"record_schema\": \"<unknown>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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.prequel.co/import/destinations")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"destination\": {\n \"type\": \"<unknown>\",\n \"webhook_record\": {\n \"request_template\": {\n \"uri\": \"<string>\",\n \"headers\": {},\n \"body\": \"<string>\"\n },\n \"max_records_per_minute\": 3000,\n \"max_concurrency\": 1\n },\n \"name\": \"<string>\",\n \"record_schema\": \"<unknown>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prequel.co/import/destinations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"destination\": {\n \"type\": \"<unknown>\",\n \"webhook_record\": {\n \"request_template\": {\n \"uri\": \"<string>\",\n \"headers\": {},\n \"body\": \"<string>\"\n },\n \"max_records_per_minute\": 3000,\n \"max_concurrency\": 1\n },\n \"name\": \"<string>\",\n \"record_schema\": \"<unknown>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"data": {
"destination": {
"id": "<string>",
"name": "<string>",
"type": "<string>",
"record_schema": "<unknown>",
"created_at": "<string>",
"updated_at": "<string>",
"webhook_record": {
"request_template": {
"uri": "<string>",
"headers": {},
"body": "<string>"
},
"max_records_per_minute": 123,
"max_concurrency": 123
},
"webhook_batch": {
"request_template": {
"uri": "<string>",
"headers": {},
"body": "<string>"
},
"format": "<string>",
"max_size_per_batch": 123,
"max_batches_per_minute": 123,
"max_concurrency": 123
}
}
},
"message": "<string>"
}{
"status": "<string>",
"message": "<string>",
"data": null
}{
"status": "<string>",
"message": "<string>",
"data": null
}{
"status": "<string>",
"message": "<string>",
"data": null
}{
"status": "<string>",
"message": "<string>",
"data": null
}Import Destinations
Create import destination
Add a new import destination.
POST
/
import
/
destinations
Create import destination
curl --request POST \
--url https://api.prequel.co/import/destinations \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"destination": {
"type": "<unknown>",
"webhook_record": {
"request_template": {
"uri": "<string>",
"headers": {},
"body": "<string>"
},
"max_records_per_minute": 3000,
"max_concurrency": 1
},
"name": "<string>",
"record_schema": "<unknown>"
}
}
'import requests
url = "https://api.prequel.co/import/destinations"
payload = { "destination": {
"type": "<unknown>",
"webhook_record": {
"request_template": {
"uri": "<string>",
"headers": {},
"body": "<string>"
},
"max_records_per_minute": 3000,
"max_concurrency": 1
},
"name": "<string>",
"record_schema": "<unknown>"
} }
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
destination: {
type: '<unknown>',
webhook_record: {
request_template: {uri: '<string>', headers: {}, body: JSON.stringify('<string>')},
max_records_per_minute: 3000,
max_concurrency: 1
},
name: '<string>',
record_schema: '<unknown>'
}
})
};
fetch('https://api.prequel.co/import/destinations', 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.prequel.co/import/destinations",
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([
'destination' => [
'type' => '<unknown>',
'webhook_record' => [
'request_template' => [
'uri' => '<string>',
'headers' => [
],
'body' => '<string>'
],
'max_records_per_minute' => 3000,
'max_concurrency' => 1
],
'name' => '<string>',
'record_schema' => '<unknown>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>"
],
]);
$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.prequel.co/import/destinations"
payload := strings.NewReader("{\n \"destination\": {\n \"type\": \"<unknown>\",\n \"webhook_record\": {\n \"request_template\": {\n \"uri\": \"<string>\",\n \"headers\": {},\n \"body\": \"<string>\"\n },\n \"max_records_per_minute\": 3000,\n \"max_concurrency\": 1\n },\n \"name\": \"<string>\",\n \"record_schema\": \"<unknown>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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.prequel.co/import/destinations")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"destination\": {\n \"type\": \"<unknown>\",\n \"webhook_record\": {\n \"request_template\": {\n \"uri\": \"<string>\",\n \"headers\": {},\n \"body\": \"<string>\"\n },\n \"max_records_per_minute\": 3000,\n \"max_concurrency\": 1\n },\n \"name\": \"<string>\",\n \"record_schema\": \"<unknown>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.prequel.co/import/destinations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"destination\": {\n \"type\": \"<unknown>\",\n \"webhook_record\": {\n \"request_template\": {\n \"uri\": \"<string>\",\n \"headers\": {},\n \"body\": \"<string>\"\n },\n \"max_records_per_minute\": 3000,\n \"max_concurrency\": 1\n },\n \"name\": \"<string>\",\n \"record_schema\": \"<unknown>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"status": "<string>",
"data": {
"destination": {
"id": "<string>",
"name": "<string>",
"type": "<string>",
"record_schema": "<unknown>",
"created_at": "<string>",
"updated_at": "<string>",
"webhook_record": {
"request_template": {
"uri": "<string>",
"headers": {},
"body": "<string>"
},
"max_records_per_minute": 123,
"max_concurrency": 123
},
"webhook_batch": {
"request_template": {
"uri": "<string>",
"headers": {},
"body": "<string>"
},
"format": "<string>",
"max_size_per_batch": 123,
"max_batches_per_minute": 123,
"max_concurrency": 123
}
}
},
"message": "<string>"
}{
"status": "<string>",
"message": "<string>",
"data": null
}{
"status": "<string>",
"message": "<string>",
"data": null
}{
"status": "<string>",
"message": "<string>",
"data": null
}{
"status": "<string>",
"message": "<string>",
"data": null
}Authorizations
Body
application/json
- HTTP Record Configuration
- HTTP Batch Configuration
Show child attributes
Show child attributes
⌘I