Create a new export
curl --request POST \
--url https://api.eu.bronto.io/exports \
--header 'Content-Type: application/json' \
--header 'X-BRONTO-API-KEY: <api-key>' \
--data '
{
"search_details": {
"from": "550e8400-e29b-41d4-a716-446655440000:297bb888-83b1-44e0-8ab6-47879f1275a2",
"fromTs": 1709251200000,
"toTs": 1711390455601,
"where": "ip=10.0.0.1",
"time_range": "Last 3 weeks",
"timeRange": "Last 3 weeks",
"from_ts": 1709251200000,
"to_ts": 1711390455601
}
}
'import requests
url = "https://api.eu.bronto.io/exports"
payload = { "search_details": {
"from": "550e8400-e29b-41d4-a716-446655440000:297bb888-83b1-44e0-8ab6-47879f1275a2",
"fromTs": 1709251200000,
"toTs": 1711390455601,
"where": "ip=10.0.0.1",
"time_range": "Last 3 weeks",
"timeRange": "Last 3 weeks",
"from_ts": 1709251200000,
"to_ts": 1711390455601
} }
headers = {
"X-BRONTO-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-BRONTO-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
search_details: {
from: '550e8400-e29b-41d4-a716-446655440000:297bb888-83b1-44e0-8ab6-47879f1275a2',
fromTs: 1709251200000,
toTs: 1711390455601,
where: 'ip=10.0.0.1',
time_range: 'Last 3 weeks',
timeRange: 'Last 3 weeks',
from_ts: 1709251200000,
to_ts: 1711390455601
}
})
};
fetch('https://api.eu.bronto.io/exports', 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.eu.bronto.io/exports",
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([
'search_details' => [
'from' => '550e8400-e29b-41d4-a716-446655440000:297bb888-83b1-44e0-8ab6-47879f1275a2',
'fromTs' => 1709251200000,
'toTs' => 1711390455601,
'where' => 'ip=10.0.0.1',
'time_range' => 'Last 3 weeks',
'timeRange' => 'Last 3 weeks',
'from_ts' => 1709251200000,
'to_ts' => 1711390455601
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-BRONTO-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.eu.bronto.io/exports"
payload := strings.NewReader("{\n \"search_details\": {\n \"from\": \"550e8400-e29b-41d4-a716-446655440000:297bb888-83b1-44e0-8ab6-47879f1275a2\",\n \"fromTs\": 1709251200000,\n \"toTs\": 1711390455601,\n \"where\": \"ip=10.0.0.1\",\n \"time_range\": \"Last 3 weeks\",\n \"timeRange\": \"Last 3 weeks\",\n \"from_ts\": 1709251200000,\n \"to_ts\": 1711390455601\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-BRONTO-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.eu.bronto.io/exports")
.header("X-BRONTO-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"search_details\": {\n \"from\": \"550e8400-e29b-41d4-a716-446655440000:297bb888-83b1-44e0-8ab6-47879f1275a2\",\n \"fromTs\": 1709251200000,\n \"toTs\": 1711390455601,\n \"where\": \"ip=10.0.0.1\",\n \"time_range\": \"Last 3 weeks\",\n \"timeRange\": \"Last 3 weeks\",\n \"from_ts\": 1709251200000,\n \"to_ts\": 1711390455601\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eu.bronto.io/exports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-BRONTO-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"search_details\": {\n \"from\": \"550e8400-e29b-41d4-a716-446655440000:297bb888-83b1-44e0-8ab6-47879f1275a2\",\n \"fromTs\": 1709251200000,\n \"toTs\": 1711390455601,\n \"where\": \"ip=10.0.0.1\",\n \"time_range\": \"Last 3 weeks\",\n \"timeRange\": \"Last 3 weeks\",\n \"from_ts\": 1709251200000,\n \"to_ts\": 1711390455601\n }\n}"
response = http.request(request)
puts response.read_body{
"export_id": "<string>",
"org_id": "<string>",
"progress": 123,
"status": "CREATED",
"bytes": 123,
"events": 123,
"location": "<string>",
"search_details": {
"from": "550e8400-e29b-41d4-a716-446655440000:297bb888-83b1-44e0-8ab6-47879f1275a2",
"fromTs": 1709251200000,
"toTs": 1711390455601,
"where": "ip=10.0.0.1",
"time_range": "Last 3 weeks",
"timeRange": "Last 3 weeks",
"from_ts": 1709251200000,
"to_ts": 1711390455601
},
"created_at": 123,
"modified_at": 123,
"failure_detail": "<string>"
}{
"code": 201,
"correlation_id": "<string>",
"message": "<string>"
}{
"code": 201,
"correlation_id": "<string>",
"message": "<string>"
}exports
Create a new export
Creates an export from either explicit log ids in from or a dataset selector in from_expr. When from_expr is supplied, it is resolved at creation time and the resulting log ids are persisted in search_details.from for export processing.
POST
/
exports
Create a new export
curl --request POST \
--url https://api.eu.bronto.io/exports \
--header 'Content-Type: application/json' \
--header 'X-BRONTO-API-KEY: <api-key>' \
--data '
{
"search_details": {
"from": "550e8400-e29b-41d4-a716-446655440000:297bb888-83b1-44e0-8ab6-47879f1275a2",
"fromTs": 1709251200000,
"toTs": 1711390455601,
"where": "ip=10.0.0.1",
"time_range": "Last 3 weeks",
"timeRange": "Last 3 weeks",
"from_ts": 1709251200000,
"to_ts": 1711390455601
}
}
'import requests
url = "https://api.eu.bronto.io/exports"
payload = { "search_details": {
"from": "550e8400-e29b-41d4-a716-446655440000:297bb888-83b1-44e0-8ab6-47879f1275a2",
"fromTs": 1709251200000,
"toTs": 1711390455601,
"where": "ip=10.0.0.1",
"time_range": "Last 3 weeks",
"timeRange": "Last 3 weeks",
"from_ts": 1709251200000,
"to_ts": 1711390455601
} }
headers = {
"X-BRONTO-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-BRONTO-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
search_details: {
from: '550e8400-e29b-41d4-a716-446655440000:297bb888-83b1-44e0-8ab6-47879f1275a2',
fromTs: 1709251200000,
toTs: 1711390455601,
where: 'ip=10.0.0.1',
time_range: 'Last 3 weeks',
timeRange: 'Last 3 weeks',
from_ts: 1709251200000,
to_ts: 1711390455601
}
})
};
fetch('https://api.eu.bronto.io/exports', 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.eu.bronto.io/exports",
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([
'search_details' => [
'from' => '550e8400-e29b-41d4-a716-446655440000:297bb888-83b1-44e0-8ab6-47879f1275a2',
'fromTs' => 1709251200000,
'toTs' => 1711390455601,
'where' => 'ip=10.0.0.1',
'time_range' => 'Last 3 weeks',
'timeRange' => 'Last 3 weeks',
'from_ts' => 1709251200000,
'to_ts' => 1711390455601
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-BRONTO-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.eu.bronto.io/exports"
payload := strings.NewReader("{\n \"search_details\": {\n \"from\": \"550e8400-e29b-41d4-a716-446655440000:297bb888-83b1-44e0-8ab6-47879f1275a2\",\n \"fromTs\": 1709251200000,\n \"toTs\": 1711390455601,\n \"where\": \"ip=10.0.0.1\",\n \"time_range\": \"Last 3 weeks\",\n \"timeRange\": \"Last 3 weeks\",\n \"from_ts\": 1709251200000,\n \"to_ts\": 1711390455601\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-BRONTO-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.eu.bronto.io/exports")
.header("X-BRONTO-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"search_details\": {\n \"from\": \"550e8400-e29b-41d4-a716-446655440000:297bb888-83b1-44e0-8ab6-47879f1275a2\",\n \"fromTs\": 1709251200000,\n \"toTs\": 1711390455601,\n \"where\": \"ip=10.0.0.1\",\n \"time_range\": \"Last 3 weeks\",\n \"timeRange\": \"Last 3 weeks\",\n \"from_ts\": 1709251200000,\n \"to_ts\": 1711390455601\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eu.bronto.io/exports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-BRONTO-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"search_details\": {\n \"from\": \"550e8400-e29b-41d4-a716-446655440000:297bb888-83b1-44e0-8ab6-47879f1275a2\",\n \"fromTs\": 1709251200000,\n \"toTs\": 1711390455601,\n \"where\": \"ip=10.0.0.1\",\n \"time_range\": \"Last 3 weeks\",\n \"timeRange\": \"Last 3 weeks\",\n \"from_ts\": 1709251200000,\n \"to_ts\": 1711390455601\n }\n}"
response = http.request(request)
puts response.read_body{
"export_id": "<string>",
"org_id": "<string>",
"progress": 123,
"status": "CREATED",
"bytes": 123,
"events": 123,
"location": "<string>",
"search_details": {
"from": "550e8400-e29b-41d4-a716-446655440000:297bb888-83b1-44e0-8ab6-47879f1275a2",
"fromTs": 1709251200000,
"toTs": 1711390455601,
"where": "ip=10.0.0.1",
"time_range": "Last 3 weeks",
"timeRange": "Last 3 weeks",
"from_ts": 1709251200000,
"to_ts": 1711390455601
},
"created_at": 123,
"modified_at": 123,
"failure_detail": "<string>"
}{
"code": 201,
"correlation_id": "<string>",
"message": "<string>"
}{
"code": 201,
"correlation_id": "<string>",
"message": "<string>"
}Authorizations
ApiKeyAuthBearerAuth
Body
application/json
- Option 1
- Option 2
- Option 3
- Option 4
Show child attributes
Show child attributes
Response
Export created successfully
The unique identifier for the export.
The ID of the organization associated with the export.
The progress percentage of the export.
The current status of the export.
Available options:
CREATED, IN_PROGRESS, COMPLETE The size of the export in bytes.
The number of events in the export.
The location where the export is stored.
- Option 1
- Option 2
- Option 3
- Option 4
Show child attributes
Show child attributes
The timestamp when the export was created.
The timestamp when the export was last modified.
Provides the reason for the failure if the export did not complete successfully.

