List tenant device types.
GET
/v1/tenants/{tenantNumber}/device-types
const url = 'https://api.dev.iot-sens.schlossers.at/v1/tenants/1/device-types?status=active&limit=25';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.dev.iot-sens.schlossers.at/v1/tenants/1/device-types?status=active&limit=25' \ --header 'Authorization: Bearer <token>'Returns Device Types in stable ascending creation order with the Device Type ID as a unique tie-breaker. Items and totalCount use the same search, status filter, Tenant and organization visibility, and database snapshot. A cursor is bound to the caller, scope, filters, and page size. Malformed, stale, oversized, or query-incompatible cursors fail with VALIDATION_FAILED.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”tenantNumber
required
integer format: int32
Query Parameters
Section titled “Query Parameters”status
string
q
string
cursor
string
Opaque continuation token; reuse the original filters and scope.
limit
integer
Responses
Section titled “Responses”Stable device-type cursor page.
Media typeapplication/json
object
items
required
Array<object>
object
deviceTypeId
required
string format: uuid
tenantId
required
string format: uuid
key
required
string
name
required
string
status
required
string
activeFlowVersionNumber
required
integer | null
deviceCount
required
Count within the caller’s visible device scope.
integer
activeDeviceCount
required
Active count within the caller’s visible device scope.
integer
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
nextCursor
string
totalCount
required
integer
Example
{ "items": [ { "status": "active" } ]}default
Section titled “default”A safe platform error response.
Media typeapplication/json
object
error
required
object
Example
{ "error": { "code": "VALIDATION_FAILED", "category": "validation" }}Headers
Section titled “Headers”Cache-Control
string