v1

latestOpenAPI 3.0.0Cognigy Proprietary License2026-07-2239524.1 MB
Logs v2.1

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.

get/v2.1/projects/{projectId}/logs/tail

Path parameters

projectIdstring required

The unique identifier for the Project.

Query parameters

nextstring

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.

previousstring

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.

typestring[]
userIdstring
flowNamestring

Headers

Accept'application/json' | 'application/hal+json' | 'application/xml' | 'text/xml' | 'text/csv'

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.

x-cognigy-log-model-version'v1' | 'v2'

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

Response

Returns array of the latest Log Entries

totalinteger
nextCursorstring nullable
previousCursorstring nullable

Example response

{
  "total": 1
}