TestingAPIs is still being built. If something breaks, email support@testingapis.com.

List an employee's direct reports

GEThttps://api.testingapis.com/api/Employees/{id}/reportsSign in to see this endpoint's URL

Parameters 1

NameTypeDescription
idrequiredpath · integer (int32)Manager employee ID.

Responses

200
Employees whose managerId is this ID (an empty array if none).
404
The employee does not exist.

Example

Request
curl -X GET "https://api.testingapis.com/api/Employees/1/reports" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
[
  {
    "id": 2,
    "firstName": "Liam",
    "lastName": "Carter",
    "email": "liam.carter@nimbuscloud.example.com",
    "phone": "+1-555-102-1074",
    "department": "Engineering",
    "title": "VP of Engineering",
    "salary": 225000,
    "hireDate": "2010-06-14",
    "managerId": 1,
    "companyId": 1,
    "skills": ["Distributed Systems", "Go", "Kubernetes"],
… (34 more lines)

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.