PHP
List records
Retrieve records for the authenticated organization
$page = $client->listRecords(new GetApiV1RecordsRequest(['limit' => 20, 'entity' => 'post']));listRecords(GetApiV1RecordsRequest $request = new GetApiV1RecordsRequest(), ?array $options = null): ?ListRecordsResponse supports limit, startingAfter, endingBefore, clientId, user, entity, and status.
The cursor fields are mutually exclusive. Read data and hasMore; pass the final Insion record ID as startingAfter for the next page.
| Filter | Use |
|---|---|
limit | Maximum items returned. |
startingAfter / endingBefore | Mutually exclusive Insion-ID cursors. |
clientId, user, entity | Restrict records by application ID, Insion user, or kind. |
status | Restrict by moderation status. |
Only read the page after confirming it is not null. Stop paging when hasMore is false. Per-call options can set timeout/retries without changing the client defaults.