Data Ingestion
Submit scope 1 fuel consumption data
Submit scope 1 fuel consumption data directly to the Unravel Carbon platform for processing and carbon footprint calculation.
This endpoint allows you to:
- Ingest fuel consumption data: Submit fuel usage records with detailed facility and fuel type information
- Validation: Validates fuel types, quantities, date ranges, and facility information
- Deduplication: Use unique transaction IDs to prevent duplicate data processing
- Flexible data submission: Supports both JSON and CSV formats
Key Validation Rules:
- Fuel quantity must be greater than 0
- Start date must be before or equal to end date
- Dates cannot be in the future
- Transaction IDs must be unique within each request
- Facility names must exist in your organization
Each facility receives its own dedicated upload job for optimal processing and tracking.
post/ingest/scope1_fuel
Request
- Base URLhttps://api.unravelcarbon.com/api/v1
- AuthHTTP bearer
Headers
Authorizationstring required
Example:Bearer <your_api_key>
Bearer token (API Key)
Request body
Example request
{
"records": [
{
"transaction_id": "FUEL_001_2024_01_15",
"start_date": "2024-01-15",
"end_date": "2024-01-15",
"facility_name": "Main Plant",
"fuel_type": "Diesel",
"quantity": 1000.5,
"unit_of_measurement": "liters",
"subfacility": "BOILER-01",
"supplier_name": "PetroCo Inc",
"supplier_country": "USA"
}
]
}Response
Scope 1 fuel data successfully ingested
Example response
{
"status": "success",
"message": "Successfully processed 1 records across 1 facilities",
"data": {
"sync_run_id": "6937e5b81dcdfab34c7a3cd5",
"import_type": "scope1_fuel",
"total_records": 1,
"facilities_processed": [
{
"facility_name": "Sample 1",
"records_count": 1,
"status": "success"
}
],
"upload_jobs_created": 1,
"upload_job_ids": [
"6937e5b81dcdfab34c7a3cd6"
],
"summary": {
"total_facilities": 1,
"total_records": 1,
"successful_facilities": 1
}
}
}Changes
No recorded changes to this operation across all 4 revisions of this API.