Export the call sheet (Scout Intent signed)
Scout Intent checks the request and signs an execution contract. Returns the export receipt: CSV hash, Zetaris query ids, snapshot id, trace ids and the contract signature. The agent drafts, a human decides.
POST
/
runs
/
{id}
/
export
Export the call sheet (Scout Intent signed)
curl --request POST \
--url https://api.example.com/runs/{id}/export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"formats": [],
"include_call_script": false
}
'import requests
url = "https://api.example.com/runs/{id}/export"
payload = {
"formats": [],
"include_call_script": False
}
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({formats: [], include_call_script: false})
};
fetch('https://api.example.com/runs/{id}/export', 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.example.com/runs/{id}/export",
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([
'formats' => [
],
'include_call_script' => false
]),
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.example.com/runs/{id}/export"
payload := strings.NewReader("{\n \"formats\": [],\n \"include_call_script\": false\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.example.com/runs/{id}/export")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"formats\": [],\n \"include_call_script\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/runs/{id}/export")
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 \"formats\": [],\n \"include_call_script\": false\n}"
response = http.request(request)
puts response.read_body{
"export_id": "<string>",
"run_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"artifacts": [
{
"format": "csv",
"sha256": "<string>",
"href": "<string>",
"media_type": "text/csv",
"filename": "<string>"
}
],
"zetaris_query_ids": [
"<string>"
],
"snapshot_id": "<string>",
"contract_signature": "<string>",
"csv_sha256": "<string>",
"model_trace_ids": [
"<string>"
],
"contract": {
"id": "<string>",
"action": "export_call_sheet",
"engine": "scout_intent",
"request_hash": "<string>",
"signed_at": "2023-11-07T05:31:56Z",
"signature": "<string>",
"inputs_hash": "<string>",
"evidence_ids": [
"<string>"
],
"trace_ids": [
"<string>"
],
"disclaimers": [
"<string>"
]
},
"held": [
"<string>"
]
}{
"error": {
"code": "not_found",
"message": "<string>",
"detail": "<unknown>",
"retry_after_ms": 123
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"detail": "<unknown>",
"retry_after_ms": 123
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"detail": "<unknown>",
"retry_after_ms": 123
}
}Authorizations
Body
application/json
Response
Export receipt
⌘I
Export the call sheet (Scout Intent signed)
curl --request POST \
--url https://api.example.com/runs/{id}/export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"formats": [],
"include_call_script": false
}
'import requests
url = "https://api.example.com/runs/{id}/export"
payload = {
"formats": [],
"include_call_script": False
}
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({formats: [], include_call_script: false})
};
fetch('https://api.example.com/runs/{id}/export', 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.example.com/runs/{id}/export",
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([
'formats' => [
],
'include_call_script' => false
]),
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.example.com/runs/{id}/export"
payload := strings.NewReader("{\n \"formats\": [],\n \"include_call_script\": false\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.example.com/runs/{id}/export")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"formats\": [],\n \"include_call_script\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/runs/{id}/export")
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 \"formats\": [],\n \"include_call_script\": false\n}"
response = http.request(request)
puts response.read_body{
"export_id": "<string>",
"run_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"artifacts": [
{
"format": "csv",
"sha256": "<string>",
"href": "<string>",
"media_type": "text/csv",
"filename": "<string>"
}
],
"zetaris_query_ids": [
"<string>"
],
"snapshot_id": "<string>",
"contract_signature": "<string>",
"csv_sha256": "<string>",
"model_trace_ids": [
"<string>"
],
"contract": {
"id": "<string>",
"action": "export_call_sheet",
"engine": "scout_intent",
"request_hash": "<string>",
"signed_at": "2023-11-07T05:31:56Z",
"signature": "<string>",
"inputs_hash": "<string>",
"evidence_ids": [
"<string>"
],
"trace_ids": [
"<string>"
],
"disclaimers": [
"<string>"
]
},
"held": [
"<string>"
]
}{
"error": {
"code": "not_found",
"message": "<string>",
"detail": "<unknown>",
"retry_after_ms": 123
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"detail": "<unknown>",
"retry_after_ms": 123
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"detail": "<unknown>",
"retry_after_ms": 123
}
}