cURL
curl --request POST \
--url https://{deployment}.convex.site/v1/projects/{projectId}/report \
--header 'Content-Type: application/json' \
--data '
{
"sourceFileHash": "abc123",
"sourceFileVersion": 5,
"runs": [
{
"locale": "nl-NL",
"status": "synced",
"keysTranslated": 142,
"totalKeys": 142,
"durationMs": 8200,
"content": "{ \"auth\": { \"signIn\": { \"button\": \"Inloggen\" } } }"
}
],
"cliVersion": "0.2.0"
}
'import requests
url = "https://{deployment}.convex.site/v1/projects/{projectId}/report"
payload = {
"sourceFileHash": "abc123",
"sourceFileVersion": 5,
"runs": [
{
"locale": "nl-NL",
"status": "synced",
"keysTranslated": 142,
"totalKeys": 142,
"durationMs": 8200,
"content": "{ \"auth\": { \"signIn\": { \"button\": \"Inloggen\" } } }"
}
],
"cliVersion": "0.2.0"
}
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({
sourceFileHash: 'abc123',
sourceFileVersion: 5,
runs: [
{
locale: 'nl-NL',
status: 'synced',
keysTranslated: 142,
totalKeys: 142,
durationMs: 8200,
content: '{ "auth": { "signIn": { "button": "Inloggen" } } }'
}
],
cliVersion: '0.2.0'
})
};
fetch('https://{deployment}.convex.site/v1/projects/{projectId}/report', 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://{deployment}.convex.site/v1/projects/{projectId}/report",
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([
'sourceFileHash' => 'abc123',
'sourceFileVersion' => 5,
'runs' => [
[
'locale' => 'nl-NL',
'status' => 'synced',
'keysTranslated' => 142,
'totalKeys' => 142,
'durationMs' => 8200,
'content' => '{ "auth": { "signIn": { "button": "Inloggen" } } }'
]
],
'cliVersion' => '0.2.0'
]),
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://{deployment}.convex.site/v1/projects/{projectId}/report"
payload := strings.NewReader("{\n \"sourceFileHash\": \"abc123\",\n \"sourceFileVersion\": 5,\n \"runs\": [\n {\n \"locale\": \"nl-NL\",\n \"status\": \"synced\",\n \"keysTranslated\": 142,\n \"totalKeys\": 142,\n \"durationMs\": 8200,\n \"content\": \"{ \\\"auth\\\": { \\\"signIn\\\": { \\\"button\\\": \\\"Inloggen\\\" } } }\"\n }\n ],\n \"cliVersion\": \"0.2.0\"\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://{deployment}.convex.site/v1/projects/{projectId}/report")
.header("Content-Type", "application/json")
.body("{\n \"sourceFileHash\": \"abc123\",\n \"sourceFileVersion\": 5,\n \"runs\": [\n {\n \"locale\": \"nl-NL\",\n \"status\": \"synced\",\n \"keysTranslated\": 142,\n \"totalKeys\": 142,\n \"durationMs\": 8200,\n \"content\": \"{ \\\"auth\\\": { \\\"signIn\\\": { \\\"button\\\": \\\"Inloggen\\\" } } }\"\n }\n ],\n \"cliVersion\": \"0.2.0\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{deployment}.convex.site/v1/projects/{projectId}/report")
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 \"sourceFileHash\": \"abc123\",\n \"sourceFileVersion\": 5,\n \"runs\": [\n {\n \"locale\": \"nl-NL\",\n \"status\": \"synced\",\n \"keysTranslated\": 142,\n \"totalKeys\": 142,\n \"durationMs\": 8200,\n \"content\": \"{ \\\"auth\\\": { \\\"signIn\\\": { \\\"button\\\": \\\"Inloggen\\\" } } }\"\n }\n ],\n \"cliVersion\": \"0.2.0\"\n}"
response = http.request(request)
puts response.read_body{
"success": true
}CLI
Post v1projects report
Submit CLI translation run report. Updates locale status to “synced” or “error”, stores translated content as snapshots, creates activity log entries, and clears pending diff when all locales are synced. Called by CLI after local AI translation completes.
POST
/
v1
/
projects
/
{projectId}
/
report
cURL
curl --request POST \
--url https://{deployment}.convex.site/v1/projects/{projectId}/report \
--header 'Content-Type: application/json' \
--data '
{
"sourceFileHash": "abc123",
"sourceFileVersion": 5,
"runs": [
{
"locale": "nl-NL",
"status": "synced",
"keysTranslated": 142,
"totalKeys": 142,
"durationMs": 8200,
"content": "{ \"auth\": { \"signIn\": { \"button\": \"Inloggen\" } } }"
}
],
"cliVersion": "0.2.0"
}
'import requests
url = "https://{deployment}.convex.site/v1/projects/{projectId}/report"
payload = {
"sourceFileHash": "abc123",
"sourceFileVersion": 5,
"runs": [
{
"locale": "nl-NL",
"status": "synced",
"keysTranslated": 142,
"totalKeys": 142,
"durationMs": 8200,
"content": "{ \"auth\": { \"signIn\": { \"button\": \"Inloggen\" } } }"
}
],
"cliVersion": "0.2.0"
}
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({
sourceFileHash: 'abc123',
sourceFileVersion: 5,
runs: [
{
locale: 'nl-NL',
status: 'synced',
keysTranslated: 142,
totalKeys: 142,
durationMs: 8200,
content: '{ "auth": { "signIn": { "button": "Inloggen" } } }'
}
],
cliVersion: '0.2.0'
})
};
fetch('https://{deployment}.convex.site/v1/projects/{projectId}/report', 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://{deployment}.convex.site/v1/projects/{projectId}/report",
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([
'sourceFileHash' => 'abc123',
'sourceFileVersion' => 5,
'runs' => [
[
'locale' => 'nl-NL',
'status' => 'synced',
'keysTranslated' => 142,
'totalKeys' => 142,
'durationMs' => 8200,
'content' => '{ "auth": { "signIn": { "button": "Inloggen" } } }'
]
],
'cliVersion' => '0.2.0'
]),
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://{deployment}.convex.site/v1/projects/{projectId}/report"
payload := strings.NewReader("{\n \"sourceFileHash\": \"abc123\",\n \"sourceFileVersion\": 5,\n \"runs\": [\n {\n \"locale\": \"nl-NL\",\n \"status\": \"synced\",\n \"keysTranslated\": 142,\n \"totalKeys\": 142,\n \"durationMs\": 8200,\n \"content\": \"{ \\\"auth\\\": { \\\"signIn\\\": { \\\"button\\\": \\\"Inloggen\\\" } } }\"\n }\n ],\n \"cliVersion\": \"0.2.0\"\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://{deployment}.convex.site/v1/projects/{projectId}/report")
.header("Content-Type", "application/json")
.body("{\n \"sourceFileHash\": \"abc123\",\n \"sourceFileVersion\": 5,\n \"runs\": [\n {\n \"locale\": \"nl-NL\",\n \"status\": \"synced\",\n \"keysTranslated\": 142,\n \"totalKeys\": 142,\n \"durationMs\": 8200,\n \"content\": \"{ \\\"auth\\\": { \\\"signIn\\\": { \\\"button\\\": \\\"Inloggen\\\" } } }\"\n }\n ],\n \"cliVersion\": \"0.2.0\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{deployment}.convex.site/v1/projects/{projectId}/report")
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 \"sourceFileHash\": \"abc123\",\n \"sourceFileVersion\": 5,\n \"runs\": [\n {\n \"locale\": \"nl-NL\",\n \"status\": \"synced\",\n \"keysTranslated\": 142,\n \"totalKeys\": 142,\n \"durationMs\": 8200,\n \"content\": \"{ \\\"auth\\\": { \\\"signIn\\\": { \\\"button\\\": \\\"Inloggen\\\" } } }\"\n }\n ],\n \"cliVersion\": \"0.2.0\"\n}"
response = http.request(request)
puts response.read_body{
"success": true
}Path Parameters
Minimum string length:
1Example:
"proj_abc123"
Body
application/json
Response
200 - application/json
Report processed successfully
⌘I