# Retrieve table metadata.

Endpoint: GET /database-table-metadata
Version: 3.19.0
Security: ApiKeyAuth

## Security:

  - `ApiKeyAuth` (unknown)
    apiKey in header Authorization

## Query parameters:

  - `limit` (integer)
    Maximum number of objects to return per query. The value must be between 1 and 1000. Default is 100.

  - `cursor` (string)
    Cursor to fetch the next or previous page of results. The value of this property must be extracted from the 'prev_cursor' or 'next_cursor' property of a PaginatedResponseMetadata which is contained in the response of list and search API endpoints.

  - `sort` (string)
    The field to sort results by. A property name with a prepended '-' signifies a descending order.

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `items` (array)

  - `items.id` (integer)
    The id of this table metadata.
    Example: 10

  - `items.table_name` (string)
    The name of the table.
    Example: my table

  - `items.rule_set_id` (string)
    The id of the rule set that this table metadata belongs to.
    Example: 4ed2357d-f1a7-410c-b951-90f0edc1a0f6

  - `items.rule_set_name` (string)
    The name of the rule set that this table metadata belongs to.
    Example: my rule set

  - `items.custom_sql` (string)
    Custom SQL for the table.

  - `items.where_clause` (string)
    SQL where clause for the table.

  - `items.having_clause` (string)
    SQL having clause for the table.

  - `items.key_column` (string)
    Key Column for the table.

  - `items.is_sensitive` (boolean)
    This field indicates whether or not a table has sensitive data. This field is assigned by DCT to true or false based on whether the table is assigned an algorithm and domain.

  - `items.row_count` (integer)

  - `items.last_refresh_time` (string)

  - `items.last_row_count_time` (string)

  - `items.engine_id` (string)
    The id of the engine associated with this column.
    Example: 5ff0dab4-368c-4d57-8b61-9a09b6e80f42

  - `items.engine_name` (string)
    The name of the engine associated with this column.
    Example: my engine

  - `response_metadata` (object)

  - `response_metadata.prev_cursor` (string)
    Pointer to the previous page of results. Use this value as a cursor query parameter in a subsequent request, along with limit, to navigate through the collection by virtual page.

  - `response_metadata.next_cursor` (string)
    Pointer to the next page of results. Use this value as a cursor query parameter in a subsequent request, along with limit, to navigate through the collection by virtual page.

  - `response_metadata.total` (integer)
    The total number of results. This value may not be provided.

