List log entries
curl --request GET \
--url http://localhost:3000/v1/logs \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3000/v1/logs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:3000/v1/logs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/v1/logs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"id": "<string>",
"timestamp": "<string>",
"level": "debug",
"source": "<string>",
"message": "<string>",
"requestId": "<string>",
"durationMs": 123,
"payload": {},
"errorStack": "<string>",
"method": "<string>",
"path": "<string>",
"statusCode": 123
}
],
"has_more": true,
"next_cursor": "<string>",
"total_count": 123
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}Logs
List log entries
Reverse-chronological feed of API requests and workflow steps for the current tenant. Cursor-paginated by event time. total_count saturates at 10000.
GET
/
v1
/
logs
List log entries
curl --request GET \
--url http://localhost:3000/v1/logs \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:3000/v1/logs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "http://localhost:3000/v1/logs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://localhost:3000/v1/logs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"data": [
{
"id": "<string>",
"timestamp": "<string>",
"level": "debug",
"source": "<string>",
"message": "<string>",
"requestId": "<string>",
"durationMs": 123,
"payload": {},
"errorStack": "<string>",
"method": "<string>",
"path": "<string>",
"statusCode": 123
}
],
"has_more": true,
"next_cursor": "<string>",
"total_count": 123
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"suggestion": "<string>",
"request_id": "<string>",
"resource_type": "<string>",
"resource_id": "<string>",
"retry_after_seconds": 123,
"validation_errors": [
{
"param": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}
}Authorizations
API key (ml_live_* or ml_test_*)
Query Parameters
Required range:
1 <= x <= 100Available options:
debug, info, warn, error, fatal Available options:
api, workflow, all Required range:
100 <= x <= 599