Skip to main content
GET
/
tables
/
{table_id}
/
records
Python
import os
from datagrid_ai import Datagrid

client = Datagrid(
    api_key=os.environ.get("DATAGRID_API_KEY"),  # This is the default and can be omitted
)
page = client.knowledge.tables.records.list(
    table_id="table_id",
)
page = page.data[0]
print(page.id)
{
  "object": "list",
  "data": [
    {
      "object": "record",
      "id": "<string>",
      "table_id": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "data": {}
    }
  ],
  "cursor": "<string>",
  "has_more": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

table_id
string
required

The id of the table to retrieve records from.

Query Parameters

limit
integer
default:500

The limit on the number of objects to return, ranging between 1 and 1000.

Required range: 1 <= x <= 1000
next
string

A cursor to use in pagination to continue a query from the previous request. This is automatically added when the request has more results to fetch.

Response

200 - application/json

List of records

object
enum<string>
required
Available options:
list
data
object[]
required

An array containing the actual response elements, paginated by any request parameters.

cursor
string

The stable cursor to use to get the next page of records.

has_more
boolean

Whether or not there are more elements available after this set. If false, this set comprises the end of the list.