CSV Upload
CSV Upload
Generate a presigned URL for bulk commuting periods CSV upload
POST
CSV Upload
CSV Upload
Generate a presigned S3 URL for bulk importing employee commuting periods via CSV. After uploading the file, the system processes each row to create commuting period records and trigger emission calculations.Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faBody Parameters
Name of the CSV file to uploadExample:
commuting-data-2025.csvCSV Format
The CSV file should contain the following columns:| Column | Required | Description |
|---|---|---|
employee_email | Yes | Employee email for lookup |
employee_name | No | Employee name (fallback if email not found) |
start_date | Yes | Period start date (YYYY-MM-DD) |
end_date | Yes | Period end date (YYYY-MM-DD) |
commuting_type | Yes | in_itinere or in_labore |
transport_type | Yes | car, bus, metro, train, bicycle, walking, telecommuting, etc. |
vehicle_size | Conditional | small/medium/large (required for car) |
fuel_type | Conditional | petrol, diesel, electric, hybrid, etc. |
renewable_energy | Conditional | yes/no/do_not_know (for electric vehicles) |
carpool | Conditional | true/false (required for car) |
total_km | Yes | Distance per trip (km) |
daily_trips | Yes | Number of daily trips |
weekly_travels | No | Days of week, semicolon-separated (e.g., 0;1;2;3;4 for Mon-Fri) |
origin | No | Origin address |
destination | No | Destination address |
Response
Presigned S3 URL — upload your CSV via PUT to this URL
File name as stored
UUID of the created file record
S3 object key where the file will be stored
Confirmation message
UUID of the organization the file belongs to
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key403 Forbidden
Cause: The authenticated user is not a member of the organization422 Unprocessable Entity
Cause: Missing required field (file_name)
Related Endpoints
List Commuting Periods
Browse imported commuting periods
Create Commuting Period
Create a single commuting period manually

