DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS /// DOCS
API·REFERENCE·TABLES·GET·GENERATED

Get a table

GET
/tables/{tableId}
SCOPE:tables:read

Get a table

Authentication

Requires API key with tables:read scope.

Path parameters

NameTypeDescription
tableIdUUIDPath parameter.

Request

(no body)

Response — 200 OK

{
  "id": "00000000-0000-0000-0000-000000000000",
  "alias_id": "example",
  "name": "example",
  "description": "example",
  "project_id": "00000000-0000-0000-0000-000000000000",
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z",
  "columns": [
    {
      "id": 0,
      "name": "example",
      "description": "example",
      "type": "TEXT",
      "settings": {
        "example_key": null
      },
      "order_index": 0,
      "required": true,
      "default_value": "example",
      "is_primary": true
    }
  ],
  "views": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "name": "example",
      "view_type": "grid",
      "settings": {
        "example_key": null
      },
      "is_default": true
    }
  ]
}

Errors

StatusCodeWhen
401unauthorizedMissing or invalid API key.
403forbiddenAPI key lacks required scope.
404not_foundResource not found.
429rate_limitedToken bucket exhausted.

Code samples

curl https://api.onnie.ai/api/public/v1/tables/00000000-0000-0000-0000-000000000000 \
  -H 'Authorization: Bearer onn_live_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2'
const response = await fetch('/tables/00000000-0000-0000-0000-000000000000', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer onn_live_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2',
  },
})
const data = await response.json()
{
  "server": "onnie",
  "name": "getTable",
  "description": "GET /tables/{tableId}"
}