List Tenants
Returns a paginated list of all tenants.
Request
GET /api/oauth/v2/resource/tenancies
Header
| Header | Value |
|---|---|
Authorization | Bearer {access_token} |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
offset | integer | No | Start position (default: 0) |
limit | integer | No | Number of results (default: 50, max: 200) |
Required scope: company
Response
Success (200 OK)
json
{
"data": [
{
"id": "f0e1d2c3-b4a5-6789-fedc-ba9876543210",
"name": "Ordination Muster",
"abbreviation": "OM",
"color": "#00adba"
}
],
"meta": {
"total": 2,
"offset": 0,
"limit": 50
}
}Response fields
| Field | Type | Description |
|---|---|---|
data | Array | List of tenants |
data[].id | string (UUID) | Unique tenant ID |
data[].name | string | Name of the tenant |
data[].abbreviation | string | null | Abbreviation |
data[].color | string | null | Color as hex code (e.g. #00adba) |
meta.total | integer | Total number of tenants |
meta.offset | integer | Current start position |
meta.limit | integer | Number of returned entries |
Beispiele
bash
curl -X GET "https://my.offisy.at/api/oauth/v2/resource/tenancies?offset=0&limit=50" \
-H "Authorization: Bearer {access_token}"Parameter
Zuerst Token anfordern
Possible errors
| Status | Code | Description |
|---|---|---|
| 401 | invalid_client | Invalid or missing access token |
| 403 | insufficient_scope | Scope company not present |