Trigger a job export
curl --request POST \
--url https://api.cloneable.ai/exports/{exportType} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"file_id": "<string>",
"katapult_key_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"export_type": "node",
"node_url": "<string>",
"job_id": "<string>",
"node_id": "<string>",
"connection_id": "<string>",
"section_id": "<string>",
"skip_existing": true,
"attachments": [
{
"manual_height": "<string>",
"height": "<string>",
"pixel_selection": [
{
"percentX": 123,
"percentY": 123
}
],
"type": "<string>"
}
],
"elements": [
null
],
"traces": [
{
"trace_type": "<string>",
"element_indices": [
123
],
"attributes": {}
}
]
}
'import requests
url = "https://api.cloneable.ai/exports/{exportType}"
payload = {
"file_id": "<string>",
"katapult_key_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"export_type": "node",
"node_url": "<string>",
"job_id": "<string>",
"node_id": "<string>",
"connection_id": "<string>",
"section_id": "<string>",
"skip_existing": True,
"attachments": [
{
"manual_height": "<string>",
"height": "<string>",
"pixel_selection": [
{
"percentX": 123,
"percentY": 123
}
],
"type": "<string>"
}
],
"elements": [None],
"traces": [
{
"trace_type": "<string>",
"element_indices": [123],
"attributes": {}
}
]
}
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({
file_id: '<string>',
katapult_key_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
export_type: 'node',
node_url: '<string>',
job_id: '<string>',
node_id: '<string>',
connection_id: '<string>',
section_id: '<string>',
skip_existing: true,
attachments: [
{
manual_height: '<string>',
height: '<string>',
pixel_selection: [{percentX: 123, percentY: 123}],
type: '<string>'
}
],
elements: [null],
traces: [{trace_type: '<string>', element_indices: [123], attributes: {}}]
})
};
fetch('https://api.cloneable.ai/exports/{exportType}', 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.cloneable.ai/exports/{exportType}",
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([
'file_id' => '<string>',
'katapult_key_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'export_type' => 'node',
'node_url' => '<string>',
'job_id' => '<string>',
'node_id' => '<string>',
'connection_id' => '<string>',
'section_id' => '<string>',
'skip_existing' => true,
'attachments' => [
[
'manual_height' => '<string>',
'height' => '<string>',
'pixel_selection' => [
[
'percentX' => 123,
'percentY' => 123
]
],
'type' => '<string>'
]
],
'elements' => [
null
],
'traces' => [
[
'trace_type' => '<string>',
'element_indices' => [
123
],
'attributes' => [
]
]
]
]),
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.cloneable.ai/exports/{exportType}"
payload := strings.NewReader("{\n \"file_id\": \"<string>\",\n \"katapult_key_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"export_type\": \"node\",\n \"node_url\": \"<string>\",\n \"job_id\": \"<string>\",\n \"node_id\": \"<string>\",\n \"connection_id\": \"<string>\",\n \"section_id\": \"<string>\",\n \"skip_existing\": true,\n \"attachments\": [\n {\n \"manual_height\": \"<string>\",\n \"height\": \"<string>\",\n \"pixel_selection\": [\n {\n \"percentX\": 123,\n \"percentY\": 123\n }\n ],\n \"type\": \"<string>\"\n }\n ],\n \"elements\": [\n null\n ],\n \"traces\": [\n {\n \"trace_type\": \"<string>\",\n \"element_indices\": [\n 123\n ],\n \"attributes\": {}\n }\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.cloneable.ai/exports/{exportType}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"file_id\": \"<string>\",\n \"katapult_key_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"export_type\": \"node\",\n \"node_url\": \"<string>\",\n \"job_id\": \"<string>\",\n \"node_id\": \"<string>\",\n \"connection_id\": \"<string>\",\n \"section_id\": \"<string>\",\n \"skip_existing\": true,\n \"attachments\": [\n {\n \"manual_height\": \"<string>\",\n \"height\": \"<string>\",\n \"pixel_selection\": [\n {\n \"percentX\": 123,\n \"percentY\": 123\n }\n ],\n \"type\": \"<string>\"\n }\n ],\n \"elements\": [\n null\n ],\n \"traces\": [\n {\n \"trace_type\": \"<string>\",\n \"element_indices\": [\n 123\n ],\n \"attributes\": {}\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloneable.ai/exports/{exportType}")
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 \"file_id\": \"<string>\",\n \"katapult_key_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"export_type\": \"node\",\n \"node_url\": \"<string>\",\n \"job_id\": \"<string>\",\n \"node_id\": \"<string>\",\n \"connection_id\": \"<string>\",\n \"section_id\": \"<string>\",\n \"skip_existing\": true,\n \"attachments\": [\n {\n \"manual_height\": \"<string>\",\n \"height\": \"<string>\",\n \"pixel_selection\": [\n {\n \"percentX\": 123,\n \"percentY\": 123\n }\n ],\n \"type\": \"<string>\"\n }\n ],\n \"elements\": [\n null\n ],\n \"traces\": [\n {\n \"trace_type\": \"<string>\",\n \"element_indices\": [\n 123\n ],\n \"attributes\": {}\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>",
"exportId": "<string>",
"data": null
}{
"message": "<string>"
}{
"message": "Invalid API Key"
}{
"message": "Invalid API Key"
}{
"message": "<string>"
}{
"message": "Invalid API Key"
}{
"message": "<string>"
}{
"message": "<string>"
}Exports
Trigger a job export
Start an export for a job using a supported exportType (csv or katapult). Returns an exportId to track progress.
POST
/
exports
/
{exportType}
Trigger a job export
curl --request POST \
--url https://api.cloneable.ai/exports/{exportType} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"file_id": "<string>",
"katapult_key_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"export_type": "node",
"node_url": "<string>",
"job_id": "<string>",
"node_id": "<string>",
"connection_id": "<string>",
"section_id": "<string>",
"skip_existing": true,
"attachments": [
{
"manual_height": "<string>",
"height": "<string>",
"pixel_selection": [
{
"percentX": 123,
"percentY": 123
}
],
"type": "<string>"
}
],
"elements": [
null
],
"traces": [
{
"trace_type": "<string>",
"element_indices": [
123
],
"attributes": {}
}
]
}
'import requests
url = "https://api.cloneable.ai/exports/{exportType}"
payload = {
"file_id": "<string>",
"katapult_key_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"export_type": "node",
"node_url": "<string>",
"job_id": "<string>",
"node_id": "<string>",
"connection_id": "<string>",
"section_id": "<string>",
"skip_existing": True,
"attachments": [
{
"manual_height": "<string>",
"height": "<string>",
"pixel_selection": [
{
"percentX": 123,
"percentY": 123
}
],
"type": "<string>"
}
],
"elements": [None],
"traces": [
{
"trace_type": "<string>",
"element_indices": [123],
"attributes": {}
}
]
}
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({
file_id: '<string>',
katapult_key_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
export_type: 'node',
node_url: '<string>',
job_id: '<string>',
node_id: '<string>',
connection_id: '<string>',
section_id: '<string>',
skip_existing: true,
attachments: [
{
manual_height: '<string>',
height: '<string>',
pixel_selection: [{percentX: 123, percentY: 123}],
type: '<string>'
}
],
elements: [null],
traces: [{trace_type: '<string>', element_indices: [123], attributes: {}}]
})
};
fetch('https://api.cloneable.ai/exports/{exportType}', 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.cloneable.ai/exports/{exportType}",
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([
'file_id' => '<string>',
'katapult_key_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'export_type' => 'node',
'node_url' => '<string>',
'job_id' => '<string>',
'node_id' => '<string>',
'connection_id' => '<string>',
'section_id' => '<string>',
'skip_existing' => true,
'attachments' => [
[
'manual_height' => '<string>',
'height' => '<string>',
'pixel_selection' => [
[
'percentX' => 123,
'percentY' => 123
]
],
'type' => '<string>'
]
],
'elements' => [
null
],
'traces' => [
[
'trace_type' => '<string>',
'element_indices' => [
123
],
'attributes' => [
]
]
]
]),
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.cloneable.ai/exports/{exportType}"
payload := strings.NewReader("{\n \"file_id\": \"<string>\",\n \"katapult_key_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"export_type\": \"node\",\n \"node_url\": \"<string>\",\n \"job_id\": \"<string>\",\n \"node_id\": \"<string>\",\n \"connection_id\": \"<string>\",\n \"section_id\": \"<string>\",\n \"skip_existing\": true,\n \"attachments\": [\n {\n \"manual_height\": \"<string>\",\n \"height\": \"<string>\",\n \"pixel_selection\": [\n {\n \"percentX\": 123,\n \"percentY\": 123\n }\n ],\n \"type\": \"<string>\"\n }\n ],\n \"elements\": [\n null\n ],\n \"traces\": [\n {\n \"trace_type\": \"<string>\",\n \"element_indices\": [\n 123\n ],\n \"attributes\": {}\n }\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.cloneable.ai/exports/{exportType}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"file_id\": \"<string>\",\n \"katapult_key_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"export_type\": \"node\",\n \"node_url\": \"<string>\",\n \"job_id\": \"<string>\",\n \"node_id\": \"<string>\",\n \"connection_id\": \"<string>\",\n \"section_id\": \"<string>\",\n \"skip_existing\": true,\n \"attachments\": [\n {\n \"manual_height\": \"<string>\",\n \"height\": \"<string>\",\n \"pixel_selection\": [\n {\n \"percentX\": 123,\n \"percentY\": 123\n }\n ],\n \"type\": \"<string>\"\n }\n ],\n \"elements\": [\n null\n ],\n \"traces\": [\n {\n \"trace_type\": \"<string>\",\n \"element_indices\": [\n 123\n ],\n \"attributes\": {}\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloneable.ai/exports/{exportType}")
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 \"file_id\": \"<string>\",\n \"katapult_key_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"export_type\": \"node\",\n \"node_url\": \"<string>\",\n \"job_id\": \"<string>\",\n \"node_id\": \"<string>\",\n \"connection_id\": \"<string>\",\n \"section_id\": \"<string>\",\n \"skip_existing\": true,\n \"attachments\": [\n {\n \"manual_height\": \"<string>\",\n \"height\": \"<string>\",\n \"pixel_selection\": [\n {\n \"percentX\": 123,\n \"percentY\": 123\n }\n ],\n \"type\": \"<string>\"\n }\n ],\n \"elements\": [\n null\n ],\n \"traces\": [\n {\n \"trace_type\": \"<string>\",\n \"element_indices\": [\n 123\n ],\n \"attributes\": {}\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>",
"exportId": "<string>",
"data": null
}{
"message": "<string>"
}{
"message": "Invalid API Key"
}{
"message": "Invalid API Key"
}{
"message": "<string>"
}{
"message": "Invalid API Key"
}{
"message": "<string>"
}{
"message": "<string>"
}Authorizations
Body
application/json
Body
- Option 1
- Option 2