Filter and page through records with the Inbound API

Use a table’s field keys to filter a record list, read one page at a time, and check why a request returns fewer records than expected.

Use GET /entities/{entityId}/records when an integration needs to read matching records from a Mainbase table. Start with an Inbound API key that can read the table. The key’s acting user determines which tables, records, and fields are available.

Read the first page

  1. Find the table ID in GET /entities. Open GET /entities/{entityId} and find the field’s dataKey. For a select field, check its available values in the schema before choosing a filter value.
  2. Run the example with your own table ID, filter field key, and value. 123, status, and Active are examples. Use the base URL from API Access and load the key from your secret manager. --data-urlencode encodes the JSON filter in the query string.
curl --silent --show-error --fail-with-body --get \
  "${NIXA_API_BASE_URL}/entities/123/records" \
  -H "X-API-Key: ${NIXA_API_KEY}" \
  --data-urlencode 'filters={"field":"status","operator":"equals","value":"Active"}' \
  --data-urlencode 'sortBy=id' \
  --data-urlencode 'sortOrder=asc' \
  --data-urlencode 'limit=25' \
  --data-urlencode 'page=1'

Check the records under data and the page details under meta. Verify the filter against a known record the acting user can read. Compare results in the same workspace using the same filter.

Continue through the results

Pages start at 1. The default limit is 50 and the maximum is 100. If meta.hasMore is true, increase page by one and keep the same filter, sort, and limit. Stop when a successful response reports meta.hasMore: false. Use that flag to decide whether to continue, because a reported total can depend on the source and how it was counted.

Changes to the table between requests can change which records appear on each page. If you combine pages, use record IDs to detect duplicates.

Check missing records

If data is empty, try page 1 without the filter. If records appear, check the field key and filter value again. If a known record is still missing, check the acting user’s record and field access. A request filter narrows the results that user is already allowed to read.

Create and verify a record with the Inbound API

Read selected fields of a record with the Inbound API

Handle Inbound API rate limits

Combine record filters with the Inbound API

Select a few fields in an Inbound API record list

Read a list of known record IDs with the Inbound API

List recently updated records with the Inbound API

Ask Mainbase AI

Ask about any feature in Mainbase. Find a setting, get step-by-step guidance, or troubleshoot a problem.

Open the AI assistant

Copy 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?