InsionInsion
Java

List records

Retrieve records for the authenticated organization

ListRecordsResponse page = client.listRecords(
    GetApiV1RecordsRequest.builder().limit(20).entity("post").build()
);

All filters are optional: limit, startingAfter, endingBefore, clientId, user, entity, and status. Do not combine startingAfter and endingBefore.

The result contains data and hasMore. Use the last returned Insion record ID as startingAfter to fetch the next page.

Method overloads

ListRecordsResponse listRecords()
ListRecordsResponse listRecords(RequestOptions options)
ListRecordsResponse listRecords(GetApiV1RecordsRequest request)
ListRecordsResponse listRecords(GetApiV1RecordsRequest request, RequestOptions options)
Builder methodDescription
limit(int)Maximum items in the page.
startingAfter(String)Return records after this Insion ID.
endingBefore(String)Return records before this Insion ID.
clientId(String)Filter by your record identifier.
user(String)Filter by Insion user ID.
entity(String)Filter by record type.
status(GetApiV1RecordsRequestStatus)Filter by FLAGGED or COMPLIANT.

Use GetApiV1RecordsRequestStatus.FLAGGED rather than a raw string when filtering by status.

On this page