GET
/
api
/
v1
/
models
curl --request GET \
  --url https://api.squared.ai/api/v1/models \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "<string>",
      "type": "<string>",
      "attributes": {
        "name": "<string>",
        "description": "<string>",
        "query": "<string>",
        "query_type": "<string>",
        "configuration": {},
        "primary_key": "<string>",
        "connector_id": 123,
        "created_at": "2023-11-07T05:31:56Z",
        "updated_at": "2023-11-07T05:31:56Z"
      }
    }
  ],
  "links": {
    "self": "<string>",
    "first": "<string>",
    "prev": "<string>",
    "next": "<string>",
    "last": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

query_type
enum<string>
required

query type

Available options:
data,
ai_ml,
raw_sql,
dbt soql,
table_selector

Response

200 - application/json
Successful operation
data
object[]