Skip to main content
GET
/
api
/
models
Get models
curl --request GET \
  --url http://localhost:3000/api/models \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "user_id": "<string>",
    "name": "<string>",
    "access_control_list": [
      {
        "user_id": "<string>",
        "group_id": "<string>",
        "invite_id": "<string>",
        "email": "jsmith@example.com",
        "roles": [
          {
            "name": "<string>",
            "permissions": [
              {
                "action": "View",
                "scopes": [
                  "<string>"
                ]
              }
            ]
          }
        ]
      }
    ],
    "created_at": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

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

Query Parameters

fields
string

Comma-separated list of fields to include in the response

name
string

Filter models by name

teamId
string

Team ID to filter models by team workspace (shows only models that belong to this specific team)

Response

List of models or a specific model

id
string
required

Unique identifier for the model

user_id
string
required

ID of the user who owns this model

name
string
required

Name of the model

access_control_list
object[]
required

Access control list for the model

created_at
string<date-time>
required

Creation timestamp