The Wren API is located at https://www.wren.co/api.

The API is a traditional JSON REST API, with resources being exposed at URLs by their name. Some endpoints require authorization, while others are available for public use. In order to obtain an API token for authenticated endpoints, visit https://www.wren.co/wren-api.

The most common use of our API is to offset a specific amount of carbon dioxide with a portfolio of verified carbon sequestration projects though a request:

$ https POST www.wren.co/api/offset-orders \
    tons:=0.45 Authorization:"Bearer [token]"

{
  "amountCharged": 1040, ($10.40)
  "currency": "USD",
  "tons": 0.45,
  "portfolio": { ... }
}

Resources

Offset Order

Portfolio

Project

Shortcuts

Create an offset order

List all available portfolios

Examples

We provide a couple (very!) simple repos that showcase code examples that could be helpful when learning how to integrate your system with Wren's API. You can find them here: