- Documentation
- Sandbox
Documentation
Returns resolves the company-level worker a device authenticates as, by device uuid and company api key.
Parameters
| Parameter | Type | Required? | Format | Description |
|---|---|---|---|---|
| device_uuid | string | true | Device UUID the company-level worker is resolved for. | |
| company_apikey | string | true | Company-level api key the device authenticates with. | |
| groups | string | false | Comma-separated subset of the serializer groups this endpoint offers (flatapi, auth). Narrows the response to those groups, dropping the nested objects the others add; a group not offered here is refused with 400. |
Headers
| Name | Required? | Description |
|---|---|---|
| X-Terake-Api-Key | false | Worker or token api key. The preferred way to authenticate; send this or the apikey query parameter. |
Return
| Parameter | Type | Versions | Description |
|---|---|---|---|
200 |
|||
| is_active_mobile | boolean | * | |
| allowed_companies | array | * | |
| role_ids | array | * | |
| privileges | array | * | |
| roles_array | array | * | Worker app / My Profile uses this |
| rolestring | string | * | Workfields app uses this for everything |
| department_obj | object (Department) | * | |
| classificator | string | * | |
| reversed_fullname | string | * | |
| division | object (Department) | * | |
| company | object (Company) | * | Object owner |
| id | integer | * | Worker Id in Terake |
| firstname | string | * | Worker first name(s) (given names), Utf8 string 255 chars |
| lastname | string | * | Worker last name(s) (family names), Utf8 string 255 chars |
| fullname | string | * | Worker all name(s) separated by space, Utf8 string 255 chars |
| string | * | Worker e-mail address. | |
| username | string | * | Worker username, auto-generated by Terake |
| phone | string | * | Person phone number |
| password_md5 | string | * | Worker password md5 hash |
| rolecollection[] | array of objects (Role) | * | |
| facility | object (Facility) | * | Workers main facility |
| apikey | string | * | Workers Api key |
| gps_tracking_interval | integer | * | GPS tracking interval in minutes, integer |
| time_tracking_type | object (TimeTrackingType) | * | Time tracking type |
| gps_required | boolean | * | True if GPS in mobile is required |
| user | object (User) | * | |
| roster_visibility | object (RosterVisibility) | * | Roster Visibility type |
| start_time | DateTime | * | |
| stop_time | DateTime | * | |
| workplaces[] | array of objects (Workplace) | * | |
| is_personal_code_verified | boolean | * | |
| created_at_timestamp | integer | * | |
| updated_at_timestamp | integer | * | |
| is_deleted | boolean | * | |
| is_archived | boolean | * | |
| uuid | string | * | |
| department | object (Department) | * | Department |