timeline-entries

List Post

POST
Lists the timeline entries for an object.

Request

This endpoint expects an object.
object
stringRequired
The ID of the object to list timeline entries for.
cursor
stringOptional
The cursor to resume iteration from. If not provided, then iteration starts from the beginning.
limit
integerOptional

The maximum number of entries to return. If not set, then this defaults to 50.

mode
enumOptional
The iteration mode to use. If "after", then entries after the provided cursor will be returned, or if no cursor is provided, then from the beginning. If "before", then entries before the provided cursor will be returned, or if no cursor is provided, then from the end. Entries will always be returned in the specified sort-by order.
Allowed values: afterbefore
visibility
list of enumsOptional
The visibility of the timeline entries to filter for. Note this is a strict filter, such that only entries with the exact visibilities specified will be returned.
Allowed values: externalinternalprivatepublic

Response

This endpoint returns an object
timeline_entries
list of unions
The timeline entries for the object.
next_cursor
stringOptional
The cursor used to iterate subsequent results in accordance to the sort order. If not set, then no later elements exist.
prev_cursor
stringOptional
The cursor used to iterate preceding results in accordance to the sort order. If not set, then no prior elements exist.
POST
1curl -X POST https://api.devrev.ai/timeline-entries.list \
2 -H "Authorization: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "object": "PROD-12345"
6}'
Response
1{
2 "timeline_entries": [],
3 "next_cursor": "next_cursor",
4 "prev_cursor": "prev_cursor"
5}