List tenant membership grants and their history.
GET
/v1/tenants/{tenantNumber}/memberships
const url = 'https://api.dev.iot-sens.schlossers.at/v1/tenants/1/memberships?status=active&limit=25&role=tenant_admin';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/memberships?status=active&limit=25&role=tenant_admin' \ --header 'Authorization: Bearer <token>'Returns an exact count for the same tenant authorization scope and filters as the page. Rows use stable ascending (createdAt, membershipId) order. Cursors are bound to the actor, authorization scope, filters, and page size.
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
userId
string format: uuid
role
string
Responses
Section titled “Responses”Stable membership cursor page.
Media typeapplication/json
object
items
required
Array<object>
object
membershipId
required
string format: uuid
tenantId
required
string format: uuid
userId
required
string format: uuid
role
required
string
includeDescendants
required
boolean
status
required
string
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
userDisplayName
required
string
userEmail
required
string format: email
nextCursor
string
totalCount
required
integer
Example
{ "items": [ { "role": "tenant_admin", "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