latestOpenAPI 3.0.02026-08-224362174.0 KB

24a8012aa8c8

Get Model

Retrieve models from model ID

get/models/{modelId}

Path parameters

modelIdnumber double required

The id of the model

Response

Ok

idnumber double required

The id of the model

namestring required

The name of the model

slugstring required

The slug of the model

descriptionstring required

The description of the model

workspaceIdnumber double required

The id of the workspace where the model belongs to

primaryKeystring required

The primary key will be null if the query doesn't get directly synced (e.g. a relationship table for visual querying)

createdAtstring date-time required

The timestamp when model was created

updatedAtstring date-time required

The timestamp when model was lastly updated

sourceIdnumber double required

The id of the source that model is connected to

queryTypestring required

The type of the query. Available options: custom, raw_sql, tabel, dbt and visual.

tagsobject required

The tags of the model

isSchemaboolean required

If is_schema is true, the model is just used to build other models. Either as part of visual querying, or as the root of a visual query.

syncsnumber[] required

The list of id of syncs that uses this model

folderIdstring
lastRunSizenumber double nullable required

The number of rows returned by the most recent successful sync run of this model. Null if the model has never been synced successfully.