Skip to main content
Version: 1.7.3

Get Directory

Get Directory

Use this endpoint to retrieve a paginated list of all employees (individuals) for the employer. Copy one or more id values from the individuals array — these are the individual_id values needed by Individual and Employment.

GET organization/directory 

Header Parameters

FieldTypeDescription
AuthorizationstringRequired. Bearer token obtained from the Auth endpoint. Format: Bearer <access_token>.
X-TaxBandits-VersionstringAPI version string. Use 1.0.0.

Query Parameters

FieldTypeDescription
entity_idsstringThe organization ID. Must be exactly one UUID.
limitnumberOptional Maximum number of results to return. Default: all.
offsetnumberOptional Number of records to skip, for pagination.

Response Body

FieldTypeDescription
statusstringSUCCESS or FAILURE.
status_codenumberHTTP-style status code (e.g. 200, 400).
messagestringHuman-readable status message.
responseobjectDirectory results.
   pagingobjectPagination info.
     countnumberTotal number of records.
     offsetnumberOffset applied to this response.
   individualsobject[]List of employees.
     idstringThe employee UUID (individual_id).
     first_namestringEmployee first name.
     middle_namestringEmployee middle name. null if not set.
     last_namestringEmployee last name.
     departmentobjectDepartment the employee belongs to.
       namestringDepartment name. null if not set.
     is_activebooleantrue if the employee is active; false if terminated.

Request

GET organization/directory?entity_ids=519a84f4-...&limit=10&offset=0
Header: X-TaxBandits-Version: 1.0.0

Response Json

SampleDescriptionAction
200
Success Response - This is a sample response for successful API requests.
400
Bad Request Response - You'll get the below response when entity_ids is missing or invalid.
{
"status": "SUCCESS",
"status_code": 200,
"message": "Request processed successfully",
"response": {
"paging": {
"count": 50,
"offset": 0
},
"individuals": [
{
"id": "7a3f1c2d-11bb-4e6a-9c0d-f83a57e12346",
"first_name": "John",
"middle_name": null,
"last_name": "Doe",
"department": {
"name": "Engineering"
},
"is_active": true
}
]
}
}