Quickstart
This guide will take you from zero to making your first API call in less than 5 minutes.Prerequisites
You’ll need:- An account at app.dcycle.io
- Your organization must have API enabled (contact support if you don’t see it)
Step 1: Get your API Key
1
Log in to Dcycle
Go to app.dcycle.io and log in to your account.
2
Navigate to API settings
Go to Organization Settings → API Keys
3
Generate a new API Key
Click “Generate API Key”
4
Copy your credentials
You’ll need three values:
- API Key: The key you just generated
- Organization ID: Your organization UUID
- User ID: Your user UUID
Step 2: Set up your Environment Variables
Save your credentials securely:Step 3: Make your First Call
Let’s calculate the emissions of a sample shipment:Expected Response
If everything works correctly, you’ll receive a response like this:Congratulations! You’ve calculated your first CO2 emission with Dcycle.
Next Steps
Now that you’ve made your first call, explore more functionality:Authentication
Learn more about API Keys and JWT
Bulk Upload Shipments
Upload thousands of shipments via CSV
ISO 14083 Reports
Generate sustainability reports
Complete Examples
Ready-to-use scripts
Troubleshooting
Error 401: Unauthorized
Your API Key is invalid or has expired. Check:- You copied the complete API Key
- You’re using the correct
Authorization: Bearerheader format - Your organization has API enabled
Error 400: Bad Request
The data sent is invalid. Check:- JSON format is correct
- Required fields are present
- Values are in the expected format

