Skip to main content
GET
/
v1
/
models
/
{model_id}
/
datasets
List Model Datasets
curl --request GET \
  --url https://api.cuadra.ai/v1/models/{model_id}/datasets \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "createdAt": "2025-10-18T06:33:19Z",
      "datasetId": "550e8400-e29b-41d4-a716-446655440001",
      "modelId": "550e8400-e29b-41d4-a716-446655440000",
      "priority": 0,
      "updatedAt": "2025-10-18T06:33:19Z",
      "usageType": "rag"
    }
  ],
  "hasMore": true,
  "nextCursor": "<string>",
  "totalCount": 123
}

Authorizations

Authorization
string
header
required

JWT token from Stytch B2B authentication (magic link, SSO, or M2M)

Path Parameters

model_id
string
required

Model ID

Example:

"model_abc123"

Query Parameters

limit
integer
default:20
Required range: 1 <= x <= 100
cursor
string | null

Opaque cursor

Response

Successful Response

Paginated response for model-dataset associations.

items
ModelDatasetOut · object[]
required

List of model-dataset associations in this page

hasMore
boolean
required

Whether there are more results available

nextCursor
string | null

Cursor for the next page of results

totalCount
integer | null

Total count of associations (if available)