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
| Field | Purpose |
|---|---|
Limit | Maximum number of records in this page. |
StartingAfter / EndingBefore | Mutually exclusive Insion-ID cursors. |
ClientID | Filter by your record identifier. |
User | Filter by Insion user ID. |
Entity | Filter by record kind. |
Status | Filter by moderation status. |
Stop paging when HasMore is false. Always check err before reading page; a failed call returns a nil response.