Issue temporary relay credentials
curl --request POST \
--url https://api.qumo-deploy.com/api/v1/credentials \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"scopes": [
"relay:session"
],
"ttl_seconds": 3600
}
'import requests
url = "https://api.qumo-deploy.com/api/v1/credentials"
payload = {
"scopes": ["relay:session"],
"ttl_seconds": 3600
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({scopes: ['relay:session'], ttl_seconds: 3600})
};
fetch('https://api.qumo-deploy.com/api/v1/credentials', 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.qumo-deploy.com/api/v1/credentials",
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([
'scopes' => [
'relay:session'
],
'ttl_seconds' => 3600
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.qumo-deploy.com/api/v1/credentials"
payload := strings.NewReader("{\n \"scopes\": [\n \"relay:session\"\n ],\n \"ttl_seconds\": 3600\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.qumo-deploy.com/api/v1/credentials")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"scopes\": [\n \"relay:session\"\n ],\n \"ttl_seconds\": 3600\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qumo-deploy.com/api/v1/credentials")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"scopes\": [\n \"relay:session\"\n ],\n \"ttl_seconds\": 3600\n}"
response = http.request(request)
puts response.read_body{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expires_at": "2026-09-12T12:00:00Z",
"jti": "c0b7e28e-8a5f-4a3e-bfa1-e28373b984d2",
"relays": [
{
"id": "relay-tyo-01",
"region": "ap-northeast-1",
"host": "tyo1.relay.qumo.live",
"port": 4433,
"url": "https://tyo1.relay.qumo.live:4433",
"status": "healthy"
}
],
"fallback": [
"tyo1.relay.qumo.live:4433"
]
}{
"error": "invalid or expired token"
}{
"error": "invalid or expired token"
}{
"error": "invalid or expired token"
}API Reference
Issue temporary relay credentials
Direct machine issuance: mints a short-lived scoped JWT used to connect to MoQ/WebTransport edge relays.
The client must authenticate with an active API key (X-API-Key).
POST
/
api
/
v1
/
credentials
Issue temporary relay credentials
curl --request POST \
--url https://api.qumo-deploy.com/api/v1/credentials \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"scopes": [
"relay:session"
],
"ttl_seconds": 3600
}
'import requests
url = "https://api.qumo-deploy.com/api/v1/credentials"
payload = {
"scopes": ["relay:session"],
"ttl_seconds": 3600
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({scopes: ['relay:session'], ttl_seconds: 3600})
};
fetch('https://api.qumo-deploy.com/api/v1/credentials', 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.qumo-deploy.com/api/v1/credentials",
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([
'scopes' => [
'relay:session'
],
'ttl_seconds' => 3600
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.qumo-deploy.com/api/v1/credentials"
payload := strings.NewReader("{\n \"scopes\": [\n \"relay:session\"\n ],\n \"ttl_seconds\": 3600\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.qumo-deploy.com/api/v1/credentials")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"scopes\": [\n \"relay:session\"\n ],\n \"ttl_seconds\": 3600\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qumo-deploy.com/api/v1/credentials")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"scopes\": [\n \"relay:session\"\n ],\n \"ttl_seconds\": 3600\n}"
response = http.request(request)
puts response.read_body{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expires_at": "2026-09-12T12:00:00Z",
"jti": "c0b7e28e-8a5f-4a3e-bfa1-e28373b984d2",
"relays": [
{
"id": "relay-tyo-01",
"region": "ap-northeast-1",
"host": "tyo1.relay.qumo.live",
"port": 4433,
"url": "https://tyo1.relay.qumo.live:4433",
"status": "healthy"
}
],
"fallback": [
"tyo1.relay.qumo.live:4433"
]
}{
"error": "invalid or expired token"
}{
"error": "invalid or expired token"
}{
"error": "invalid or expired token"
}Authorizations
Project-scoped API key (qumo_live_... or qumo_test_...).
Response
Ephemeral credential with assigned relay endpoints