Get Started
Quickstart
This short tutorial will introduce you to the basics of making requests to the c-mass API.
Prerequisites
To follow this tutorial, you need a c-mass account. If you don’t have one yet, you can sign up for a free account.
Steps to Get Started
1. Generate Your API Key
Before making any requests, you’ll need an API key to authenticate with the c-mass API. Follow these steps:
- Log in to your c-mass account.
- Go to the Devs tab.
- Click Create test API key to generate a test key, or Set up API to create a live key (a payment method is required for live mode).
Learn more about Test Mode.
Store your API key securely, as it will only be displayed once. If needed, you can rotate your API key. The previous key will remain valid for 24 hours.
2. Placing an Order
Once you have your API key, you can submit an order for carbon credits. Replace <C-MASS_API_KEY>
with the API key you obtained in Step 1, and specify the amount of carbon credits (in kilograms of CO₂e) you want to purchase.