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
string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faBody Parameters
string
required
Name of the CSV file to uploadExample:
commuting-data-2025.csvCSV Format
The CSV file should contain the following columns:Response
string
Presigned S3 URL — upload your CSV via PUT to this URL
string
File name as stored
string
UUID of the created file record
string
S3 object key where the file will be stored
string
Confirmation message
string
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