Employees
Endpoints for managing organization employees
Employees
The Employees endpoints allow you to manage employees within your organization. You can list employees, create new employees, and delete existing employees.
Base URL
or, if you self-host
Authentication
All API endpoints require authentication using an API key. You can pass the API key using one of the following methods:
- In the
Authorization
header as a Bearer token:Authorization: Bearer {api_key}
- In the
X-API-Key
header:X-API-Key: {api_key}
Endpoints
The following endpoints are available for managing employees:
GET /api/v1/employees
- List all employees with optional filteringGET /api/v1/employees/:id
- Get a single employee by IDPOST /api/v1/employees
- Create a new employeeDELETE /api/v1/employees/:id
- Delete an employee by ID
List Employees
Retrieves employees from your organization with optional filtering.
Query Parameters
Filter employees by active status. If not provided, all employees are returned.
Filter employees by department. Must be a valid department value.
Search employees by name or email. Performs a case-insensitive search.
Response
Indicates if the request was successful.
Array of employee objects, each containing:
Error Responses
Will be false
when an error occurs.
Error message describing what went wrong.
Detailed validation errors, if applicable.
Example Request
Example Response
Get Employee
Retrieves a single employee by ID.
Path Parameters
The unique identifier of the employee to retrieve.
Response
Indicates if the request was successful.
The employee object.
Error Responses
Will be false
when an error occurs.
Error message describing what went wrong.
Example Request
Example Response
Example Error Response
Add Employee
Adds a new employee to your organization.
Request Body
Full name of the employee.
Email address of the employee. Must be a valid email format.
Department the employee belongs to. If not provided, defaults to “none”.
Whether the employee is active. Defaults to true if not provided.
Optional external identifier for the employee.
Optional user ID to associate with the employee.
Optional link ID to associate with the employee.
Response
Indicates if the request was successful.
The newly created employee object.
Error Responses
Will be false
when an error occurs.
Error message describing what went wrong.
Detailed validation errors, if applicable.
Example Request
Example Response
Example Response for Validation Error
Delete Employee
Deletes an employee from your organization by ID.
Path Parameters
The unique identifier of the employee to delete.
Response
Indicates if the request was successful.
Error Responses
Will be false
when an error occurs.
Error message describing what went wrong.
Example Request
Example Response
Example Error Response
Was this page helpful?