curl --request POST \
--url https://api.valar.space/operations/spacecraft/{spacecraftId}/payloads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"boresight": "Z+",
"fovShape": "CONICAL",
"name": "EO Camera",
"positionX": 0.1,
"positionY": 0,
"positionZ": -0.2,
"focalLengthMm": 120,
"halfAngleDeg": 30,
"halfHeightDeg": 20,
"halfWidthDeg": 10,
"offNadirAlongTrackDeg": 18,
"offNadirCrossTrackDeg": 30,
"pixelPitchUm": 5.5,
"radiusDeg": 30,
"sides": 6
}
'import requests
url = "https://api.valar.space/operations/spacecraft/{spacecraftId}/payloads"
payload = {
"boresight": "Z+",
"fovShape": "CONICAL",
"name": "EO Camera",
"positionX": 0.1,
"positionY": 0,
"positionZ": -0.2,
"focalLengthMm": 120,
"halfAngleDeg": 30,
"halfHeightDeg": 20,
"halfWidthDeg": 10,
"offNadirAlongTrackDeg": 18,
"offNadirCrossTrackDeg": 30,
"pixelPitchUm": 5.5,
"radiusDeg": 30,
"sides": 6
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
boresight: 'Z+',
fovShape: 'CONICAL',
name: 'EO Camera',
positionX: 0.1,
positionY: 0,
positionZ: -0.2,
focalLengthMm: 120,
halfAngleDeg: 30,
halfHeightDeg: 20,
halfWidthDeg: 10,
offNadirAlongTrackDeg: 18,
offNadirCrossTrackDeg: 30,
pixelPitchUm: 5.5,
radiusDeg: 30,
sides: 6
})
};
fetch('https://api.valar.space/operations/spacecraft/{spacecraftId}/payloads', 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/spacecraft/{spacecraftId}/payloads",
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([
'boresight' => 'Z+',
'fovShape' => 'CONICAL',
'name' => 'EO Camera',
'positionX' => 0.1,
'positionY' => 0,
'positionZ' => -0.2,
'focalLengthMm' => 120,
'halfAngleDeg' => 30,
'halfHeightDeg' => 20,
'halfWidthDeg' => 10,
'offNadirAlongTrackDeg' => 18,
'offNadirCrossTrackDeg' => 30,
'pixelPitchUm' => 5.5,
'radiusDeg' => 30,
'sides' => 6
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.valar.space/operations/spacecraft/{spacecraftId}/payloads"
payload := strings.NewReader("{\n \"boresight\": \"Z+\",\n \"fovShape\": \"CONICAL\",\n \"name\": \"EO Camera\",\n \"positionX\": 0.1,\n \"positionY\": 0,\n \"positionZ\": -0.2,\n \"focalLengthMm\": 120,\n \"halfAngleDeg\": 30,\n \"halfHeightDeg\": 20,\n \"halfWidthDeg\": 10,\n \"offNadirAlongTrackDeg\": 18,\n \"offNadirCrossTrackDeg\": 30,\n \"pixelPitchUm\": 5.5,\n \"radiusDeg\": 30,\n \"sides\": 6\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.valar.space/operations/spacecraft/{spacecraftId}/payloads")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"boresight\": \"Z+\",\n \"fovShape\": \"CONICAL\",\n \"name\": \"EO Camera\",\n \"positionX\": 0.1,\n \"positionY\": 0,\n \"positionZ\": -0.2,\n \"focalLengthMm\": 120,\n \"halfAngleDeg\": 30,\n \"halfHeightDeg\": 20,\n \"halfWidthDeg\": 10,\n \"offNadirAlongTrackDeg\": 18,\n \"offNadirCrossTrackDeg\": 30,\n \"pixelPitchUm\": 5.5,\n \"radiusDeg\": 30,\n \"sides\": 6\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.valar.space/operations/spacecraft/{spacecraftId}/payloads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"boresight\": \"Z+\",\n \"fovShape\": \"CONICAL\",\n \"name\": \"EO Camera\",\n \"positionX\": 0.1,\n \"positionY\": 0,\n \"positionZ\": -0.2,\n \"focalLengthMm\": 120,\n \"halfAngleDeg\": 30,\n \"halfHeightDeg\": 20,\n \"halfWidthDeg\": 10,\n \"offNadirAlongTrackDeg\": 18,\n \"offNadirCrossTrackDeg\": 30,\n \"pixelPitchUm\": 5.5,\n \"radiusDeg\": 30,\n \"sides\": 6\n}"
response = http.request(request)
puts response.read_body{
"boresight": "X+",
"focalLengthMm": 123,
"fovShape": "CONICAL",
"halfAngleDeg": 123,
"halfHeightDeg": 123,
"halfWidthDeg": 123,
"id": "<string>",
"name": "<string>",
"offNadirAlongTrackDeg": 123,
"offNadirCrossTrackDeg": 123,
"payloadIndex": 123,
"pixelPitchUm": 123,
"positionX": 123,
"positionY": 123,
"positionZ": 123,
"radiusDeg": 123,
"sides": 123
}{
"code": "import.tracking.tdm.parse_failed",
"correlationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"details": {},
"error": "Bad Request",
"fieldErrors": {},
"message": "Invalid spacecraft ID format",
"params": {},
"path": "/api/v1/stm/credentials",
"status": 400,
"timestamp": "2025-11-14T10:15:30.123Z"
}{
"error": "invalid_token",
"error_description": "An error occurred while attempting to decode the Jwt"
}{
"code": "import.tracking.tdm.parse_failed",
"correlationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"details": {},
"error": "Bad Request",
"fieldErrors": {},
"message": "Invalid spacecraft ID format",
"params": {},
"path": "/api/v1/stm/credentials",
"status": 400,
"timestamp": "2025-11-14T10:15:30.123Z"
}{
"code": "import.tracking.tdm.parse_failed",
"correlationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"details": {},
"error": "Bad Request",
"fieldErrors": {},
"message": "Invalid spacecraft ID format",
"params": {},
"path": "/api/v1/stm/credentials",
"status": 400,
"timestamp": "2025-11-14T10:15:30.123Z"
}{
"code": "import.tracking.tdm.parse_failed",
"correlationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"details": {},
"error": "Bad Request",
"fieldErrors": {},
"message": "Invalid spacecraft ID format",
"params": {},
"path": "/api/v1/stm/credentials",
"status": 400,
"timestamp": "2025-11-14T10:15:30.123Z"
}Add a payload
Adds a payload under a parent spacecraft resolved strictly by id. The server assigns the lowest-free slot index [0,7]; the 9th sensor is refused with 422 PAYLOAD_LIMIT_EXCEEDED. Returns 404 if the parent spacecraft does not exist.
curl --request POST \
--url https://api.valar.space/operations/spacecraft/{spacecraftId}/payloads \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"boresight": "Z+",
"fovShape": "CONICAL",
"name": "EO Camera",
"positionX": 0.1,
"positionY": 0,
"positionZ": -0.2,
"focalLengthMm": 120,
"halfAngleDeg": 30,
"halfHeightDeg": 20,
"halfWidthDeg": 10,
"offNadirAlongTrackDeg": 18,
"offNadirCrossTrackDeg": 30,
"pixelPitchUm": 5.5,
"radiusDeg": 30,
"sides": 6
}
'import requests
url = "https://api.valar.space/operations/spacecraft/{spacecraftId}/payloads"
payload = {
"boresight": "Z+",
"fovShape": "CONICAL",
"name": "EO Camera",
"positionX": 0.1,
"positionY": 0,
"positionZ": -0.2,
"focalLengthMm": 120,
"halfAngleDeg": 30,
"halfHeightDeg": 20,
"halfWidthDeg": 10,
"offNadirAlongTrackDeg": 18,
"offNadirCrossTrackDeg": 30,
"pixelPitchUm": 5.5,
"radiusDeg": 30,
"sides": 6
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
boresight: 'Z+',
fovShape: 'CONICAL',
name: 'EO Camera',
positionX: 0.1,
positionY: 0,
positionZ: -0.2,
focalLengthMm: 120,
halfAngleDeg: 30,
halfHeightDeg: 20,
halfWidthDeg: 10,
offNadirAlongTrackDeg: 18,
offNadirCrossTrackDeg: 30,
pixelPitchUm: 5.5,
radiusDeg: 30,
sides: 6
})
};
fetch('https://api.valar.space/operations/spacecraft/{spacecraftId}/payloads', 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/spacecraft/{spacecraftId}/payloads",
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([
'boresight' => 'Z+',
'fovShape' => 'CONICAL',
'name' => 'EO Camera',
'positionX' => 0.1,
'positionY' => 0,
'positionZ' => -0.2,
'focalLengthMm' => 120,
'halfAngleDeg' => 30,
'halfHeightDeg' => 20,
'halfWidthDeg' => 10,
'offNadirAlongTrackDeg' => 18,
'offNadirCrossTrackDeg' => 30,
'pixelPitchUm' => 5.5,
'radiusDeg' => 30,
'sides' => 6
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.valar.space/operations/spacecraft/{spacecraftId}/payloads"
payload := strings.NewReader("{\n \"boresight\": \"Z+\",\n \"fovShape\": \"CONICAL\",\n \"name\": \"EO Camera\",\n \"positionX\": 0.1,\n \"positionY\": 0,\n \"positionZ\": -0.2,\n \"focalLengthMm\": 120,\n \"halfAngleDeg\": 30,\n \"halfHeightDeg\": 20,\n \"halfWidthDeg\": 10,\n \"offNadirAlongTrackDeg\": 18,\n \"offNadirCrossTrackDeg\": 30,\n \"pixelPitchUm\": 5.5,\n \"radiusDeg\": 30,\n \"sides\": 6\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.valar.space/operations/spacecraft/{spacecraftId}/payloads")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"boresight\": \"Z+\",\n \"fovShape\": \"CONICAL\",\n \"name\": \"EO Camera\",\n \"positionX\": 0.1,\n \"positionY\": 0,\n \"positionZ\": -0.2,\n \"focalLengthMm\": 120,\n \"halfAngleDeg\": 30,\n \"halfHeightDeg\": 20,\n \"halfWidthDeg\": 10,\n \"offNadirAlongTrackDeg\": 18,\n \"offNadirCrossTrackDeg\": 30,\n \"pixelPitchUm\": 5.5,\n \"radiusDeg\": 30,\n \"sides\": 6\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.valar.space/operations/spacecraft/{spacecraftId}/payloads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"boresight\": \"Z+\",\n \"fovShape\": \"CONICAL\",\n \"name\": \"EO Camera\",\n \"positionX\": 0.1,\n \"positionY\": 0,\n \"positionZ\": -0.2,\n \"focalLengthMm\": 120,\n \"halfAngleDeg\": 30,\n \"halfHeightDeg\": 20,\n \"halfWidthDeg\": 10,\n \"offNadirAlongTrackDeg\": 18,\n \"offNadirCrossTrackDeg\": 30,\n \"pixelPitchUm\": 5.5,\n \"radiusDeg\": 30,\n \"sides\": 6\n}"
response = http.request(request)
puts response.read_body{
"boresight": "X+",
"focalLengthMm": 123,
"fovShape": "CONICAL",
"halfAngleDeg": 123,
"halfHeightDeg": 123,
"halfWidthDeg": 123,
"id": "<string>",
"name": "<string>",
"offNadirAlongTrackDeg": 123,
"offNadirCrossTrackDeg": 123,
"payloadIndex": 123,
"pixelPitchUm": 123,
"positionX": 123,
"positionY": 123,
"positionZ": 123,
"radiusDeg": 123,
"sides": 123
}{
"code": "import.tracking.tdm.parse_failed",
"correlationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"details": {},
"error": "Bad Request",
"fieldErrors": {},
"message": "Invalid spacecraft ID format",
"params": {},
"path": "/api/v1/stm/credentials",
"status": 400,
"timestamp": "2025-11-14T10:15:30.123Z"
}{
"error": "invalid_token",
"error_description": "An error occurred while attempting to decode the Jwt"
}{
"code": "import.tracking.tdm.parse_failed",
"correlationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"details": {},
"error": "Bad Request",
"fieldErrors": {},
"message": "Invalid spacecraft ID format",
"params": {},
"path": "/api/v1/stm/credentials",
"status": 400,
"timestamp": "2025-11-14T10:15:30.123Z"
}{
"code": "import.tracking.tdm.parse_failed",
"correlationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"details": {},
"error": "Bad Request",
"fieldErrors": {},
"message": "Invalid spacecraft ID format",
"params": {},
"path": "/api/v1/stm/credentials",
"status": 400,
"timestamp": "2025-11-14T10:15:30.123Z"
}{
"code": "import.tracking.tdm.parse_failed",
"correlationId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"details": {},
"error": "Bad Request",
"fieldErrors": {},
"message": "Invalid spacecraft ID format",
"params": {},
"path": "/api/v1/stm/credentials",
"status": 400,
"timestamp": "2025-11-14T10:15:30.123Z"
}Authorizations
API Key (format: vsp_sk_...)
Path Parameters
Parent spacecraft id
Body
One payload (sensor): boresight axis + four-shape field of view (DKR-1 §3.3).
Body-frame boresight axis. One of X+, X-, Y+, Y-, Z+, Z-.
X+, X-, Y+, Y-, Z+, Z- "Z+"
Field-of-view shape primitive (CONICAL, RECTANGULAR, ELLIPTICAL, POLYGON). Determines which conditional shape parameters are required.
CONICAL, RECTANGULAR, ELLIPTICAL, POLYGON "CONICAL"
Operator-supplied payload name.
100"EO Camera"
Payload mounting position X in metres (body frame; may be negative).
0.1
Payload mounting position Y in metres (body frame; may be negative).
0
Payload mounting position Z in metres (body frame; may be negative).
-0.2
Optical focal length in millimetres (mm). Optional optical characteristic for downstream modelled-GSD; when present must be positive and finite. Independent of the FOV group — partial optics is tolerated.
120
Cone half-angle in degrees (CONICAL only). Range (0°, 90°]; 90° accepted.
0 < x < 9030
FOV half-height in degrees (RECTANGULAR / ELLIPTICAL only). Range (0°, 90°) strict.
0 < x < 9020
FOV half-width in degrees (RECTANGULAR / ELLIPTICAL only). Range (0°, 90°) strict.
0 < x < 9010
Payload off-nadir along-track slew limit in degrees — how far off-nadir the payload may be pointed along the velocity vector. Optional; range (0°, 90°]. Independent of the FOV group and of the optics fields.
0 < x < 9018
Payload off-nadir cross-track slew limit in degrees — how far off-nadir the payload may be pointed across the velocity vector. Optional; range (0°, 90°]. Independent of the FOV group and of the optics fields.
0 < x < 9030
Detector pixel pitch in micrometres (µm). Optional optical characteristic for downstream modelled-GSD; when present must be positive and finite. Independent of the FOV group — partial optics is tolerated.
5.5
Polygon circumscribed (to-vertices) angular radius in degrees (POLYGON only). Range (0°, 90°) strict. Datum = OUTSIDE_CONE_TOUCHING_POLYGON_AT_VERTICES (DA-3).
0 < x < 9030
Number of polygon sides (POLYGON only). 3 ≤ N ≤ 1000.
3 <= x <= 10006
Response
Payload added successfully
X+, X-, Y+, Y-, Z+, Z- CONICAL, RECTANGULAR, ELLIPTICAL, POLYGON Was this page helpful?