Host Turn Timing
curl --request POST \
--url https://api.moda.app/v1/cloud-computers/host/{computer_id}/turn-timing \
--header 'Content-Type: application/json' \
--data '
{
"steps_ms": {},
"first_after_wake": true,
"agent": "cold",
"provider": "<string>",
"outcome": "<string>",
"sent_to_host_ms": 0,
"error": "<string>"
}
'import requests
url = "https://api.moda.app/v1/cloud-computers/host/{computer_id}/turn-timing"
payload = {
"steps_ms": {},
"first_after_wake": True,
"agent": "cold",
"provider": "<string>",
"outcome": "<string>",
"sent_to_host_ms": 0,
"error": "<string>"
}
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({
steps_ms: {},
first_after_wake: true,
agent: 'cold',
provider: '<string>',
outcome: '<string>',
sent_to_host_ms: 0,
error: '<string>'
})
};
fetch('https://api.moda.app/v1/cloud-computers/host/{computer_id}/turn-timing', 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/host/{computer_id}/turn-timing",
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([
'steps_ms' => [
],
'first_after_wake' => true,
'agent' => 'cold',
'provider' => '<string>',
'outcome' => '<string>',
'sent_to_host_ms' => 0,
'error' => '<string>'
]),
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/host/{computer_id}/turn-timing"
payload := strings.NewReader("{\n \"steps_ms\": {},\n \"first_after_wake\": true,\n \"agent\": \"cold\",\n \"provider\": \"<string>\",\n \"outcome\": \"<string>\",\n \"sent_to_host_ms\": 0,\n \"error\": \"<string>\"\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/host/{computer_id}/turn-timing")
.header("Content-Type", "application/json")
.body("{\n \"steps_ms\": {},\n \"first_after_wake\": true,\n \"agent\": \"cold\",\n \"provider\": \"<string>\",\n \"outcome\": \"<string>\",\n \"sent_to_host_ms\": 0,\n \"error\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.moda.app/v1/cloud-computers/host/{computer_id}/turn-timing")
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 \"steps_ms\": {},\n \"first_after_wake\": true,\n \"agent\": \"cold\",\n \"provider\": \"<string>\",\n \"outcome\": \"<string>\",\n \"sent_to_host_ms\": 0,\n \"error\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"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
}cloud-computers
Host Turn Timing
How long one chat turn took on the computer, step by step: a log line, nothing stored.
POST
/
cloud-computers
/
host
/
{computer_id}
/
turn-timing
Host Turn Timing
curl --request POST \
--url https://api.moda.app/v1/cloud-computers/host/{computer_id}/turn-timing \
--header 'Content-Type: application/json' \
--data '
{
"steps_ms": {},
"first_after_wake": true,
"agent": "cold",
"provider": "<string>",
"outcome": "<string>",
"sent_to_host_ms": 0,
"error": "<string>"
}
'import requests
url = "https://api.moda.app/v1/cloud-computers/host/{computer_id}/turn-timing"
payload = {
"steps_ms": {},
"first_after_wake": True,
"agent": "cold",
"provider": "<string>",
"outcome": "<string>",
"sent_to_host_ms": 0,
"error": "<string>"
}
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({
steps_ms: {},
first_after_wake: true,
agent: 'cold',
provider: '<string>',
outcome: '<string>',
sent_to_host_ms: 0,
error: '<string>'
})
};
fetch('https://api.moda.app/v1/cloud-computers/host/{computer_id}/turn-timing', 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/host/{computer_id}/turn-timing",
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([
'steps_ms' => [
],
'first_after_wake' => true,
'agent' => 'cold',
'provider' => '<string>',
'outcome' => '<string>',
'sent_to_host_ms' => 0,
'error' => '<string>'
]),
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/host/{computer_id}/turn-timing"
payload := strings.NewReader("{\n \"steps_ms\": {},\n \"first_after_wake\": true,\n \"agent\": \"cold\",\n \"provider\": \"<string>\",\n \"outcome\": \"<string>\",\n \"sent_to_host_ms\": 0,\n \"error\": \"<string>\"\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/host/{computer_id}/turn-timing")
.header("Content-Type", "application/json")
.body("{\n \"steps_ms\": {},\n \"first_after_wake\": true,\n \"agent\": \"cold\",\n \"provider\": \"<string>\",\n \"outcome\": \"<string>\",\n \"sent_to_host_ms\": 0,\n \"error\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.moda.app/v1/cloud-computers/host/{computer_id}/turn-timing")
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 \"steps_ms\": {},\n \"first_after_wake\": true,\n \"agent\": \"cold\",\n \"provider\": \"<string>\",\n \"outcome\": \"<string>\",\n \"sent_to_host_ms\": 0,\n \"error\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"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
POST /host/{id}/turn-timing: one chat turn on the computer, timed from the moment its message reached the
host. Logged as cloud_computer_first_turn beside cloud_computer_wake_finished (same computer and lease).
Response
Successful Response