Get a results URL
curl --request GET \
--url https://your-sutro-deployment.example.com/v1/jobs/{job_id}/results-url \
--header 'Authorization: <authorization>'import requests
url = "https://your-sutro-deployment.example.com/v1/jobs/{job_id}/results-url"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://your-sutro-deployment.example.com/v1/jobs/{job_id}/results-url', 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://your-sutro-deployment.example.com/v1/jobs/{job_id}/results-url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-sutro-deployment.example.com/v1/jobs/{job_id}/results-url"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://your-sutro-deployment.example.com/v1/jobs/{job_id}/results-url")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-sutro-deployment.example.com/v1/jobs/{job_id}/results-url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_bodyAPI
Get a results URL
Create or reuse a unified Parquet artifact and return presigned download URLs.
GET
/
v1
/
jobs
/
{job_id}
/
results-url
Get a results URL
curl --request GET \
--url https://your-sutro-deployment.example.com/v1/jobs/{job_id}/results-url \
--header 'Authorization: <authorization>'import requests
url = "https://your-sutro-deployment.example.com/v1/jobs/{job_id}/results-url"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://your-sutro-deployment.example.com/v1/jobs/{job_id}/results-url', 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://your-sutro-deployment.example.com/v1/jobs/{job_id}/results-url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-sutro-deployment.example.com/v1/jobs/{job_id}/results-url"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://your-sutro-deployment.example.com/v1/jobs/{job_id}/results-url")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-sutro-deployment.example.com/v1/jobs/{job_id}/results-url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_bodyConfigure your deployment URL and API key before
using the examples below.
Use this endpoint for large or resumable downloads. The SDK wraps it with
Use
results_download_url() and download_job_results().
string
required
A successfully completed job.
enum
default:"parquet"
Only
parquet is supported; other values return 400.boolean
default:"false"
Include source inputs.
boolean
default:"false"
Include cumulative log probabilities.
integer
default:"3600"
URL lifetime from 1–604800 seconds (seven days).
Headers
string
required
Deployment API key in the form
Key YOUR_SUTRO_API_KEY. Do not reuse this
header with the returned presigned URLs.curl --fail-with-body "${SUTRO_API_URL%/}/v1/jobs/JOB_ID/results-url?include_inputs=true&expires_in_seconds=3600" \
-H "Authorization: Key $SUTRO_API_KEY"
{
"job_id": "JOB_ID",
"format": "parquet",
"include_inputs": true,
"include_cumulative_logprobs": false,
"expires_in_seconds": 3600,
"artifact": {
"bucket": "sutro-data",
"key": "jobs/.../results/...parquet",
"filename": "sutro-results~JOB_ID~inputs=1~logprobs=0.parquet",
"size_bytes": 987654321
},
"urls": {
"get": "https://presigned-object-url/...",
"head": "https://presigned-object-url/..."
}
}
urls.head with HEAD to read Content-Length and ETag. Use urls.get with GET; it supports Range: bytes=... for partial and resumed downloads. Do not send the Sutro authorization header to either object-storage URL—the signature is the credential. Treat both URLs as secrets until expiration.
The job must have succeeded; other states return 409. The artifact is materialized once and cached. A configured id_column_name is always retained, even when inputs are excluded.