Skip to main content
GET
Get the Latest Log Entries

Authorizations

X-API-Key
string
header
required

Supply the API Key in the HTTP-Header

Headers

Accept
enum<string>

The Accept header specifies the media type that the client expects in the response. Available options: application/json, application/hal+json, application/xml, text/xml, text/csv. The default value is application/json.

Available options:
application/json,
application/hal+json,
application/xml,
text/xml,
text/csv
x-cognigy-log-model-version
enum<string>

When set to "v2", response items include the full V2 model with a nested metadata object containing organizationId, projectId, and type.

Available options:
v1,
v2

Path Parameters

projectId
string
required

The unique identifier for the Project.

Required string length: 24
Pattern: ^[a-z0-9]{24}$

Query Parameters

next
string

The cursor that points to the next page of results. Use the nextCursor value returned in a previous response to request the next set of items.

Required string length: 24
previous
string

The cursor that points to the previous page of results. Use the previousCursor value returned in a previous response to request the previous set of items.

Required string length: 24
type
enum<string>[]

The log level to filter log entries by.

Available options:
fatal,
error,
warn,
info,
debug,
trace
userId
string

The ID of the user to filter log entries by.

flowName
string

The name of the Flow to filter log entries by.

sessionId
string

The ID of the session to filter log entries by. Matched exactly and case-sensitively; a partial value returns no results.

Maximum string length: 1024
lastTimeWindow
integer

How many hours back the query should read, counted from now. Overrides the cluster's configured tail cutoff for this request only. Omit it to keep the configured cutoff, except on count: when the cutoff feature is off and this parameter is omitted, count substitutes a one-hour safety floor rather than scanning unbounded (tail may still be unbounded because it stops after one page). Every cluster accepts 1, 6 and 12, and each also accepts its own configured cutoff value (for example 24 on a cluster configured with a 24-hour cutoff); any other value is rejected with a 400 that lists the accepted set, which is why no enum is published here. Requires the log entries v2 model. Send it together with the x-cognigy-log-model-version: v2 header, unless the service has the v2 model enabled cluster-wide, in which case the header is not needed; the 400 is returned only when the request would otherwise route to the v1 model.

Required range: x >= 1
Example:

6

Response

Returns array of the latest Log Entries

items
object[]
total
integer
Example:

1

nextCursor
string | null
Required string length: 24
Pattern: ^[a-z0-9]{24}$
previousCursor
string | null
Required string length: 24
Pattern: ^[a-z0-9]{24}$
Last modified on September 18, 2026