List current Autopilot strategy approvals
curl --request GET \
--url https://www.getsurfaced.ai/api/v1/autopilot/approvals \
--header 'Authorization: Bearer <token>' \
--header 'X-Workspace-Id: <x-workspace-id>'import requests
url = "https://www.getsurfaced.ai/api/v1/autopilot/approvals"
headers = {
"X-Workspace-Id": "<x-workspace-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Workspace-Id': '<x-workspace-id>', Authorization: 'Bearer <token>'}
};
fetch('https://www.getsurfaced.ai/api/v1/autopilot/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://www.getsurfaced.ai/api/v1/autopilot/approvals",
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: Bearer <token>",
"X-Workspace-Id: <x-workspace-id>"
],
]);
$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://www.getsurfaced.ai/api/v1/autopilot/approvals"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Workspace-Id", "<x-workspace-id>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.getsurfaced.ai/api/v1/autopilot/approvals")
.header("X-Workspace-Id", "<x-workspace-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.getsurfaced.ai/api/v1/autopilot/approvals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Workspace-Id"] = '<x-workspace-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"approvals": [
{
"decisionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"opportunityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policyVersion": 123,
"evidenceRevisionHash": "<string>",
"topic": "<string>",
"route": "<string>",
"intervention": "create_article",
"expectedCostMillicents": 1,
"riskLane": "green",
"marketRefs": [
"<string>"
],
"requiredApproval": "batch",
"decisionReasonCodes": [
"<string>"
],
"opportunityType": "missing_answer",
"observationCount": 123,
"firstObservedAt": "2023-11-07T05:31:56Z",
"lastObservedAt": "2023-11-07T05:31:56Z",
"priority": {
"total": 0.5,
"components": {
"expectedImpact": 0.5,
"confidence": 0.5,
"urgency": 0.5,
"effort": 0.5,
"risk": 0.5
}
},
"evidence": {
"title": "<string>",
"description": "<string>",
"severity": "critical"
},
"observations": [
{
"observedAt": "2023-11-07T05:31:56Z",
"marketRef": "<string>",
"locale": "<string>",
"language": "<string>",
"brandMentioned": true,
"citationCount": 1,
"competitorMentionCount": 1,
"answerCoverage": 0.5
}
],
"learningSignal": {
"guardDecision": "none",
"reasonCodes": [
"<string>"
],
"priorInterventionCount": 1,
"observedOutcomeCount": 1,
"verifiedOutcomeCount": 1,
"ineffectiveOutcomeCount": 1,
"latestObservedAt": "2023-11-07T05:31:56Z",
"policyRecommendation": "review_intervention_scope"
},
"whyNow": [
{
"code": "observations",
"label": "<string>",
"detail": "<string>"
}
],
"decidedAt": "2023-11-07T05:31:56Z"
}
]
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}Autopilot
List current Autopilot strategy approvals
deprecated
Returns unreviewed, non-stale pre-generation decisions for one project. Each item includes persisted policy reason codes, cost, priority inputs, sanitized frozen observation facts, and prior-learning signals. Prompt text, response excerpts, and model logs are never returned. Reviewed and stale decisions are excluded before the bounded limit is applied.
GET
/
autopilot
/
approvals
List current Autopilot strategy approvals
curl --request GET \
--url https://www.getsurfaced.ai/api/v1/autopilot/approvals \
--header 'Authorization: Bearer <token>' \
--header 'X-Workspace-Id: <x-workspace-id>'import requests
url = "https://www.getsurfaced.ai/api/v1/autopilot/approvals"
headers = {
"X-Workspace-Id": "<x-workspace-id>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Workspace-Id': '<x-workspace-id>', Authorization: 'Bearer <token>'}
};
fetch('https://www.getsurfaced.ai/api/v1/autopilot/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://www.getsurfaced.ai/api/v1/autopilot/approvals",
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: Bearer <token>",
"X-Workspace-Id: <x-workspace-id>"
],
]);
$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://www.getsurfaced.ai/api/v1/autopilot/approvals"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Workspace-Id", "<x-workspace-id>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.getsurfaced.ai/api/v1/autopilot/approvals")
.header("X-Workspace-Id", "<x-workspace-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.getsurfaced.ai/api/v1/autopilot/approvals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Workspace-Id"] = '<x-workspace-id>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"approvals": [
{
"decisionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"opportunityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policyVersion": 123,
"evidenceRevisionHash": "<string>",
"topic": "<string>",
"route": "<string>",
"intervention": "create_article",
"expectedCostMillicents": 1,
"riskLane": "green",
"marketRefs": [
"<string>"
],
"requiredApproval": "batch",
"decisionReasonCodes": [
"<string>"
],
"opportunityType": "missing_answer",
"observationCount": 123,
"firstObservedAt": "2023-11-07T05:31:56Z",
"lastObservedAt": "2023-11-07T05:31:56Z",
"priority": {
"total": 0.5,
"components": {
"expectedImpact": 0.5,
"confidence": 0.5,
"urgency": 0.5,
"effort": 0.5,
"risk": 0.5
}
},
"evidence": {
"title": "<string>",
"description": "<string>",
"severity": "critical"
},
"observations": [
{
"observedAt": "2023-11-07T05:31:56Z",
"marketRef": "<string>",
"locale": "<string>",
"language": "<string>",
"brandMentioned": true,
"citationCount": 1,
"competitorMentionCount": 1,
"answerCoverage": 0.5
}
],
"learningSignal": {
"guardDecision": "none",
"reasonCodes": [
"<string>"
],
"priorInterventionCount": 1,
"observedOutcomeCount": 1,
"verifiedOutcomeCount": 1,
"ineffectiveOutcomeCount": 1,
"latestObservedAt": "2023-11-07T05:31:56Z",
"policyRecommendation": "review_intervention_scope"
},
"whyNow": [
{
"code": "observations",
"label": "<string>",
"detail": "<string>"
}
],
"decidedAt": "2023-11-07T05:31:56Z"
}
]
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": {}
}
}Authorizations
API key (sk_live_...) created at https://www.getsurfaced.ai/app/settings/account/api-keys