curl --request POST \
--url https://api.moda.app/v1/cloud-computers/relay \
--header 'Content-Type: application/json' \
--data '
{
"request_id": "<string>",
"name": "My cloud computer",
"size": "standard",
"graphics_card": false,
"idle_minutes": 15,
"spending_limit_credits": 4611686018427388000,
"web_agent": false
}
'import requests
url = "https://api.moda.app/v1/cloud-computers/relay"
payload = {
"request_id": "<string>",
"name": "My cloud computer",
"size": "standard",
"graphics_card": False,
"idle_minutes": 15,
"spending_limit_credits": 4611686018427388000,
"web_agent": False
}
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({
request_id: '<string>',
name: 'My cloud computer',
size: 'standard',
graphics_card: false,
idle_minutes: 15,
spending_limit_credits: 4611686018427388000,
web_agent: false
})
};
fetch('https://api.moda.app/v1/cloud-computers/relay', 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.moda.app/v1/cloud-computers/relay",
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([
'request_id' => '<string>',
'name' => 'My cloud computer',
'size' => 'standard',
'graphics_card' => false,
'idle_minutes' => 15,
'spending_limit_credits' => 4611686018427388000,
'web_agent' => false
]),
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://api.moda.app/v1/cloud-computers/relay"
payload := strings.NewReader("{\n \"request_id\": \"<string>\",\n \"name\": \"My cloud computer\",\n \"size\": \"standard\",\n \"graphics_card\": false,\n \"idle_minutes\": 15,\n \"spending_limit_credits\": 4611686018427388000,\n \"web_agent\": false\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://api.moda.app/v1/cloud-computers/relay")
.header("Content-Type", "application/json")
.body("{\n \"request_id\": \"<string>\",\n \"name\": \"My cloud computer\",\n \"size\": \"standard\",\n \"graphics_card\": false,\n \"idle_minutes\": 15,\n \"spending_limit_credits\": 4611686018427388000,\n \"web_agent\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.moda.app/v1/cloud-computers/relay")
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 \"request_id\": \"<string>\",\n \"name\": \"My cloud computer\",\n \"size\": \"standard\",\n \"graphics_card\": false,\n \"idle_minutes\": 15,\n \"spending_limit_credits\": 4611686018427388000,\n \"web_agent\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"size": "small",
"graphics_card": true,
"cpu": 123,
"cores": 123,
"ram_gib": 123,
"storage_gib": 123,
"state": "starting",
"host_image_id": "<string>",
"target_host_image_id": "<string>",
"host_image_update_pending": true,
"updating": true,
"release_channel": "stable",
"host_version": "<string>",
"target_host_version": "<string>",
"idle_minutes": 123,
"spending_limit_credits": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"last_awake_at": "2023-11-07T05:31:56Z",
"last_asleep_at": "2023-11-07T05:31:56Z",
"busy": true,
"busy_reason": "<string>",
"next_wake_at": "2023-11-07T05:31:56Z",
"connection": {
"computer_id": "<string>",
"url": "<string>",
"public_key": "<string>"
},
"billing": {
"credits_per_hour": 123,
"credits_per_block": 123,
"storage_credits_per_gib_month": 123,
"month_spent_credits": 123,
"wake_allowed": true,
"blocked_reason": "PLAN_REQUIRED"
},
"error": {
"code": "<string>",
"message": "<string>"
},
"progress": {
"operation": "create",
"phase": "queued",
"status": "working",
"started_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"attempt": 2,
"retry_at": "2023-11-07T05:31:56Z"
},
"kind": "cloud",
"host_web_chat_ready": true,
"target_web_chat_ready": true,
"web_agent_allowance": "ok"
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}Relay Create
Create the signed-in user’s one computer for the relay (the Voyager web agent’s first message). The
payer is the user’s first team whose seat reaches cloud computers, else (web agent flag on) a Free seat’s team,
which gets one small computer. web_agent computers default to 5 idle minutes and ask before billing past the
included time. COMPUTER_EXISTS tells the relay to list and wake instead; INCLUDED_TIME_USED and
BILLING_CONFIRMATION_REQUIRED carry details.web_agent_allowance.
curl --request POST \
--url https://api.moda.app/v1/cloud-computers/relay \
--header 'Content-Type: application/json' \
--data '
{
"request_id": "<string>",
"name": "My cloud computer",
"size": "standard",
"graphics_card": false,
"idle_minutes": 15,
"spending_limit_credits": 4611686018427388000,
"web_agent": false
}
'import requests
url = "https://api.moda.app/v1/cloud-computers/relay"
payload = {
"request_id": "<string>",
"name": "My cloud computer",
"size": "standard",
"graphics_card": False,
"idle_minutes": 15,
"spending_limit_credits": 4611686018427388000,
"web_agent": False
}
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({
request_id: '<string>',
name: 'My cloud computer',
size: 'standard',
graphics_card: false,
idle_minutes: 15,
spending_limit_credits: 4611686018427388000,
web_agent: false
})
};
fetch('https://api.moda.app/v1/cloud-computers/relay', 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.moda.app/v1/cloud-computers/relay",
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([
'request_id' => '<string>',
'name' => 'My cloud computer',
'size' => 'standard',
'graphics_card' => false,
'idle_minutes' => 15,
'spending_limit_credits' => 4611686018427388000,
'web_agent' => false
]),
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://api.moda.app/v1/cloud-computers/relay"
payload := strings.NewReader("{\n \"request_id\": \"<string>\",\n \"name\": \"My cloud computer\",\n \"size\": \"standard\",\n \"graphics_card\": false,\n \"idle_minutes\": 15,\n \"spending_limit_credits\": 4611686018427388000,\n \"web_agent\": false\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://api.moda.app/v1/cloud-computers/relay")
.header("Content-Type", "application/json")
.body("{\n \"request_id\": \"<string>\",\n \"name\": \"My cloud computer\",\n \"size\": \"standard\",\n \"graphics_card\": false,\n \"idle_minutes\": 15,\n \"spending_limit_credits\": 4611686018427388000,\n \"web_agent\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.moda.app/v1/cloud-computers/relay")
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 \"request_id\": \"<string>\",\n \"name\": \"My cloud computer\",\n \"size\": \"standard\",\n \"graphics_card\": false,\n \"idle_minutes\": 15,\n \"spending_limit_credits\": 4611686018427388000,\n \"web_agent\": false\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"name": "<string>",
"size": "small",
"graphics_card": true,
"cpu": 123,
"cores": 123,
"ram_gib": 123,
"storage_gib": 123,
"state": "starting",
"host_image_id": "<string>",
"target_host_image_id": "<string>",
"host_image_update_pending": true,
"updating": true,
"release_channel": "stable",
"host_version": "<string>",
"target_host_version": "<string>",
"idle_minutes": 123,
"spending_limit_credits": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"last_awake_at": "2023-11-07T05:31:56Z",
"last_asleep_at": "2023-11-07T05:31:56Z",
"busy": true,
"busy_reason": "<string>",
"next_wake_at": "2023-11-07T05:31:56Z",
"connection": {
"computer_id": "<string>",
"url": "<string>",
"public_key": "<string>"
},
"billing": {
"credits_per_hour": 123,
"credits_per_block": 123,
"storage_credits_per_gib_month": 123,
"month_spent_credits": 123,
"wake_allowed": true,
"blocked_reason": "PLAN_REQUIRED"
},
"error": {
"code": "<string>",
"message": "<string>"
},
"progress": {
"operation": "create",
"phase": "queued",
"status": "working",
"started_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"attempt": 2,
"retry_at": "2023-11-07T05:31:56Z"
},
"kind": "cloud",
"host_web_chat_ready": true,
"target_web_chat_ready": true,
"web_agent_allowance": "ok"
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}{
"type": "invalid_request",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>",
"causes": [
"<unknown>"
],
"details": {},
"retry_after_ms": 123,
"retryable": true
}Headers
Calendar-dated API version pin. New integrations should pin 2026-05-01 to opt into the newest response shapes. For back-compat the server also accepts requests with no header and resolves them to the current default (today: 2026-04-12); that default advances on each sunset date. Any unsupported value returns 400 unsupported_version.
2026-04-12, 2026-05-01 "2026-05-01"
Body
The relay's create, as the signed-in user (POST /relay/): the owner create's body, plus whether the
Voyager web agent asked for it.
Response
Successful Response