Get the Latest Log Entries
Gets the latest 100 log entries in a Project. Results are sorted descending by timestamp and _id. Supports cursor-based pagination via opaque base64url tokens returned in nextCursor and previousCursor. The total field is always -1 because counting rows in this collection is intentionally skipped for performance reasons. If you provide an invalid cursor value, a 400 error will be returned. When the request header x-cognigy-log-model-version is set to v2, the response items use the V2 shape with a nested metadata object instead of a top-level type field. lastTimeWindow narrows or widens how far back the query reads and requires the v2 model. Send the x-cognigy-log-model-version header set to v2, unless the service already has the v2 model enabled cluster-wide, in which case no header is needed. A 400 is returned only when the request would otherwise route to the v1 model. On the v2 timeseries model, sessionId, userId, and flowName are all matched exactly.
Authorizations
Supply the API Key in the HTTP-Header
Headers
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.
application/json, application/hal+json, application/xml, text/xml, text/csv When set to "v2", response items include the full V2 model with a nested metadata object containing organizationId, projectId, and type.
v1, v2 Path Parameters
The unique identifier for the Project.
24^[a-z0-9]{24}$Query Parameters
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.
24The 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.
24The log level to filter log entries by.
fatal, error, warn, info, debug, trace The ID of the user to filter log entries by.
The name of the Flow to filter log entries by.
The ID of the session to filter log entries by. Matched exactly and case-sensitively; a partial value returns no results.
1024How 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.
x >= 16