Skip to main content
New to Corsair? See API access, authentication, and error handling.

Account

get

account.get Read one account: name, credit balance, forest name and slug Risk: read
Input Output

Forest

get

forest.get Read one virtual forest: branding plus planted, gifted and received tree totals and CO2 captured Risk: read
Input Output

Projects

calculateCo2

projects.calculateCo2 Calculate the CO2 captured and projects supported for a set of tree counts; plants nothing Risk: read
Input POST /external/projects/total-co2 on the project-management service, from the OpenAPI document. Keys are project tree IDs, which are not the tree IDs from projects.list: 26 and 28 answer, a tree ID answers 404 MTC-0001 “Project Tree is not found” (checked 11-26). The route that maps a tree to its project tree ID (GET /external/projects/{projectId}/trees/{treeId}) answers 401 to a customer API key, so the plugin leaves it out. A calculation only: nothing is planted or stored.
Output

list

projects.list List every active planting project with country, supplier and the trees you can plant in it Risk: read
Input: empty object GET /external/projects on the project-management service. Returns { data, total }; the API guide shows a bare array, but the API and its OpenAPI document wrap the list in data. The CO2 field is tonnes_co2 (the guide spells it tonnes_c02). Output

Trees

plant

trees.plant Plant trees from the payment account for yourself or as gifts; spends credits unless test mode is on Risk: destructive
Input: object POST /external/plant on the transaction-management service. With plant_for_others: true, send recipients (each needs an account_code or an email, plus name and quantity); with plant_for_others: false, send quantity. project_id and tree_id default to More Trees’ default project and tree when omitted.
Output