/v1/unit-types/{unit_type_id}Authentication
Bearer API key or Facily session, subject to permissions and facility scope.
Authentication and scopeRequest example
Replace bracketed path values with real IDs from your environment. The body, where shown, is generated from the schema and uses illustrative values.
curl --request GET \
--url 'https://api.staging.facily.ai/v1/unit-types/<UNIT_TYPE_ID>' \
--header "Authorization: Bearer $FACILY_API_KEY"Try a request
Staging · read-onlyExplore your organization with a read-only request to staging.
Parameters
unit_type_idpath · stringrequiredFormat: uuid
Responses
Expand a status to inspect its schema. Generated examples show structure and synthetic values.
200Successful Response
{
"data": {
"created_at": "2026-10-29T12:00:00Z",
"facility_id": "00000000-0000-4000-8000-000000000001",
"features": [
{
"created_at": "2026-10-29T12:00:00Z",
"facility_id": "00000000-0000-4000-8000-000000000001",
"id": "00000000-0000-4000-8000-000000000001",
"name": "string",
"description": "string",
"short_code": "string"
}
],
"id": "00000000-0000-4000-8000-000000000001",
"name": "string",
"unit_count": 0,
"updated_at": "2026-10-29T12:00:00Z",
"description": "string"
},
"meta": {
"request_id": "string"
}
}application/json
dataUnitTypeResponserequiredUnit type -- a billing/account-code grouping. Per Phase 9, no dimensions here.
Show data schema
created_atstringrequiredWhen the unit type was created.
Format: date-time
descriptionstring | nullLonger description of the type, where the operator has written one.
Show description schema
string | nullLonger description of the type, where the operator has written one.
Variant 1: string
stringVariant 2: null
nullfacility_idstringrequiredThe facility this unit type belongs to.
Format: uuid
featuresFeatureResponse[]requiredCharacteristics shared by every unit of this type.
Show features schema
created_atstringrequiredFormat: date-time
descriptionstring | nullShow description schema
string | nullVariant 1: string
stringVariant 2: null
nullfacility_idstringrequiredThe facility this feature is defined for.
Format: uuid
idstringrequiredUnique identifier for this feature.
Format: uuid
namestringrequiredDisplay name of the characteristic, for example 'Climate Controlled' or 'Drive-Up Access'.
short_codestring | nullShort abbreviation used where space is tight, such as a unit grid.
Show short_code schema
string | nullShort abbreviation used where space is tight, such as a unit grid.
Variant 1: string
stringVariant 2: null
nullidstringrequiredUnique identifier for this unit type.
Format: uuid
namestringrequiredOperator-facing name for the type, for example '10x10 Climate Controlled'.
unit_countintegerrequiredHow many units are currently classified under this type.
updated_atstringrequiredWhen the unit type was last modified.
Format: date-time
metaMetarequiredEnvelope metadata. Every response carries one.
Show meta schema
request_idstringrequired400Validation error
{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"request_id": "string"
}
}application/json
errorErrorBodyrequiredThe shape of error.* in an error response.
Show error schema
codestringrequireddetailsobject | nullShow details schema
object | nullVariant 1: object
objectVariant 2: null
nullmessagestringrequiredmetaMetarequiredEnvelope metadata. Every response carries one.
Show meta schema
request_idstringrequired401Unauthenticated
{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"request_id": "string"
}
}application/json
errorErrorBodyrequiredThe shape of error.* in an error response.
Show error schema
codestringrequireddetailsobject | nullShow details schema
object | nullVariant 1: object
objectVariant 2: null
nullmessagestringrequiredmetaMetarequiredEnvelope metadata. Every response carries one.
Show meta schema
request_idstringrequired403Permission denied
{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"request_id": "string"
}
}application/json
errorErrorBodyrequiredThe shape of error.* in an error response.
Show error schema
codestringrequireddetailsobject | nullShow details schema
object | nullVariant 1: object
objectVariant 2: null
nullmessagestringrequiredmetaMetarequiredEnvelope metadata. Every response carries one.
Show meta schema
request_idstringrequired404Not found
{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"request_id": "string"
}
}application/json
errorErrorBodyrequiredThe shape of error.* in an error response.
Show error schema
codestringrequireddetailsobject | nullShow details schema
object | nullVariant 1: object
objectVariant 2: null
nullmessagestringrequiredmetaMetarequiredEnvelope metadata. Every response carries one.
Show meta schema
request_idstringrequired409Business logic error
{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"request_id": "string"
}
}application/json
errorErrorBodyrequiredThe shape of error.* in an error response.
Show error schema
codestringrequireddetailsobject | nullShow details schema
object | nullVariant 1: object
objectVariant 2: null
nullmessagestringrequiredmetaMetarequiredEnvelope metadata. Every response carries one.
Show meta schema
request_idstringrequired503Temporary failure
{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"request_id": "string"
}
}application/json
errorErrorBodyrequiredThe shape of error.* in an error response.
Show error schema
codestringrequireddetailsobject | nullShow details schema
object | nullVariant 1: object
objectVariant 2: null
nullmessagestringrequiredmetaMetarequiredEnvelope metadata. Every response carries one.
Show meta schema
request_idstringrequired