List Workflow Logs
curl --request GET \
--url https://developer.encrata.com/api/workflows/logs \
--header 'Authorization: <api-key>'import requests
url = "https://developer.encrata.com/api/workflows/logs"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://developer.encrata.com/api/workflows/logs', 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://developer.encrata.com/api/workflows/logs",
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: <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://developer.encrata.com/api/workflows/logs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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://developer.encrata.com/api/workflows/logs")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer.encrata.com/api/workflows/logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"logs": [
{}
],
"total": 123,
"limit": 123,
"offset": 123
}Workflows
List Workflow Logs
Read execution logs for one workflow run.
GET
/
api
/
workflows
/
logs
List Workflow Logs
curl --request GET \
--url https://developer.encrata.com/api/workflows/logs \
--header 'Authorization: <api-key>'import requests
url = "https://developer.encrata.com/api/workflows/logs"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://developer.encrata.com/api/workflows/logs', 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://developer.encrata.com/api/workflows/logs",
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: <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://developer.encrata.com/api/workflows/logs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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://developer.encrata.com/api/workflows/logs")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer.encrata.com/api/workflows/logs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"logs": [
{}
],
"total": 123,
"limit": 123,
"offset": 123
}List Workflow Logs returns paginated execution logs for a workflow run.
Authentication
Requires an API key in theAuthorization header.
Request
string
required
The workflow run ID.
integer
default:"100"
Number of logs to return. Maximum
100.integer
default:"0"
Number of logs to skip.
curl "https://developer.encrata.com/api/workflows/logs?run_id=d4e5f6a1-7b8c-4d9e-8f10-1a2b3c4d5e6f&limit=100&offset=0" \
-H "Authorization: Bearer enc_xxxxxxxxxxxx"
Response
object[]
The matching log entries. Each entry can contain
id, workflow_id,
run_id, step_id, level, message, metadata, and created_at.integer
Total logs for the run.
integer
Applied page size.
integer
Applied offset.
metadata is a JSON-encoded string. Parse it separately when you need its
structured values.{
"logs": [
{
"id": "log_01J9W6Q9E8PW4V9N7T3K2M1R5A",
"workflow_id": "6f1c2e94-2b6a-4a1e-9b3a-6c9f0f2a1d77",
"run_id": "d4e5f6a1-7b8c-4d9e-8f10-1a2b3c4d5e6f",
"level": "info",
"message": "Workflow run completed",
"metadata": "{\"credits_used\":2}",
"created_at": "2026-10-07T15:13:34Z"
}
],
"total": 1,
"limit": 100,
"offset": 0
}
Errors
| Status | Cause |
|---|---|
400 | run_id is missing |
401 | The API key is missing or invalid |
405 | The request did not use GET |
500 | Logs could not be read |
Was this page helpful?