InsionInsion
Go

List records

Retrieve records for the authenticated organization

page, err := client.ListRecords(ctx, &sdk.GetAPIV1RecordsRequest{Limit: sdk.Int(20), Entity: sdk.String("post")})

Signature and filters

ListRecords(context.Context, *sdk.GetAPIV1RecordsRequest, ...option.RequestOption) (*sdk.ListRecordsResponse, error)

The request supports Limit, StartingAfter, EndingBefore, ClientID, User, Entity, and Status. The two cursor fields are mutually exclusive. Read page.Data and page.HasMore; use the final Insion record ID as StartingAfter to request the next page.

Filter reference

FieldPurpose
LimitMaximum number of records in this page.
StartingAfter / EndingBeforeMutually exclusive Insion-ID cursors.
ClientIDFilter by your record identifier.
UserFilter by Insion user ID.
EntityFilter by record kind.
StatusFilter by moderation status.

Stop paging when HasMore is false. Always check err before reading page; a failed call returns a nil response.

On this page