Skip to main content

FlowSynx Logs API

TThe Logs API allows administrators to search and retrieve application logs from the FlowSynx system. This endpoint is useful for auditing, debugging, and monitoring system behavior in real-time or retrospectively.

Authentication & Authorization

Required:

  • Authentication: Yes (Bearer or Basic Auth)
  • Authorization: Yes (Must have admin or logs role)

1. Basic Auth

curl -u username:password http://localhost:6262/logs

2.Bearer Token

curl -H "Authorization: Bearer <your_token>" http://localhost:6262/logs

Logs Endpoint

  • Method: POST
  • Endpoint: /logs
  • Body Required: Yes
  • Content-Type: application/json

Required Body

FieldTypeRequiredDescription
levelstringOptionalLog level filter (crit, fail, Warn, info, dbug )
fromdatestringOptionalISO 8601 UTC start date (e.g., "2025-08-01T00:00:00Z")
todatestringOptionalISO 8601 UTC end date (e.g., "2025-08-02T23:59:59Z")
messagestringOptionalFilter logs containing this text (case-insensitive)

Example Body

{
"level": "info",
"fromdate": "2025-07-01T00:00:00Z",
"todate": "2025-08-01T00:00:00Z",
"message": ""
}

curl Example

curl -X POST http://localhost:6262/logs \
-H "Authorization: Bearer <your_token>" \
-H "Content-Type: application/json" \
-d '{
"level": "info",
"fromdate": "2025-07-01T00:00:00Z",
"todate": "2025-08-01T00:00:00Z",
"message": ""
}'

Example response

{
"data": [
{
"id": "971ed04e-42b5-4289-81aa-ae4c0a5606eb",
"message": "Workflow '83b102e0-9129-4069-abd5-97a312ed9c1f' started.",
"level": "Info",
"timeStamp": "2025-07-08T23:16:46.8315157",
"exception": null
},
{
"id": "41c9236d-4b40-4d2a-9158-532eb2a52fc2",
"message": "Initialized task executions for workflow '83b102e0-9129-4069-abd5-97a312ed9c1f'",
"level": "Info",
"timeStamp": "2025-07-08T23:16:46.8874874",
"exception": null
}
],
"messages": [],
"succeeded": true,
"generatedAtUtc": "2025-08-01T17:00:39.1100673Z"
}

Summary Table

MethodEndpointAuthenticationAuthorization RolesFilters Supported
POST/logs✅ Requiredadmin, logslevel, fromdate, todate, message
info
  • Use Bearer or Basic authentication depending on flowsynx configuration.
  • Replace <your_token> or username:password with actual credentials.
  • Use empty string "" for any field to ignore that filter.
  • Dates must be in ISO 8601 format.
  • The API returns a limited number of results (250 logs max).
  • Supported Log level: crit, fail, Warn, info, dbug