curl --request POST \
--url https://api.luxxon.dev/api/v1/api/v1/sessions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"lat": 4.66,
"lng": -74.05,
"maxDurationSeconds": 600,
"workspaceId": "8c3a5b6f-1d2e-4f7a-9b8c-d1e2f3a4b5c6",
"waitTimeoutSeconds": 300,
"quoteId": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
}
'import requests
url = "https://api.luxxon.dev/api/v1/api/v1/sessions"
payload = {
"lat": 4.66,
"lng": -74.05,
"maxDurationSeconds": 600,
"workspaceId": "8c3a5b6f-1d2e-4f7a-9b8c-d1e2f3a4b5c6",
"waitTimeoutSeconds": 300,
"quoteId": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
}
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({
lat: 4.66,
lng: -74.05,
maxDurationSeconds: 600,
workspaceId: '8c3a5b6f-1d2e-4f7a-9b8c-d1e2f3a4b5c6',
waitTimeoutSeconds: 300,
quoteId: 'a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d'
})
};
fetch('https://api.luxxon.dev/api/v1/api/v1/sessions', 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.luxxon.dev/api/v1/api/v1/sessions",
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([
'lat' => 4.66,
'lng' => -74.05,
'maxDurationSeconds' => 600,
'workspaceId' => '8c3a5b6f-1d2e-4f7a-9b8c-d1e2f3a4b5c6',
'waitTimeoutSeconds' => 300,
'quoteId' => 'a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d'
]),
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.luxxon.dev/api/v1/api/v1/sessions"
payload := strings.NewReader("{\n \"lat\": 4.66,\n \"lng\": -74.05,\n \"maxDurationSeconds\": 600,\n \"workspaceId\": \"8c3a5b6f-1d2e-4f7a-9b8c-d1e2f3a4b5c6\",\n \"waitTimeoutSeconds\": 300,\n \"quoteId\": \"a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d\"\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.luxxon.dev/api/v1/api/v1/sessions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"lat\": 4.66,\n \"lng\": -74.05,\n \"maxDurationSeconds\": 600,\n \"workspaceId\": \"8c3a5b6f-1d2e-4f7a-9b8c-d1e2f3a4b5c6\",\n \"waitTimeoutSeconds\": 300,\n \"quoteId\": \"a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.luxxon.dev/api/v1/api/v1/sessions")
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 \"lat\": 4.66,\n \"lng\": -74.05,\n \"maxDurationSeconds\": 600,\n \"workspaceId\": \"8c3a5b6f-1d2e-4f7a-9b8c-d1e2f3a4b5c6\",\n \"waitTimeoutSeconds\": 300,\n \"quoteId\": \"a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d\"\n}"
response = http.request(request)
puts response.read_body{
"statusCode": 200,
"message": "Request successful",
"data": {
"id": "b1e2f3a4-5b6c-7d8e-9f0a-1b2c3d4e5f6a",
"consumerWorkspaceId": "8c3a5b6f-1d2e-4f7a-9b8c-d1e2f3a4b5c6",
"operatorWorkspaceId": "9d4b6c7f-2e3f-5a8b-0c1d-e2f3a4b5c6d7",
"state": "REQUESTED",
"maxDurationSeconds": 600,
"waitTimeoutSeconds": 300,
"ratePerSecondMicroUsdc": "1000",
"holdMicroUsdc": "600000",
"startedAt": null,
"endedAt": null,
"cleanSeconds": 0,
"chargedMicroUsdc": "0",
"settlementTxHash": null,
"videoBackendRef": "6a7aab6e273b40251e8ee72d7ca05719",
"createdAt": "2026-05-13T11:30:00.000Z",
"requestedLat": 4.711234,
"requestedLng": -74.072456,
"authorized": false,
"consistencyToken": "GgEAAAAA...",
"whepUrl": "https://customer-CODE.cloudflarestream.com/UID/webRTC/play",
"whipUrl": "https://customer-CODE.cloudflarestream.com/SECRETkUID/webRTC/publish"
},
"timestamp": "2026-05-13T12:00:00.000Z"
}Create session (REQUESTED)
Consumer asks for a live feed at (lat, lng). Optional pre-fetched quoteId locks the rate; otherwise a spot rate is computed and pinned on the row. Returns the new session in REQUESTED state plus the ZedToken to echo on follow-ups.
curl --request POST \
--url https://api.luxxon.dev/api/v1/api/v1/sessions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"lat": 4.66,
"lng": -74.05,
"maxDurationSeconds": 600,
"workspaceId": "8c3a5b6f-1d2e-4f7a-9b8c-d1e2f3a4b5c6",
"waitTimeoutSeconds": 300,
"quoteId": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
}
'import requests
url = "https://api.luxxon.dev/api/v1/api/v1/sessions"
payload = {
"lat": 4.66,
"lng": -74.05,
"maxDurationSeconds": 600,
"workspaceId": "8c3a5b6f-1d2e-4f7a-9b8c-d1e2f3a4b5c6",
"waitTimeoutSeconds": 300,
"quoteId": "a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
}
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({
lat: 4.66,
lng: -74.05,
maxDurationSeconds: 600,
workspaceId: '8c3a5b6f-1d2e-4f7a-9b8c-d1e2f3a4b5c6',
waitTimeoutSeconds: 300,
quoteId: 'a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d'
})
};
fetch('https://api.luxxon.dev/api/v1/api/v1/sessions', 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.luxxon.dev/api/v1/api/v1/sessions",
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([
'lat' => 4.66,
'lng' => -74.05,
'maxDurationSeconds' => 600,
'workspaceId' => '8c3a5b6f-1d2e-4f7a-9b8c-d1e2f3a4b5c6',
'waitTimeoutSeconds' => 300,
'quoteId' => 'a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d'
]),
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.luxxon.dev/api/v1/api/v1/sessions"
payload := strings.NewReader("{\n \"lat\": 4.66,\n \"lng\": -74.05,\n \"maxDurationSeconds\": 600,\n \"workspaceId\": \"8c3a5b6f-1d2e-4f7a-9b8c-d1e2f3a4b5c6\",\n \"waitTimeoutSeconds\": 300,\n \"quoteId\": \"a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d\"\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.luxxon.dev/api/v1/api/v1/sessions")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"lat\": 4.66,\n \"lng\": -74.05,\n \"maxDurationSeconds\": 600,\n \"workspaceId\": \"8c3a5b6f-1d2e-4f7a-9b8c-d1e2f3a4b5c6\",\n \"waitTimeoutSeconds\": 300,\n \"quoteId\": \"a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.luxxon.dev/api/v1/api/v1/sessions")
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 \"lat\": 4.66,\n \"lng\": -74.05,\n \"maxDurationSeconds\": 600,\n \"workspaceId\": \"8c3a5b6f-1d2e-4f7a-9b8c-d1e2f3a4b5c6\",\n \"waitTimeoutSeconds\": 300,\n \"quoteId\": \"a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d\"\n}"
response = http.request(request)
puts response.read_body{
"statusCode": 200,
"message": "Request successful",
"data": {
"id": "b1e2f3a4-5b6c-7d8e-9f0a-1b2c3d4e5f6a",
"consumerWorkspaceId": "8c3a5b6f-1d2e-4f7a-9b8c-d1e2f3a4b5c6",
"operatorWorkspaceId": "9d4b6c7f-2e3f-5a8b-0c1d-e2f3a4b5c6d7",
"state": "REQUESTED",
"maxDurationSeconds": 600,
"waitTimeoutSeconds": 300,
"ratePerSecondMicroUsdc": "1000",
"holdMicroUsdc": "600000",
"startedAt": null,
"endedAt": null,
"cleanSeconds": 0,
"chargedMicroUsdc": "0",
"settlementTxHash": null,
"videoBackendRef": "6a7aab6e273b40251e8ee72d7ca05719",
"createdAt": "2026-05-13T11:30:00.000Z",
"requestedLat": 4.711234,
"requestedLng": -74.072456,
"authorized": false,
"consistencyToken": "GgEAAAAA...",
"whepUrl": "https://customer-CODE.cloudflarestream.com/UID/webRTC/play",
"whipUrl": "https://customer-CODE.cloudflarestream.com/SECRETkUID/webRTC/publish"
},
"timestamp": "2026-05-13T12:00:00.000Z"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Body
4.66
-74.05
Upper bound on session duration in seconds.
600
Optional — defaults to the caller's workspace; required for wallet sessions if it disagrees.
"8c3a5b6f-1d2e-4f7a-9b8c-d1e2f3a4b5c6"
Seconds the consumer is willing to wait for media to start. After created_at + waitTimeoutSeconds with no first decoded frame, the session transitions to EXPIRED without a meter or settlement. Independent of maxDurationSeconds. Must satisfy 5 ≤ n ≤ 3600. Defaults to 300 (5 minutes).
300
Optional pre-fetched LxPriceQuote id to lock the rate.
"a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d"