# Getting started with TheGoodAPI

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.&#x20;

## Billing

As mentioned below, once you sign up for the GoodAPI, your first bill will be emailed to you and you can pay for it directly from the email. Subsequent invoices will also be emailed and you can setup auto pay as well.

## Sign Up

<mark style="color:green;">`POST`</mark> `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

| Name        | Type   | Description                                                                                |
| ----------- | ------ | ------------------------------------------------------------------------------------------ |
| beta\_token | string | Please email <saif@thegoodapi.com> or <mirvise@thegoodapi.com> for your registration token |

#### Request Body

| Name          | Type   | Description                                                 |
| ------------- | ------ | ----------------------------------------------------------- |
| contact\_name | string | Contact name, primarily used for communications and billing |
| email         | string | Contact email, primarily used for billing                   |
| name          | string | Organization Name                                           |

{% tabs %}
{% tab title="200 Two API Keys will be returned. Using the prod api\_key will add the appropriate amount of trees to be charged on your end of month invoice. Using the.test keys will work exactly the same except you will not be.charged for the trees planted through these keys  " %}

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

{% endtab %}
{% endtabs %}

{% hint style="info" %}
Note: **During the beta**, should you ever lose your keys or need a rotation, please send us an email at <saif@thegoodapi.com> and we'll get it sorted out.&#x20;
{% endhint %}
