Skip to content

List Tenants

Returns a paginated list of all tenants.

Request

GET /api/oauth/v2/resource/tenancies

HeaderValue
AuthorizationBearer {access_token}

Query parameters

ParameterTypeRequiredDescription
offsetintegerNoStart position (default: 0)
limitintegerNoNumber 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

FieldTypeDescription
dataArrayList of tenants
data[].idstring (UUID)Unique tenant ID
data[].namestringName of the tenant
data[].abbreviationstring | nullAbbreviation
data[].colorstring | nullColor as hex code (e.g. #00adba)
meta.totalintegerTotal number of tenants
meta.offsetintegerCurrent start position
meta.limitintegerNumber 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

StatusCodeDescription
401invalid_clientInvalid or missing access token
403insufficient_scopeScope company not present

Offisy GmbH