Read a list of known record IDs with the Inbound API

Request several known records from one table and compare the returned IDs with your original list.

Use an in filter when an integration already has several positive numeric record IDs from the same table stored in Mainbase. For example, a status report can refresh three known requests in one list call. The API key’s acting user determines which matching records and fields are visible.

Request the IDs together

Replace 123 with the table ID and the three example values with your record IDs from that table. Use the base URL from API Access and load the 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 'filters={"field":"id","operator":"in","value":[410,425,438]}' \
  --data-urlencode 'sortBy=id' \
  --data-urlencode 'sortOrder=asc' \
  --data-urlencode 'limit=25' \
  --data-urlencode 'page=1'

Check the returned records

Read the matching records under data and use each record’s id to match it to the original list. This example sorts the response by ID. If meta.hasMore is true, continue through the remaining pages before checking which IDs are missing.

If an ID is absent after the last page, verify the table ID and confirm the intended record is visible to the acting user. Handle missing IDs separately in the integration so one missing record does not prevent you from using the records that were returned.

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?