Forward telemetry traces to the backend collector
curl --request POST \
--url https://your-instance.example.com/api/traces \
--header 'Content-Type: application/json' \
--data '
{
"resourceSpans": [
{
"resource": {
"attributes": [
{
"key": "service.name",
"value": {
"stringValue": "tether-web"
}
},
{
"key": "service.version",
"value": {
"stringValue": "2026.05.20"
}
}
]
},
"scopeSpans": [
{
"spans": [
{
"traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
"spanId": "00f067aa0ba902b7",
"name": "POST /api/messages",
"kind": 3,
"startTimeUnixNano": "1763624641135000000",
"endTimeUnixNano": "1763624641311000000",
"attributes": [
{
"key": "http.status_code",
"value": {
"intValue": 200
}
}
]
}
]
}
]
}
]
}
'import requests
url = "https://your-instance.example.com/api/traces"
payload = { "resourceSpans": [
{
"resource": { "attributes": [
{
"key": "service.name",
"value": { "stringValue": "tether-web" }
},
{
"key": "service.version",
"value": { "stringValue": "2026.05.20" }
}
] },
"scopeSpans": [{ "spans": [
{
"traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
"spanId": "00f067aa0ba902b7",
"name": "POST /api/messages",
"kind": 3,
"startTimeUnixNano": "1763624641135000000",
"endTimeUnixNano": "1763624641311000000",
"attributes": [
{
"key": "http.status_code",
"value": { "intValue": 200 }
}
]
}
] }]
}
] }
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({
resourceSpans: [
{
resource: {
attributes: [
{key: 'service.name', value: {stringValue: 'tether-web'}},
{key: 'service.version', value: {stringValue: '2026.05.20'}}
]
},
scopeSpans: [
{
spans: [
{
traceId: '4bf92f3577b34da6a3ce929d0e0e4736',
spanId: '00f067aa0ba902b7',
name: 'POST /api/messages',
kind: 3,
startTimeUnixNano: '1763624641135000000',
endTimeUnixNano: '1763624641311000000',
attributes: [{key: 'http.status_code', value: {intValue: 200}}]
}
]
}
]
}
]
})
};
fetch('https://your-instance.example.com/api/traces', 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://your-instance.example.com/api/traces",
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([
'resourceSpans' => [
[
'resource' => [
'attributes' => [
[
'key' => 'service.name',
'value' => [
'stringValue' => 'tether-web'
]
],
[
'key' => 'service.version',
'value' => [
'stringValue' => '2026.05.20'
]
]
]
],
'scopeSpans' => [
[
'spans' => [
[
'traceId' => '4bf92f3577b34da6a3ce929d0e0e4736',
'spanId' => '00f067aa0ba902b7',
'name' => 'POST /api/messages',
'kind' => 3,
'startTimeUnixNano' => '1763624641135000000',
'endTimeUnixNano' => '1763624641311000000',
'attributes' => [
[
'key' => 'http.status_code',
'value' => [
'intValue' => 200
]
]
]
]
]
]
]
]
]
]),
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://your-instance.example.com/api/traces"
payload := strings.NewReader("{\n \"resourceSpans\": [\n {\n \"resource\": {\n \"attributes\": [\n {\n \"key\": \"service.name\",\n \"value\": {\n \"stringValue\": \"tether-web\"\n }\n },\n {\n \"key\": \"service.version\",\n \"value\": {\n \"stringValue\": \"2026.05.20\"\n }\n }\n ]\n },\n \"scopeSpans\": [\n {\n \"spans\": [\n {\n \"traceId\": \"4bf92f3577b34da6a3ce929d0e0e4736\",\n \"spanId\": \"00f067aa0ba902b7\",\n \"name\": \"POST /api/messages\",\n \"kind\": 3,\n \"startTimeUnixNano\": \"1763624641135000000\",\n \"endTimeUnixNano\": \"1763624641311000000\",\n \"attributes\": [\n {\n \"key\": \"http.status_code\",\n \"value\": {\n \"intValue\": 200\n }\n }\n ]\n }\n ]\n }\n ]\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://your-instance.example.com/api/traces")
.header("Content-Type", "application/json")
.body("{\n \"resourceSpans\": [\n {\n \"resource\": {\n \"attributes\": [\n {\n \"key\": \"service.name\",\n \"value\": {\n \"stringValue\": \"tether-web\"\n }\n },\n {\n \"key\": \"service.version\",\n \"value\": {\n \"stringValue\": \"2026.05.20\"\n }\n }\n ]\n },\n \"scopeSpans\": [\n {\n \"spans\": [\n {\n \"traceId\": \"4bf92f3577b34da6a3ce929d0e0e4736\",\n \"spanId\": \"00f067aa0ba902b7\",\n \"name\": \"POST /api/messages\",\n \"kind\": 3,\n \"startTimeUnixNano\": \"1763624641135000000\",\n \"endTimeUnixNano\": \"1763624641311000000\",\n \"attributes\": [\n {\n \"key\": \"http.status_code\",\n \"value\": {\n \"intValue\": 200\n }\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/traces")
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 \"resourceSpans\": [\n {\n \"resource\": {\n \"attributes\": [\n {\n \"key\": \"service.name\",\n \"value\": {\n \"stringValue\": \"tether-web\"\n }\n },\n {\n \"key\": \"service.version\",\n \"value\": {\n \"stringValue\": \"2026.05.20\"\n }\n }\n ]\n },\n \"scopeSpans\": [\n {\n \"spans\": [\n {\n \"traceId\": \"4bf92f3577b34da6a3ce929d0e0e4736\",\n \"spanId\": \"00f067aa0ba902b7\",\n \"name\": \"POST /api/messages\",\n \"kind\": 3,\n \"startTimeUnixNano\": \"1763624641135000000\",\n \"endTimeUnixNano\": \"1763624641311000000\",\n \"attributes\": [\n {\n \"key\": \"http.status_code\",\n \"value\": {\n \"intValue\": 200\n }\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "accepted"
}Telemetry
Forward telemetry traces to the backend collector
Accepts an OpenTelemetry-compatible trace payload from a client (browser SDK, mobile, or another service) and forwards it to the backend collector for ingestion. Fire-and-forget: the API returns 202 once the payload is queued; downstream processing failures are not surfaced to the caller.
POST
/
api
/
traces
Forward telemetry traces to the backend collector
curl --request POST \
--url https://your-instance.example.com/api/traces \
--header 'Content-Type: application/json' \
--data '
{
"resourceSpans": [
{
"resource": {
"attributes": [
{
"key": "service.name",
"value": {
"stringValue": "tether-web"
}
},
{
"key": "service.version",
"value": {
"stringValue": "2026.05.20"
}
}
]
},
"scopeSpans": [
{
"spans": [
{
"traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
"spanId": "00f067aa0ba902b7",
"name": "POST /api/messages",
"kind": 3,
"startTimeUnixNano": "1763624641135000000",
"endTimeUnixNano": "1763624641311000000",
"attributes": [
{
"key": "http.status_code",
"value": {
"intValue": 200
}
}
]
}
]
}
]
}
]
}
'import requests
url = "https://your-instance.example.com/api/traces"
payload = { "resourceSpans": [
{
"resource": { "attributes": [
{
"key": "service.name",
"value": { "stringValue": "tether-web" }
},
{
"key": "service.version",
"value": { "stringValue": "2026.05.20" }
}
] },
"scopeSpans": [{ "spans": [
{
"traceId": "4bf92f3577b34da6a3ce929d0e0e4736",
"spanId": "00f067aa0ba902b7",
"name": "POST /api/messages",
"kind": 3,
"startTimeUnixNano": "1763624641135000000",
"endTimeUnixNano": "1763624641311000000",
"attributes": [
{
"key": "http.status_code",
"value": { "intValue": 200 }
}
]
}
] }]
}
] }
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({
resourceSpans: [
{
resource: {
attributes: [
{key: 'service.name', value: {stringValue: 'tether-web'}},
{key: 'service.version', value: {stringValue: '2026.05.20'}}
]
},
scopeSpans: [
{
spans: [
{
traceId: '4bf92f3577b34da6a3ce929d0e0e4736',
spanId: '00f067aa0ba902b7',
name: 'POST /api/messages',
kind: 3,
startTimeUnixNano: '1763624641135000000',
endTimeUnixNano: '1763624641311000000',
attributes: [{key: 'http.status_code', value: {intValue: 200}}]
}
]
}
]
}
]
})
};
fetch('https://your-instance.example.com/api/traces', 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://your-instance.example.com/api/traces",
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([
'resourceSpans' => [
[
'resource' => [
'attributes' => [
[
'key' => 'service.name',
'value' => [
'stringValue' => 'tether-web'
]
],
[
'key' => 'service.version',
'value' => [
'stringValue' => '2026.05.20'
]
]
]
],
'scopeSpans' => [
[
'spans' => [
[
'traceId' => '4bf92f3577b34da6a3ce929d0e0e4736',
'spanId' => '00f067aa0ba902b7',
'name' => 'POST /api/messages',
'kind' => 3,
'startTimeUnixNano' => '1763624641135000000',
'endTimeUnixNano' => '1763624641311000000',
'attributes' => [
[
'key' => 'http.status_code',
'value' => [
'intValue' => 200
]
]
]
]
]
]
]
]
]
]),
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://your-instance.example.com/api/traces"
payload := strings.NewReader("{\n \"resourceSpans\": [\n {\n \"resource\": {\n \"attributes\": [\n {\n \"key\": \"service.name\",\n \"value\": {\n \"stringValue\": \"tether-web\"\n }\n },\n {\n \"key\": \"service.version\",\n \"value\": {\n \"stringValue\": \"2026.05.20\"\n }\n }\n ]\n },\n \"scopeSpans\": [\n {\n \"spans\": [\n {\n \"traceId\": \"4bf92f3577b34da6a3ce929d0e0e4736\",\n \"spanId\": \"00f067aa0ba902b7\",\n \"name\": \"POST /api/messages\",\n \"kind\": 3,\n \"startTimeUnixNano\": \"1763624641135000000\",\n \"endTimeUnixNano\": \"1763624641311000000\",\n \"attributes\": [\n {\n \"key\": \"http.status_code\",\n \"value\": {\n \"intValue\": 200\n }\n }\n ]\n }\n ]\n }\n ]\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://your-instance.example.com/api/traces")
.header("Content-Type", "application/json")
.body("{\n \"resourceSpans\": [\n {\n \"resource\": {\n \"attributes\": [\n {\n \"key\": \"service.name\",\n \"value\": {\n \"stringValue\": \"tether-web\"\n }\n },\n {\n \"key\": \"service.version\",\n \"value\": {\n \"stringValue\": \"2026.05.20\"\n }\n }\n ]\n },\n \"scopeSpans\": [\n {\n \"spans\": [\n {\n \"traceId\": \"4bf92f3577b34da6a3ce929d0e0e4736\",\n \"spanId\": \"00f067aa0ba902b7\",\n \"name\": \"POST /api/messages\",\n \"kind\": 3,\n \"startTimeUnixNano\": \"1763624641135000000\",\n \"endTimeUnixNano\": \"1763624641311000000\",\n \"attributes\": [\n {\n \"key\": \"http.status_code\",\n \"value\": {\n \"intValue\": 200\n }\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/traces")
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 \"resourceSpans\": [\n {\n \"resource\": {\n \"attributes\": [\n {\n \"key\": \"service.name\",\n \"value\": {\n \"stringValue\": \"tether-web\"\n }\n },\n {\n \"key\": \"service.version\",\n \"value\": {\n \"stringValue\": \"2026.05.20\"\n }\n }\n ]\n },\n \"scopeSpans\": [\n {\n \"spans\": [\n {\n \"traceId\": \"4bf92f3577b34da6a3ce929d0e0e4736\",\n \"spanId\": \"00f067aa0ba902b7\",\n \"name\": \"POST /api/messages\",\n \"kind\": 3,\n \"startTimeUnixNano\": \"1763624641135000000\",\n \"endTimeUnixNano\": \"1763624641311000000\",\n \"attributes\": [\n {\n \"key\": \"http.status_code\",\n \"value\": {\n \"intValue\": 200\n }\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "accepted"
}Body
application/json
OpenTelemetry trace payload (any shape). The body is forwarded verbatim to the configured collector (Axiom) — Tether does not parse it, so any OTLP-JSON or vendor-extended structure works.
Response
202 - application/json
Traces accepted
Always accepted — the API queues the payload synchronously and returns; downstream collector failures are not surfaced.
Available options:
accepted ⌘I