Skip to content
  • There are no suggestions because the search field is empty.

API - Link any action on your software to trigger a tree

Automate your tree planting actions using our public API — perfect for custom platforms, apps, booking systems, and more.

Our trees work as e-gifts that can be linked to any products or services and triggered by any action you set. Ideal for large projects, apps, and SAAS platforms. Check here all the integrations we offer.  

API

🌱 What is the Tree-Nation API?

The Tree-Nation API allows you to automate tree planting and integrate it directly into your product or platform. Whether you're building a booking system, a subscription-based app, or a gamified experience, the API gives you full control to:

  • 🌳 Trigger tree planting for user actions (e.g., orders, bookings, milestones)

  • 🧾 Generate Tree-Gift links

  • 🔍 Retrieve planting data (species, CO₂ offset, tree ID, etc.)

  • 🔄 Track and manage your planting activity programmatically

💡 Access to the API is now free. No subscription or premium plan is required to use it.

With more advanced features, you can create a Tree-Nation user profile for your corporate clients. You can also manage and distribute credits to those clients  (contact us).


📘 Where to find the documentation

Explore our complete API documentation and test endpoints using the following tools:


⚙️ What can I do with the API?

Common use cases for our API include:

Use Case Example
Trigger tree planting Plant a tree when a customer books a session
Generate Tree-Gift links Automatically send Tree-Gifts after purchases
Sync tree planting data Retrieve species, location, CO₂ info per tree
Track performance Pull data for dashboards or impact reports

You can plant in your company forest, personalize tree messages, and retrieve reports as part of your automation.


⚠️ Important: Are you using a third-party platform?

The Tree-Nation API is designed for custom-built platforms or internal systems. If you're using a third-party system like: Bsports, Fareharbor, Mindbody, or other industry-specific operation platforms, please note the following:

✅ If you control the platform's backend:

You can implement the Tree-Nation API directly with your development team.

❌ If you don’t control the backend (e.g., you're a customer of the platform):

You cannot implement the Tree-Nation API yourself. In this case:

  1. Contact your platform provider and ask:

    • Do they support external API triggers?

    • Are they willing to integrate with Tree-Nation’s API?

  2. 💡 Alternatively, check if the platform is available on Zapier, see more below ⬇️


⚡️ Zapier: A no-code alternative

If your system is supported by Zapier, you can use the Tree-Nation Zapier integration to trigger tree planting without writing any code.

  • Explore Tree-Nation on Zapier

  • Automate actions like:

    • “Plant a tree when a form is submitted”

    • “Send Tree-Gift after an order”

    • “Plant a tree when a customer subscribes”


Terms and Conditions of species selection

There are two methodologies for selecting tree species for planting:

  1. Selection by Price (Recommended): This user-friendly option allows for planting through predefined species packages, each anchored to a specific price point. The composition of species within these packages is dynamically managed by Tree-Nation and may vary periodically to align with the predetermined price. Opting for this method ensures cost stability and simplifies the selection process.

  2. Selection by Species ID (Advanced): This approach utilizes the Species ID, obtained via the API, to plant a specific tree species. However, it's important to note that the cost associated with this method is subject to fluctuation over time. As such, should you prefer to plant a specific species, it is advisable to verify the current cost through the API prior to each planting request, thereby mitigating potential discrepancies in pricing.

To engage the first option and leverage a species package, simply omit the species_id from your API request's body. Doing so will prompt the system to default to the species package pre-configured in your account, which can be set using the form provided below, or adjusted through your Forest Success Manager.


🧰 How to get started - Request API Token

  1. Create an account on our test website.
  2. Request your API Token - Fill out the form below to request your API tokens.
  3. We will configure your API and provide the TEST API token via email.
  4. Start testing - with the token, you can start developing the integration and test it on our TEST platform, using the development documentation: API documentation on Postman.
  5. Move to Live - Once testing is completed, confirm via email to your account manager or our support team, and they will provide you with the LIVE API Token upon subscribing to the premium plan.
  6. Launch to live - After you receive the Live Token, you can configure the integration for the live platform. Make a test order, and off you go you implemented your reforestation commitment.

✍️ Request API Token

Note
If you are testing our API on our test site, we will give you free credits in advance.

For more advanced features, please contact us at integration@tree-nation.com


📞 Need support?

We’re happy to support you during implementation — especially once your platform is live.
For setup questions, use our support channels: