curl --request GET \
--url https://api.nlbs.ai/workflow-executions/{execution_uuid} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.nlbs.ai/workflow-executions/{execution_uuid}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.nlbs.ai/workflow-executions/{execution_uuid}', 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.nlbs.ai/workflow-executions/{execution_uuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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://api.nlbs.ai/workflow-executions/{execution_uuid}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.nlbs.ai/workflow-executions/{execution_uuid}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nlbs.ai/workflow-executions/{execution_uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"created_at": "2023-11-07T05:31:56Z",
"entrypoint_key": "<string>",
"execution_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"case_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"completed_at": "2023-11-07T05:31:56Z",
"desk_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"output": {},
"queue_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Consultar uma execução iniciada por um entrypoint
Consulta uma execução com a chave de API que a iniciou. A resposta traz o status e, em output, APENAS os caminhos que a conta configurou na whitelist de saída do entrypoint; uma whitelist vazia, o padrão, retorna um objeto vazio. Os caminhos selecionam o que a execução publicou até agora, por origem: score, signal, fact, tag, agent_output.<node_key>, http_response.<node_key>, além de case.status e case.reason_code quando existe um caso de revisão. A metadata enviada, o payload de entrada, anexos e evidências nunca são retornados aqui. Quando a execução está parada em um caso aberto, a resposta traz a mesa e a fila atuais do caso, que podem não ser aquelas em que ele entrou, porque uma escalada move o caso dentro da mesma mesa.
curl --request GET \
--url https://api.nlbs.ai/workflow-executions/{execution_uuid} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.nlbs.ai/workflow-executions/{execution_uuid}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.nlbs.ai/workflow-executions/{execution_uuid}', 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.nlbs.ai/workflow-executions/{execution_uuid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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://api.nlbs.ai/workflow-executions/{execution_uuid}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.nlbs.ai/workflow-executions/{execution_uuid}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.nlbs.ai/workflow-executions/{execution_uuid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"created_at": "2023-11-07T05:31:56Z",
"entrypoint_key": "<string>",
"execution_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued",
"case_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"completed_at": "2023-11-07T05:31:56Z",
"desk_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"output": {},
"queue_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}{
"detail": "Resource not found."
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Response
Successful Response

