Find IDs

Most NocoDB API endpoints take IDs in the path, for example /api/v3/data/{baseId}/{tableId}/records. Before you make API calls, find and copy the IDs that your endpoints need. This page tells you where to find each ID. In the NocoDB app, a base is called a project.

IDStarts withWhere to find it
Workspace IDwURL bar, workspace switcher, Settings > General > Appearance
Base IDpURL, base context menu
Table IDmURL, table context menu
View IDvURL, view context menu, view toolbar
Field IDcURL, field context menu, Tools > Manage fields
Record IDA number, from 1ID field, URL of an expanded record
User IDuWorkspace Members or Project Members page
Data Source IDData source context menu, Data Source settings page

Workspace ID

Workspace ID is a unique alphanumeric identifier for your workspace in NocoDB. It starts with w (for workspace). It shows in the URL bar when you open a project in the workspace.

You can also find it in the workspace switcher, at the top of the workspace sidebar. Click the ID to copy it to your clipboard.

Workspace ID

The Workspace ID also shows in Settings > General > Appearance.

Workspace ID

Base ID

Metadata APIs and administrative operations need the Base ID. It is a unique identifier for one database (or base) in your workspace.

The Base ID is an alphanumeric identifier that starts with p (for project). It shows in the URL when you open a table or the base settings. You can also find it in the base context menu in the left sidebar. To open this menu, click the chevron next to the base name. Click the ID to copy it to your clipboard.

Base ID

Table ID

Table ID is the identifier that you use most. All data API calls need it. It is a unique identifier for one table in your project.

The Table ID is an alphanumeric string that starts with m (for model). When you open a table, it shows in the URL, immediately after the Base ID. You can also find it in the table context menu in the left sidebar. To open this menu, click the three dots next to the table name. Click the ID to copy it to your clipboard.

Table ID

View ID

Use the View ID for API operations on a view, for example to get records from one view. It is a unique identifier for one view in a table.

The View ID is an alphanumeric string that starts with v (for view). It shows in the URL when a view is open. You can also find it in the view context menu in the left sidebar. To open this menu, click the three dots next to the view name. Click the ID to copy it to your clipboard.

View ID

You can also get the View ID from the view toolbar > more actions (3 dots) menu.

View ID

Field ID

Use the Field ID for API operations on a field, for example to update field properties. It is a unique identifier for one column in a table.

The Field ID is an alphanumeric string that starts with c (for column). It shows in the URL when you view or edit the settings of a field. You can also find it in the field context menu in the field header bar. To open this menu, click the chevron next to the field name. Click the ID to copy it to your clipboard.

Field ID

You can also get the Field ID from Tools > Manage fields.

Field ID in the Manage fields tool

Record ID

Use the Record ID for API operations on a record, for example to get or update one record. It is a unique identifier for one row in a table.

By default, the Record ID is a number that starts at 1. The ID field shows the Record ID. To show the ID field, do these steps:

  1. In the toolbar, open the Fields menu.
  2. Enable Show System Fields.

Record ID

You can also find it in the URL when you open a record (expanded record view).

Record ID

You can also use the Record ID in formulas. In the formula editor, select ID from the list of available fields, or use the RECORD_ID() function.

Record ID

User ID

Use the User ID for API operations on a user, for example to get user details. It is a unique identifier for one user in your workspace or organization.

The User ID is an alphanumeric string that starts with u (for user). To find it, open the Workspace Members page or the Project Members page. Then click the three dots menu next to the name of the user. Click the ID to copy it to your clipboard.

User ID

User ID

Data Source ID

For external data sources that are connected to NocoDB (for example Postgres or MySQL), data API operations also need the Data Source ID.

The Data Source ID is a unique alphanumeric string for the connected data source. To find it, click the three dots next to the data source name in the left sidebar. The context menu opens. Click the ID to copy it to your clipboard.

Data Source ID

You can also find it on the Data Source settings page.

Data Source ID

Last updated on

Latest product updates?See Changelog
Stay in the loop? Follow us onLinkedInLinkedInYouTubeYouTubeXX