Create Desktop Approval
curl --request POST \
--url https://api.moda.app/v1/voyager/web-agent/approvals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"computer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"operation": "<string>",
"max_credits": 500000,
"request": {},
"fingerprint": "<string>"
}
'import requests
url = "https://api.moda.app/v1/voyager/web-agent/approvals"
payload = {
"computer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"operation": "<string>",
"max_credits": 500000,
"request": {},
"fingerprint": "<string>"
}
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({
computer_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
operation: '<string>',
max_credits: 500000,
request: {},
fingerprint: '<string>'
})
};
fetch('https://api.moda.app/v1/voyager/web-agent/approvals', 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/voyager/web-agent/approvals",
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([
'computer_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'operation' => '<string>',
'max_credits' => 500000,
'request' => [
],
'fingerprint' => '<string>'
]),
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.moda.app/v1/voyager/web-agent/approvals"
payload := strings.NewReader("{\n \"computer_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"operation\": \"<string>\",\n \"max_credits\": 500000,\n \"request\": {},\n \"fingerprint\": \"<string>\"\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.moda.app/v1/voyager/web-agent/approvals")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"computer_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"operation\": \"<string>\",\n \"max_credits\": 500000,\n \"request\": {},\n \"fingerprint\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.moda.app/v1/voyager/web-agent/approvals")
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 \"computer_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"operation\": \"<string>\",\n \"max_credits\": 500000,\n \"request\": {},\n \"fingerprint\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"approval_id": "<string>",
"fingerprint": "<string>",
"operation": "<string>",
"computer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"max_credits": 123,
"expires_at": "2023-11-07T05:31:56Z"
}{
"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
}voyager-web-agent
Create Desktop Approval
Mint one approval from the person’s Voyager desktop (OAuth token + X-Voyager-Device). 403
web_agent_desktop_mint_refused (details.reason) for any other credential or a device Studio can tell is not
the person’s own desktop; 403 web_agent_device_confirmation_required for a fresh device until it is confirmed
(details.confirm_route).
POST
/
voyager
/
web-agent
/
approvals
Create Desktop Approval
curl --request POST \
--url https://api.moda.app/v1/voyager/web-agent/approvals \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"computer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"operation": "<string>",
"max_credits": 500000,
"request": {},
"fingerprint": "<string>"
}
'import requests
url = "https://api.moda.app/v1/voyager/web-agent/approvals"
payload = {
"computer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"operation": "<string>",
"max_credits": 500000,
"request": {},
"fingerprint": "<string>"
}
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({
computer_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
operation: '<string>',
max_credits: 500000,
request: {},
fingerprint: '<string>'
})
};
fetch('https://api.moda.app/v1/voyager/web-agent/approvals', 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/voyager/web-agent/approvals",
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([
'computer_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'operation' => '<string>',
'max_credits' => 500000,
'request' => [
],
'fingerprint' => '<string>'
]),
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.moda.app/v1/voyager/web-agent/approvals"
payload := strings.NewReader("{\n \"computer_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"operation\": \"<string>\",\n \"max_credits\": 500000,\n \"request\": {},\n \"fingerprint\": \"<string>\"\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.moda.app/v1/voyager/web-agent/approvals")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"computer_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"operation\": \"<string>\",\n \"max_credits\": 500000,\n \"request\": {},\n \"fingerprint\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.moda.app/v1/voyager/web-agent/approvals")
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 \"computer_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"operation\": \"<string>\",\n \"max_credits\": 500000,\n \"request\": {},\n \"fingerprint\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"approval_id": "<string>",
"fingerprint": "<string>",
"operation": "<string>",
"computer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"max_credits": 123,
"expires_at": "2023-11-07T05:31:56Z"
}{
"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.
Available options:
2026-04-12, 2026-05-01 Example:
"2026-05-01"
Body
application/json