Skip to navigation

Get the data schema

View as Markdown

Describe the organization’s data schema.

Returns the tables SQL queries can target, each with its semantic category (e.g. raw vs. curated), description, and column definitions with types, nullability, uniqueness, and foreign-key targets. Each column carries two names: ‘name’ is what the read and write tools accept, and ‘sql_column_name’ is the physical column for SQL queries (a column holding another row’s key carries an _id suffix). The org’s own tables are followed by the platform tables (core_experiment, core_instrument, and similar) that SQL queries can join against, ending with core_user, which holds the org’s members; those have no id or semantic category. Use it to write queries and to plan which tables a job populates and how rows link.

The full schema is large. Call list_tables first, then pass tables to describe only the tables a task needs.

Fields that are null and flags that are false are omitted.

Requires an API key with the read scope.

Authentication

AuthorizationBearer

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

Query parameters

tableslist of strings or nullOptional

Names of the tables to describe, as list_tables returns them. Omit to describe every table.

Response

OK
namestring
columnslist of objects
idinteger or nullOptional
descriptionstring or nullOptional
semantic_categorystring or nullOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error