Select a few fields in an Inbound API record list
Request the fields your integration needs on each page while keeping the list’s filters and sort.
Use select when an integration reads a list of records from a table stored in Mainbase. For example, a status summary may only need each record’s title and status. The API key’s acting user needs read access to the table, the matching records, and the requested fields.
Request your fields on the first page
Read GET /entities/{entityId} to get the dataKey for each field. The example assumes a readable status field and an option value of Active. Replace 123 and the sample field and filter values with the ones from your schema. Use the base URL from API Access and load the API 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 'select=title,status' \
--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 each page
Check title and status in the matching records under data. Records can also include system fields such as id. If meta.hasMore is true, increase page and keep the same selection, filter, sort, and limit.
If a key is absent, reread the schema with the same API key and confirm that the acting user can read the field. An explicit null is an empty value. For an integration that already knows one record ID, see how to select fields on that record.
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?