Getting started with TheGoodAPI

Build something Good. Increase conversion.

Why use TheGoodAPI?

Through our api, you can seamlessly plant trees after any event in your app (subscription, product purchase, or any other customer milestone). Showcase your investment in our planet to your customers and drive more conversions.

Put tree planting on autopilot. No more manual tracking and payments. We plant trees on your behalf and invoice you once a month. We maintain an updated record of all the trees you have planted and provide certificates that show proof of tree planting.

Sign Up

POST https://app.thegoodapi.com/signup

A single signup method which will give you access to all the goodness with this API (right now only planting trees). During the beta, Invoices will be sent directly to email and will be payable from the email itself. No CC information needed to get started

Headers

Request Body

{
  "api_key_prod": "xxxx",
  "api_key_test": "xxxx"
}

Note: During the beta, should you ever lose your keys or need a rotation, please send us a twitter DM @saifabid and we'll get it sorted out.

Plant Trees

POST https://app.thegoodapi.com/plant/trees

Yes, planting trees is really this easy!

Headers

Request Body

{
  "total_planted_trees": integer # Total number of trees planted in account lifetime
}

Please make sure to get an API Key from signing up first. To receive your beta_token, DM @saifabid twitter

Returns total trees planted

GET https://app.thegoodapi.com/plant/trees

Headers

{
  "total_planted_trees": int
}

Last updated