Create and verify a record with the Inbound API

Check a test table’s schema, create one record, and verify the saved record before retrying an unclear response.

Start with a test table that does not trigger live automations, notifications, or other external actions. Use fictional values and an Inbound API key whose acting user can create records in the table and read them back. Source-managed tables, including virtual tables, reject record creation through this endpoint.

Check the schema and create one record

  1. Find the test table ID in GET /entities, then check its schema with GET /entities/{entityId}. Use each field’s dataKey in the request body. Check required fields, field types, and allowed values.
  2. Choose a distinctive test title so you can find the record if the response is interrupted. Check that the title is unused in the test table, then send one request. Replace 123 with your test table ID and FIELD_DATA_KEY with a writable text field’s key. Add any other required values from your schema. Use the base URL from API Access and load the key from your secret manager.
curl --silent --show-error --fail-with-body --include \
  --request POST "${NIXA_API_BASE_URL}/entities/123/records" \
  -H "X-API-Key: ${NIXA_API_KEY}" \
  -H 'Content-Type: application/json' \
  --data '{"title":"API test record 001","FIELD_DATA_KEY":"Example value"}'

Verify the saved record

A successful create returns HTTP 201. Keep the returned data.id and read that same record with GET /entities/{entityId}/records/{recordId}. Compare the readable fields under data with your original request. If the read is denied, check the acting user’s record and field access.

Check an unclear result before retrying

If the request timed out, the connection dropped, or the response did not give you a usable ID, check the test table for the exact title you sent. You can look in Mainbase or use a filtered API read with an account that can read the record. If you find it, verify its ID and fields. An empty result from a key with restricted access leaves the outcome uncertain. Confirm the record was not created before sending another POST.

If a response reports a validation error, review error.message and any details returned, then compare the submitted values with the schema. If the request is forbidden, check the acting user’s permissions.

Update selected record fields 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?