Logs

Get the Latest Log Entries

Gets the latest 100 log entries in a Project. Uses aggregation to first get the latest rows by _id, then sorts by timestamp. Supports cursor-based pagination using the _id field. If you provide an invalid cursor value, a 400 error will be returned. This endpoint is deprecated, use /v2.1/projects/{projectId}/logs/tail instead.

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

Request

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.

Response

Returns array of the latest Log Entries

totalinteger
nextCursorstring nullable
previousCursorstring nullable

Example response

{
  "total": 1
}

Changes

No recorded changes to this operation across all 1 revision of this API.