Skip to main content
Report the workspace-wide count of tables enabled for querying (used) and the maximum allowed (limit). The limit varies by plan, so read it here rather than assuming a number. Enable a table with clay tables update; at the limit, disable one first.
clay tables query-usage

Output

{
  "used": 3,
  "limit": 10
}
FieldTypeDescription
usednumberNumber of tables currently enabled for querying.
limitnumberMaximum tables that can be enabled for querying (by plan).

Errors

CodeExitNotes
auth_forbidden3The API key lacks the cli:all scope, or you cannot read this workspace.

Examples

clay tables query-usage
clay tables query-usage | jq '.limit - .used'   # remaining tables you can enable