EmployeeService
Get Employee
Returns a single employee by id. Unknown, out-of-scope, draft and deleted employees are indistinguishable EMPLOYEE_NOT_FOUND.
Required scope: employees:read
Error Codes:
- INTEGRATION.API_KEY_INVALID: The API key is missing, inactive, expired, or unknown.
- DEVELOPER.SCOPE_INSUFFICIENT: The key lacks the employees:read scope.
- EMPLOYEE_NOT_FOUND: No visible employee with that id.
GET
/
developer
/
v1
/
employees
/
{employee_id}
Get Employee
curl --request GET \
--url https://app.doodocs.kz/api/developer/v1/employees/{employee_id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://app.doodocs.kz/api/developer/v1/employees/{employee_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://app.doodocs.kz/api/developer/v1/employees/{employee_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.doodocs.kz/api/developer/v1/employees/{employee_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"employee": {
"create_time": "2023-11-07T05:31:56Z",
"custom_fields": {},
"department": {
"id": "<string>",
"title": "<string>"
},
"department_id": "<string>",
"employee_number": "<string>",
"end_date": "<string>",
"id": "<string>",
"job_title": {
"id": "<string>",
"title": "<string>"
},
"job_title_id": "<string>",
"location_id": "<string>",
"manager": {
"full_name": "<string>",
"id": "<string>"
},
"manager_id": "<string>",
"organization_id": "<string>",
"person": {
"birth_date": "<string>",
"first_name": "<string>",
"full_name": "<string>",
"iin": "<string>",
"last_name": "<string>",
"middle_name": "<string>",
"personal_email": "<string>",
"phone": "<string>"
},
"redacted_fields": [
"<string>"
],
"start_date": "<string>",
"status": "EMPLOYEE_STATUS_UNSPECIFIED",
"update_time": "2023-11-07T05:31:56Z",
"work_email": "<string>"
}
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}⌘I
Get Employee
curl --request GET \
--url https://app.doodocs.kz/api/developer/v1/employees/{employee_id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://app.doodocs.kz/api/developer/v1/employees/{employee_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://app.doodocs.kz/api/developer/v1/employees/{employee_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.doodocs.kz/api/developer/v1/employees/{employee_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"employee": {
"create_time": "2023-11-07T05:31:56Z",
"custom_fields": {},
"department": {
"id": "<string>",
"title": "<string>"
},
"department_id": "<string>",
"employee_number": "<string>",
"end_date": "<string>",
"id": "<string>",
"job_title": {
"id": "<string>",
"title": "<string>"
},
"job_title_id": "<string>",
"location_id": "<string>",
"manager": {
"full_name": "<string>",
"id": "<string>"
},
"manager_id": "<string>",
"organization_id": "<string>",
"person": {
"birth_date": "<string>",
"first_name": "<string>",
"full_name": "<string>",
"iin": "<string>",
"last_name": "<string>",
"middle_name": "<string>",
"personal_email": "<string>",
"phone": "<string>"
},
"redacted_fields": [
"<string>"
],
"start_date": "<string>",
"status": "EMPLOYEE_STATUS_UNSPECIFIED",
"update_time": "2023-11-07T05:31:56Z",
"work_email": "<string>"
}
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}