Transfer a personal table to another owner with the Inbound API

Review the new owner and your remaining access before handing off a personal table.

Use a personal test table owned by the API key’s acting user. Choose another active member of the same workspace to receive ownership. This workflow changes who owns the table. You can also transfer ownership in Mainbase.

Review the handoff

Read GET /entities/{entityId} and confirm that data.ownershipType is PERSONAL, data.ownerId is the current owner, and data.tableCapabilities.canTransfer is true. In the example, replace 123 with the table ID and 456 with the new owner’s numeric Mainbase user ID. Use the base URL from API Access and load the key from your secret manager.

curl --silent --show-error --fail-with-body \
  --request POST "${NIXA_API_BASE_URL}/schema-changes/proposals" \
  -H "X-API-Key: ${NIXA_API_KEY}" \
  -H 'Content-Type: application/json' \
  --data '{"operation":{"kind":"transfer_table","entityId":123,"recipientUserId":456}}'

In the HTTP 201 response, check data.status is ready and review data.issues. In data.operations, check the target table and the transfer’s ownershipTransfer.toUserId and ownershipTransfer.recipientDisplayName. Compare the former owner’s access in ownershipTransfer.permissionReview when present. If the former owner needs ongoing access, check that it will be available before applying.

Apply the reviewed handoff

Set NIXA_PROPOSAL_ID and NIXA_PROPOSAL_HASH to the reviewed data.proposalId and data.proposalHash. Choose a unique NIXA_APPLICATION_KEY for this transfer.

curl --silent --show-error --fail-with-body \
  --request POST "${NIXA_API_BASE_URL}/schema-changes/proposals/${NIXA_PROPOSAL_ID}/apply" \
  -H "X-API-Key: ${NIXA_API_KEY}" \
  -H 'Content-Type: application/json' \
  --data "{\"proposalHash\":\"${NIXA_PROPOSAL_HASH}\",\"idempotencyKey\":\"${NIXA_APPLICATION_KEY}\",\"confirmDestructive\":false}"
  1. Save data.application.applicationId and check GET /schema-changes/applications/{applicationId}. Check again if the application is queued, running, or verifying. If it is failed or recovery_required, inspect its outcome before preparing any new proposal.
  2. When the application is verified, have the new owner open the table in Mainbase. Verify that the original table ID now has the recipient’s ownerId using a key that can still read the table. The old owner’s key may lose that access during the handoff.
  3. The transfer pauses Agent triggers attached to the table. Have the new owner review the Agents’ actions and execution permissions before enabling those triggers again.

If the apply response is interrupted, check whether the transfer took effect before starting a new proposal. Resend the same proposal ID, hash, application key, and confirmation value if you need to retry the original apply request.

Recover ownership of a personal table 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?