Retrieves models
GEThttps://apis.<domain>/iot/models
Authorization: http
name: bearerTokentype: httpscheme: bearerin: headerdescription: Authorization Header: `Authorization: Bearer <user_token>`
Retrieves a list of models. Due to performance concerns, data is retrieved in subsets. The API must ensure that the entire dataset is consumed either by making subsequent requests, or by increasing the subset size of the initial request.
Authorization Action:
core:models:list
Request
Query Parameters
Possible values: >= 1
and <= 100
Default value: 10
Size of the subset to retrieve.
Number of items to skip during retrieval.
Name filter. Filtering is performed as a case-insensitive partial match.
Possible values: [name
, id
]
Default value: id
Order type.
Possible values: [asc
, desc
]
Default value: desc
Order direction.
Metadata filter. Filtering is performed matching the parameter with metadata on top level. Parameter is json.
Tag filter. Filtering is performed as a case-insensitive match.
Possible values: <= 64 characters
Tenant filter. Used to filter models by specific tenant.
Responses
- 200
- 400
- 401
- 422
- 500
List of models with pagination info.
- application/json
- Schema
- Example (from schema)
Schema
models object[]
{
"total": 0,
"offset": 0,
"limit": 0,
"models": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"description": "string",
"metadata": {},
"tags": [
"string"
],
"tenants": [
"string"
],
"image": "string",
"created_at": "2025-01-14T09:16:36.675Z",
"updated_at": "2025-01-14T09:16:36.675Z"
}
]
}
Failed due to malformed query parameters.
Missing or invalid access token provided.
Database can't process request.
Unexpected server error.
- application/json
- Schema
Schema
- string byte
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://apis.<domain>/iot/models' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'