Public Cloud APIs
All available Ninox Public Cloud API endpoints
Content in curly brackets { }
signifies a placeholder. Both the curly brackets and the content within must be replaced for the request to work.
Get multiple workspaces
GET
https://api.ninox.com/v1/teams
Retrieves data from multiple teams
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer {accessToken} |
Content-Type | string | application/json |
Sample request
Get a single workspace
GET
https://api.ninox.com/v1/teams/{teamid}
Retrieves data from a single team
Path Parameters
Name | Type | Description |
---|---|---|
teamid* | string | workspace id |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer {accessToken} |
Content-Type | string | application/json |
Sample request
Get multiple databases
GET
https://api.ninox.com/v1/teams/{teamid}/databases
Retrieves data from multiple databases
Path Parameters
Name | Type | Description |
---|---|---|
teamid* | string | workspace id |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer {accessToken} |
Content-Type | string | application/json |
Sample request
Get a schema for a single database
GET
https://api.ninox.com/v1/teams/{teamid}/databases/{dbid}
Retrieves data from a schema for a single database
Path Parameters
Name | Type | Description |
---|---|---|
teamid* | string | workspace id |
dbid* | string | database id |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer {accessToken} |
Content-Type | string | application/json |
Sample request
Execute a read-only query with GET
GET
https://api.ninox.com/v1/teams/{teamid}/databases/{dbid}/{query}
Executes a read-only query in a database
Path Parameters
Name | Type | Description |
---|---|---|
teamid* | string | workspace id |
dbid* | string | database id |
Query Parameters
Name | Type | Description |
---|---|---|
query* | string | string of a query | e.g., |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer {accessToken} |
Content-Type | string | application/json |
Sample request
Execute a read-only query with POST
POST
https://api.ninox.com/v1/teams/{teamid}/databases/{dbid}/{query}
Executes a read-only query in a database
Path Parameters
Name | Type | Description |
---|---|---|
teamid* | string | workspace id |
dbid* | string | database id |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer {accessToken} |
Content-Type | string | application/json |
Request Body
Name | Type | Description |
---|---|---|
query* | string | string of a query | e.g., |
Sample request
Execute a writable query
POST
https://api.ninox.com/v1/teams/{teamid}/databases/{dbid}/exec
Executes a writable query in a database
Path Parameters
Name | Type | Description |
---|---|---|
teamid* | string | workspace id |
dbid* | string | database id |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer {accessToken} |
Content-Type | string | application/json |
Request Body
Name | Type | Description |
---|---|---|
query* | string | string of a query | e.g., |
Sample request
Get a schema for multiple tables
GET
https://api.ninox.com/v1/teams/{teamid}/databases/{dbid}/tables
Retrieves data from a schema for multiple tables
Path Parameters
Name | Type | Description |
---|---|---|
teamid* | string | workspace id |
dbid* | string | database id |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer {accessToken} |
Content-Type | string | application/json |
Sample request
Get a schema for a single table
GET
https://api.ninox.com/v1/teams/{teamid}/databases/{dbid}/tables/{tid}
Retrieves data from a schema for a single table
Path Parameters
Name | Type | Description |
---|---|---|
teamid* | string | workspace id |
dbid* | string | database id |
tid* | string | table id |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer {accessToken} |
Content-Type | string | application/json |
Sample request
Get multiple records
GET
https://api.ninox.com/v1/teams/{teamid}/databases/{dbid}/tables/{tid}/records
Retrieves data from multiple records in a table
Path Parameters
Name | Type | Description |
---|---|---|
teamid* | string | workspace id |
dbid* | string | database id |
tid* | string | table id |
Query Parameters
Name | Type | Description |
---|---|---|
choiceStyle | string | ids | names |
choice | string | ids | names |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer {accessToken} |
Content-Type | string | application/json |
Sample request
Get a single record
GET
https://api.ninox.com/v1/teams/{teamid}/databases/{dbid}/tables/{tid}/records/{rid}
Retrieves data from a single record in a table
Path Parameters
Name | Type | Description |
---|---|---|
teamid* | string | workspace id |
dbid* | string | database id |
tid* | string | table id |
rid* | string | record id |
Query Parameters
Name | Type | Description |
---|---|---|
choiceStyle | string | ids | names |
style | string | ids | names |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer {accessToken} |
Content-Type | string | application/json |
Sample request
Update a single record with PUT
PUT
https://api.ninox.com/v1/teams/{teamid}/databases/{dbid}/tables/{tid}/records/{rid}
Updates a single record in a table
Path Parameters
Name | Type | Description |
---|---|---|
teamid* | string | workspace id |
dbid* | string | database id |
tid* | string | table id |
rid* | string | record id |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer {accessToken} |
Content-Type | string | application/json |
Request Body
Name | Type | Description |
---|---|---|
fields | object | object of a field | e.g., |
Sample request
Look up/search a single record with GET
GET
https://api.ninox.com/v1/teams/{teamid}/databases/{dbid}/tables/{tid}/records
Looks up/searches a single record in a table
Path Parameters
Name | Type | Description |
---|---|---|
teamid | string | workspace id |
dbid | string | database id |
tid | string | table id |
Query Parameters
Name | Type | Description |
---|---|---|
filters | object | object of filters | e.g., |
Headers
Name | Type | Description |
---|---|---|
Authorizaton | string | Bearer {accessToken} |
Content-Type | string | application/json |
To look up a record with GET
, make sure the endpoint is/records
. The result will be the same as in Look up/search a single record with POST
(see below).
To identify which filters are mapped to which ids, send a GET
request to retrieve the schema of a single table.
Sample request
Alternative notation
An alternative notation of the example sample request above is to include the parameter filters
in the URL and leave D
(data) empty.
Look up/search a single record with POST
POST
https://api.ninox.com/v1/teams/{teamid}/databases/{dbid}/tables/{tid}/record
Looks up/searches a single record in a table
Path Parameters
Name | Type | Description |
---|---|---|
teamid* | string | workspace id |
dbid* | string | database id |
tid* | string | table id |
Query Parameters
Name | Type | Description |
---|---|---|
style | string | ids | names |
dateStyle | string | ids | names |
choiceStyle | string | ids | names |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer {accessToken} |
Content-Type | string | application/json |
Request Body
Name | Type | Description |
---|---|---|
filters | object | object of filters | e.g., |
The endpoint is /record
, not /records
.
To identify which filters are mapped to which ids, send a GET
request to retrieve the schema of a single table.
Sample request
Alternative notation
An alternative notation of the example sample request above is to include the parameter filters
in the URL and leave D
(data) empty.
Create/update multiple records with POST
POST
https://api.ninox.com/v1/teams/{teamid}/databases/{dbid}/tables/{tid}/records
Creates/updates multiple records in a table
Path Parameters
Name | Type | Description |
---|---|---|
teamid* | string | workspace id |
dbid* | string | database id |
tid* | string | table id |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer {accessToken} |
Content-Type | string | application/json |
Request Body
Name | Type | Description |
---|---|---|
fields, rid | array | array of fields and record ids | e.g.,
|
Sample request
To update an existing record, specify a record id and the fields you wish to update in a record.
To create a new record, do not specify the record id, only specify the fields you wish to create in a record.
Upsert (update/insert) multiple records with POST
POST
https://api.ninox.com/v1/teams/{tid}/databases/{dbid}/tables/{tid}/records
Updates records if they exist or inserts new records in a table
Path Parameters
Name | Type | Description |
---|---|---|
teamid* | string | workspace id |
dbid* | string | database id |
tid* | string | table id |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Bearer {accessToken} |
Content-Type | string | application/json |
Request Body
Name | Type | Description |
---|---|---|
_upsert | boolean | true | |
fields, rid* | array | array of fields and record ids | e.g.,
|