Track
curl --request POST \
--url https://api.korve.dev/v1/telemetry/events \
--header 'Content-Type: application/json' \
--data '
{
"events": [
{
"name": "cli_installed",
"at": "2023-11-07T05:31:56Z",
"properties": {
"channel": "shell"
},
"anonymousId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
'import requests
url = "https://api.korve.dev/v1/telemetry/events"
payload = { "events": [
{
"name": "cli_installed",
"at": "2023-11-07T05:31:56Z",
"properties": { "channel": "shell" },
"anonymousId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
events: [
{
name: 'cli_installed',
at: '2023-11-07T05:31:56Z',
properties: {channel: 'shell'},
anonymousId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
organizationId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
]
})
};
fetch('https://api.korve.dev/v1/telemetry/events', 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.korve.dev/v1/telemetry/events",
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([
'events' => [
[
'name' => 'cli_installed',
'at' => '2023-11-07T05:31:56Z',
'properties' => [
'channel' => 'shell'
],
'anonymousId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'organizationId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.korve.dev/v1/telemetry/events"
payload := strings.NewReader("{\n \"events\": [\n {\n \"name\": \"cli_installed\",\n \"at\": \"2023-11-07T05:31:56Z\",\n \"properties\": {\n \"channel\": \"shell\"\n },\n \"anonymousId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"organizationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
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.korve.dev/v1/telemetry/events")
.header("Content-Type", "application/json")
.body("{\n \"events\": [\n {\n \"name\": \"cli_installed\",\n \"at\": \"2023-11-07T05:31:56Z\",\n \"properties\": {\n \"channel\": \"shell\"\n },\n \"anonymousId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"organizationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.korve.dev/v1/telemetry/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"events\": [\n {\n \"name\": \"cli_installed\",\n \"at\": \"2023-11-07T05:31:56Z\",\n \"properties\": {\n \"channel\": \"shell\"\n },\n \"anonymousId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"organizationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"accepted": 10
}productTelemetry
Track
Accept a bounded batch of public allowlisted events with a closed low-cardinality property schema per event. Raw network addresses, secrets, personal data, nested objects, arbitrary property names, and authoritative lifecycle claims are rejected.
POST
/
v1
/
telemetry
/
events
Track
curl --request POST \
--url https://api.korve.dev/v1/telemetry/events \
--header 'Content-Type: application/json' \
--data '
{
"events": [
{
"name": "cli_installed",
"at": "2023-11-07T05:31:56Z",
"properties": {
"channel": "shell"
},
"anonymousId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
]
}
'import requests
url = "https://api.korve.dev/v1/telemetry/events"
payload = { "events": [
{
"name": "cli_installed",
"at": "2023-11-07T05:31:56Z",
"properties": { "channel": "shell" },
"anonymousId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
] }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
events: [
{
name: 'cli_installed',
at: '2023-11-07T05:31:56Z',
properties: {channel: 'shell'},
anonymousId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
organizationId: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
}
]
})
};
fetch('https://api.korve.dev/v1/telemetry/events', 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.korve.dev/v1/telemetry/events",
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([
'events' => [
[
'name' => 'cli_installed',
'at' => '2023-11-07T05:31:56Z',
'properties' => [
'channel' => 'shell'
],
'anonymousId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'organizationId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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.korve.dev/v1/telemetry/events"
payload := strings.NewReader("{\n \"events\": [\n {\n \"name\": \"cli_installed\",\n \"at\": \"2023-11-07T05:31:56Z\",\n \"properties\": {\n \"channel\": \"shell\"\n },\n \"anonymousId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"organizationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
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.korve.dev/v1/telemetry/events")
.header("Content-Type", "application/json")
.body("{\n \"events\": [\n {\n \"name\": \"cli_installed\",\n \"at\": \"2023-11-07T05:31:56Z\",\n \"properties\": {\n \"channel\": \"shell\"\n },\n \"anonymousId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"organizationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.korve.dev/v1/telemetry/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"events\": [\n {\n \"name\": \"cli_installed\",\n \"at\": \"2023-11-07T05:31:56Z\",\n \"properties\": {\n \"channel\": \"shell\"\n },\n \"anonymousId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"organizationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"accepted": 10
}Body
application/json
Required array length:
1 - 20 elements- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
Show child attributes
Show child attributes
Response
The bounded event batch was accepted for first-party storage.
Required range:
1 <= x <= 20