Create Employee
Create Employee
Add a new employee to your organization for commuting tracking
POST
Create Employee
Create Employee
Create a new employee record in your organization. After creating an employee, you can add commuting periods to track their transportation emissions.Name or Email Required: At least one of
name or email must be provided when creating an employee.Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faBody Parameters
Employee’s full name (1-255 characters)Required if
email is not providedExample: "John Smith"Employee’s email addressRequired if
name is not providedExample: "john.smith@company.com"Employment situationAvailable values:
active, inactive, terminatedExample: "active"Data collection statusAvailable values:
uploaded, loadingExample: "uploaded"Response
Unique identifier (UUID) for the employee
Employee’s full name
Employee’s email address
Organization UUID
Employment status:
active, inactive, or terminatedData status:
uploaded or loadingList of commuting periods (empty for new employees)
Timestamp when the employee was created
Timestamp when the employee was last updated
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key404 Not Found
Cause: Organization not foundx-organization-id header contains a valid organization UUID.
422 Validation Error
Cause: Missing required parameters or invalid valuesname or email is provided, and situation and status have valid enum values.
Use Cases
Create Employee with Full Details
Add an employee with all available information:Create Employee for Survey
Create an employee with just email for survey distribution:Create Employee and Add Commuting Period
Complete workflow to track an employee’s commuting:Bulk Create Employees
Add multiple employees from a list:Next Steps
After creating an employee, you’ll typically want to:- Add Commuting Period: Create a commuting period to track their transportation
- Send Survey: Use the survey feature to collect commuting data from the employee
- View Emissions: Retrieve the employee to see calculated CO2e
Create Commuting Period
Add commuting data for the employee
List Employees
View all employees and their emissions
Employee Commuting Guide
Learn about tracking commuting emissions
Update Employee
Modify employee details

