Unit GET
GEThttps://sandbox.absmartly.com/v1/unit_types/:unitTypeId
Required Permissions: UnitType Get
or UnitType Admin
Request
Path Parameters
unitTypeId integerrequired
The id of the Unit that you wish to get data from.
Responses
- 200
A JSON Object containing a unit's data.
- application/json
- Schema
- Example (from schema)
Schema
unit_type object
{
"unit_type": {
"id": 0,
"name": "user_id",
"description": "The ids of our users",
"created_at": "2025-07-07T10:04:10.767Z",
"created_by_user_id": 0,
"updated_at": "2025-07-07T10:04:10.767Z",
"updated_by_user_id": 0,
"created_by": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2025-07-07T10:04:10.767Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "[email protected]"
},
"archived": false
}
}
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: A User API Key for API authorization. **Must be in the format "Api-Key your_user_api_key"**scheme: ^Api-Key\s\S+
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://sandbox.absmartly.com/v1/unit_types/:unitTypeId' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ResponseClear