Skip to main content
GET
/
api
/
ai
/
table
/
{ai_table_id}
/
column
/
list
Read all AI columns in a table
curl --request GET \
  --url https://cite.petal.org/api/ai/table/{ai_table_id}/column/list \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": 123,
    "meta": {},
    "modified_at": "<string>",
    "name": "<string>",
    "order_id": 123,
    "query": "<string>",
    "ai_table_id": 123
  }
]

Authorizations

Authorization
string
header
required

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

Path Parameters

ai_table_id
integer<int32>
required

The unique ID of the AI Table

Response

OK

id
integer
required

The unique ID of the column

meta
Meta · object
required

Metadata, for internal use. Note that the language and model settings for the column are here. Avoid changing the model to avoid unexpected costs

modified_at
string
required

Time the column was last modified, in UTC

name
string
required

The displayed name of the column

order_id
number
required

The displayed order of the column in the UI

query
string
required

The user-provided query to the AI

ai_table_id
integer

The unique ID of the AI Table this column belongs to