Skip to main content
GET
/
tables
/
{table_id}
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
)
table = client.knowledge.tables.retrieve(
    "table_id",
)
print(table.id)
{
  "object": "table",
  "id": "<string>",
  "name": "<string>",
  "updated_at": "2023-11-07T05:31:56Z",
  "created_at": "2023-11-07T05:31:56Z",
  "knowledge_id": "<string>"
}

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.

Response

200 - application/json

Retrieved table

The table object represents a table within a knowledge.

object
enum<string>
required

The object type, which is always table.

Available options:
table
id
string
required

The table identifier, which can be referenced in the API endpoints.

name
string
required

The name of the table.

updated_at
string<date-time>
required

The ISO string for when the table was last updated.

created_at
string<date-time>
required

The ISO string for when the table was created.

knowledge_id
string
required

The id of the knowledge this table belongs to.