Skip to main content

Overview

The Remove Employees Bulk API allows you to remove multiple employees from your organization in a single request using their email addresses. This public API is designed for external systems and integrations to manage employee access without requiring admin authentication through the standard JWT flow. It requires an Organization Bearer Token (auth_token) for authentication, ensuring only authorized organizations can remove employees from their workspace.

Path URL


API Usage

Endpoint:

Headers


Request Body


Example cURL Request


Sample Request Code (Node.js with Axios)


Example Response (Success)


Response Fields


Error Responses

401 Unauthorized - Invalid Access Token

400 Bad Request - No Emails Provided

404 Not Found - No Users Found

500 Internal Server Error


How to Get Organization’s Auth Token

1

Log in to EazyBe Workspace

The organization’s admin must log in to the EazyBe Workspace using their credentials.
2

Locate the Auth Token

On the Organization page, the Organization’s Auth Token will be displayed.
3

Copy and use the token

The admin can copy the Organization’s Auth Token and paste it into the API request.

Response Status Codes


Important Notes

What happens when you remove employees?
  • Employees are removed from the organization’s workspace (callyzer_user_details)
  • Their organization membership is revoked (callyzer_user_mappings)
  • The users are not deleted from the system entirely - only their association with this specific organization is removed
  • The API will process all valid emails and report which ones were successfully removed and which were not found

Partial Success

If some emails are not found in the system, the API will still remove the employees that were found and return both lists in the response:
  • removedEmails: Successfully removed employees
  • notFoundEmails: Emails that don’t exist in the system
This allows you to handle partial failures gracefully and know exactly which operations succeeded.

Hygiene Practices

  • Always use a valid Organization Auth Token
  • Do not share or expose your token publicly
  • Verify email addresses before making API calls to minimize notFoundEmails
  • Keep your organization credentials secure at all times
  • Use this API responsibly - removed employees will lose access to the organization’s data
  • Consider implementing a confirmation step in your application before calling this API
  • Store the API response for audit purposes to track who was removed and when

Use Cases

  • Offboarding Automation: Automatically remove employees when they leave the company
  • Bulk User Management: Remove multiple employees at once during organizational restructuring
  • Integration with HR Systems: Sync employee removals from your HR platform to EazyBe
  • Access Control: Quickly revoke access for multiple users in emergency situations
  • External System Integration: Allow third-party systems to manage employee access

If you have any questions or need further assistance, feel free to reach out to us at hey@eazybe.com.