List recently updated records with the Inbound API
Put recently changed records first and verify the order with the returned update timestamps.
Use a table stored in Mainbase to read its most recently changed records first. The API key’s acting user needs read access to the table and the records. The list reflects that user’s access.
Start with the most recent updates
Replace 123 with the table ID. Use the base URL shown under API Access and load your key from your secret manager.
curl --silent --show-error --fail-with-body --get \
"${NIXA_API_BASE_URL}/entities/123/records" \
-H "X-API-Key: ${NIXA_API_KEY}" \
--data-urlencode 'sortBy=updatedAt' \
--data-urlencode 'sortOrder=desc' \
--data-urlencode 'limit=10' \
--data-urlencode 'page=1'
Compare updatedAt in the returned data with the times of a few known changes. Records with the same update timestamp sort by record ID in descending order. To see the newest creations first, use sortBy=createdAt and keep sortOrder=desc.
Read the next page
When meta.hasMore is true, increase page by one and keep the other parameters the same. Updates during pagination can move records between pages, so a report built from several pages can show a record twice or miss one. Use the record ID to spot repeats.
You can add a record filter to narrow the list before applying the sort.
Ask Mainbase AI
Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.
Open the AI assistantCopy a question to get started
- How do I create a Kanban view?
- How do I invite a teammate?
- Why is a record missing from this view?