curl --request POST \
--url https://api.valar.space/operations/measurements \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'files=<string>' \
--form files.items='@example-file'import requests
url = "https://api.valar.space/operations/measurements"
files = { "files.items": ("example-file", open("example-file", "rb")) }
payload = { "files": "<string>" }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('files', '<string>');
form.append('files.items', '{
"fileName": "example-file"
}');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://api.valar.space/operations/measurements', 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.valar.space/operations/measurements",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: multipart/form-data"
],
]);
$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.valar.space/operations/measurements"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.valar.space/operations/measurements")
.header("Authorization", "Bearer <token>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.valar.space/operations/measurements")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"failureCount": 2,
"results": [
{
"code": "import.tracking.tdm.parse_failed",
"errorCode": "TRK-4001",
"errors": [
{
"blockId": "block-1",
"code": "TRK-4006",
"firstEpoch": "2026-04-27T01:14:29.9Z",
"message": "Ambiguous Doppler correction state: YES"
}
],
"filename": "tracking_data_001.tdm",
"jobId": "550e8400-e29b-41d4-a716-446655440000",
"measurementContext": {
"endDate": "2023-11-07T05:31:56Z",
"measurementTypes": [
"<string>"
],
"spacecraftIds": [
"<string>"
],
"startDate": "2023-11-07T05:31:56Z"
},
"message": "Successfully processed 150 measurements",
"params": {},
"status": "success",
"uncertaintySummary": "<string>"
}
],
"successCount": 5,
"totalCount": 7
}{
"failureCount": 2,
"results": [
{
"code": "import.tracking.tdm.parse_failed",
"errorCode": "TRK-4001",
"errors": [
{
"blockId": "block-1",
"code": "TRK-4006",
"firstEpoch": "2026-04-27T01:14:29.9Z",
"message": "Ambiguous Doppler correction state: YES"
}
],
"filename": "tracking_data_001.tdm",
"jobId": "550e8400-e29b-41d4-a716-446655440000",
"measurementContext": {
"endDate": "2023-11-07T05:31:56Z",
"measurementTypes": [
"<string>"
],
"spacecraftIds": [
"<string>"
],
"startDate": "2023-11-07T05:31:56Z"
},
"message": "Successfully processed 150 measurements",
"params": {},
"status": "success",
"uncertaintySummary": "<string>"
}
],
"successCount": 5,
"totalCount": 7
}{
"timestamp": "2025-01-15T10:30:00.000Z",
"status": 400,
"error": "Bad Request",
"message": "No files provided",
"path": "/operations/measurements"
}{
"error": "invalid_token",
"error_description": "An error occurred while attempting to decode the Jwt"
}{
"timestamp": "2025-01-15T10:30:00.000Z",
"status": 403,
"error": "ACCESS_ERROR",
"message": "Access denied",
"path": "/operations/measurements"
}{
"timestamp": "2025-01-15T10:30:00.000Z",
"status": 409,
"error": "IMPORT_STALE_PREVIEW",
"code": "import.commit.preview.stale",
"message": "Content hash mismatch: the preview you inspected is stale",
"path": "/operations/measurements"
}{
"timestamp": "2025-01-15T10:30:00.000Z",
"status": 413,
"error": "Payload Too Large",
"message": "File size exceeds the maximum allowed limit",
"path": "/operations/measurements"
}{
"timestamp": "2025-01-15T10:30:00.000Z",
"status": 500,
"error": "Internal Server Error",
"message": "An unexpected error occurred",
"path": "/operations/measurements"
}Upload measurement files
Upload one or more measurement files for asynchronous processing. Supported formats: TDM (Tracking Data Message), SP3 (Standard Product 3), and OEM (Orbit Ephemeris Message). Each file is validated synchronously and then queued as a background job for full processing. The response includes per-file results with job IDs for tracking processing status.
curl --request POST \
--url https://api.valar.space/operations/measurements \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'files=<string>' \
--form files.items='@example-file'import requests
url = "https://api.valar.space/operations/measurements"
files = { "files.items": ("example-file", open("example-file", "rb")) }
payload = { "files": "<string>" }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('files', '<string>');
form.append('files.items', '{
"fileName": "example-file"
}');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://api.valar.space/operations/measurements', 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.valar.space/operations/measurements",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: multipart/form-data"
],
]);
$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.valar.space/operations/measurements"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.valar.space/operations/measurements")
.header("Authorization", "Bearer <token>")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.valar.space/operations/measurements")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files\"\r\n\r\n<string>\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"files.items\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n{\r\n \"fileName\": \"example-file\"\r\n}\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"failureCount": 2,
"results": [
{
"code": "import.tracking.tdm.parse_failed",
"errorCode": "TRK-4001",
"errors": [
{
"blockId": "block-1",
"code": "TRK-4006",
"firstEpoch": "2026-04-27T01:14:29.9Z",
"message": "Ambiguous Doppler correction state: YES"
}
],
"filename": "tracking_data_001.tdm",
"jobId": "550e8400-e29b-41d4-a716-446655440000",
"measurementContext": {
"endDate": "2023-11-07T05:31:56Z",
"measurementTypes": [
"<string>"
],
"spacecraftIds": [
"<string>"
],
"startDate": "2023-11-07T05:31:56Z"
},
"message": "Successfully processed 150 measurements",
"params": {},
"status": "success",
"uncertaintySummary": "<string>"
}
],
"successCount": 5,
"totalCount": 7
}{
"failureCount": 2,
"results": [
{
"code": "import.tracking.tdm.parse_failed",
"errorCode": "TRK-4001",
"errors": [
{
"blockId": "block-1",
"code": "TRK-4006",
"firstEpoch": "2026-04-27T01:14:29.9Z",
"message": "Ambiguous Doppler correction state: YES"
}
],
"filename": "tracking_data_001.tdm",
"jobId": "550e8400-e29b-41d4-a716-446655440000",
"measurementContext": {
"endDate": "2023-11-07T05:31:56Z",
"measurementTypes": [
"<string>"
],
"spacecraftIds": [
"<string>"
],
"startDate": "2023-11-07T05:31:56Z"
},
"message": "Successfully processed 150 measurements",
"params": {},
"status": "success",
"uncertaintySummary": "<string>"
}
],
"successCount": 5,
"totalCount": 7
}{
"timestamp": "2025-01-15T10:30:00.000Z",
"status": 400,
"error": "Bad Request",
"message": "No files provided",
"path": "/operations/measurements"
}{
"error": "invalid_token",
"error_description": "An error occurred while attempting to decode the Jwt"
}{
"timestamp": "2025-01-15T10:30:00.000Z",
"status": 403,
"error": "ACCESS_ERROR",
"message": "Access denied",
"path": "/operations/measurements"
}{
"timestamp": "2025-01-15T10:30:00.000Z",
"status": 409,
"error": "IMPORT_STALE_PREVIEW",
"code": "import.commit.preview.stale",
"message": "Content hash mismatch: the preview you inspected is stale",
"path": "/operations/measurements"
}{
"timestamp": "2025-01-15T10:30:00.000Z",
"status": 413,
"error": "Payload Too Large",
"message": "File size exceeds the maximum allowed limit",
"path": "/operations/measurements"
}{
"timestamp": "2025-01-15T10:30:00.000Z",
"status": 500,
"error": "Internal Server Error",
"message": "An unexpected error occurred",
"path": "/operations/measurements"
}Authorizations
API Key (format: vsp_sk_...)
Headers
SHA-256 content hash from a prior /imports/inspect call. When present and exactly one file is uploaded, the server re-verifies this hash against the uploaded content and returns 409 IMPORT_STALE_PREVIEW on mismatch. Ignored (with a DEBUG log) for multi-file batch uploads, since the header cannot unambiguously bind to one of several files.
Body
Measurement files to upload (TDM, SP3, OEM formats)
Response
Files accepted for processing
Response from a batch file upload operation
The number of files that failed to process
2
Individual results for each file in the batch
Show child attributes
Show child attributes
The number of successfully processed files
5
The total number of files processed
7
Was this page helpful?