Projects
Create a project
Creates a project with its data configuration in one transaction; if any part fails, nothing is created. The token’s user, if it has one, becomes the project owner. A token limited to a supplier or customer gets 403. Requires the write:project token scope.
POST
/
projects
Create a project
curl --request POST \
--url https://app.gomangrove.com/api/v1/projects \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"project": {
"name": "North Plant",
"project_status": "Draft",
"description": "Biochar production at the north site",
"start_date": "2026-01-01",
"location": [
"USA",
"CA"
]
}
}
'import requests
url = "https://app.gomangrove.com/api/v1/projects"
payload = { "project": {
"name": "North Plant",
"project_status": "Draft",
"description": "Biochar production at the north site",
"start_date": "2026-01-01",
"location": ["USA", "CA"]
} }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
project: {
name: 'North Plant',
project_status: 'Draft',
description: 'Biochar production at the north site',
start_date: '2026-01-01',
location: ['USA', 'CA']
}
})
};
fetch('https://app.gomangrove.com/api/v1/projects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.gomangrove.com/api/v1/projects",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'project' => [
'name' => 'North Plant',
'project_status' => 'Draft',
'description' => 'Biochar production at the north site',
'start_date' => '2026-01-01',
'location' => [
'USA',
'CA'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.gomangrove.com/api/v1/projects"
payload := strings.NewReader("{\n \"project\": {\n \"name\": \"North Plant\",\n \"project_status\": \"Draft\",\n \"description\": \"Biochar production at the north site\",\n \"start_date\": \"2026-01-01\",\n \"location\": [\n \"USA\",\n \"CA\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.gomangrove.com/api/v1/projects")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"project\": {\n \"name\": \"North Plant\",\n \"project_status\": \"Draft\",\n \"description\": \"Biochar production at the north site\",\n \"start_date\": \"2026-01-01\",\n \"location\": [\n \"USA\",\n \"CA\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gomangrove.com/api/v1/projects")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"project\": {\n \"name\": \"North Plant\",\n \"project_status\": \"Draft\",\n \"description\": \"Biochar production at the north site\",\n \"start_date\": \"2026-01-01\",\n \"location\": [\n \"USA\",\n \"CA\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "prj_aBcD1234eFgH5678",
"name": "<string>",
"description": "<string>",
"project_type": "<string>",
"credit_types": [
"<string>"
],
"country": "<string>",
"state": "<string>",
"project_status": "<string>",
"registry_id": 123,
"registry_name": "<string>",
"registry_link": "<string>",
"methodology": "<string>",
"inventory": {
"spot": [
{
"period": 123,
"total": 123
}
],
"forecasts": [
{
"period": 123,
"total": 123
}
],
"spot_total": {
"total": 123
},
"forecast_total": {
"total": 123
},
"total": {
"total": 123
}
},
"images": [
{
"id": 123,
"name": "<string>",
"title": "<string>",
"description": "<string>",
"url": "<string>"
}
],
"sustainable_development_goals": [
"<string>"
],
"field_values": {},
"custom_fields": [
{
"key": "<string>",
"label": "<string>",
"variant": "text",
"value": "<unknown>",
"enumeration_options": [
"<string>"
]
}
],
"ui_url": "https://app.gomangrove.com/nexus/prj_aBcD1234eFgH5678"
}Response
The created project.
A single project, with its custom fields resolved and a link into the app.
⌘I
Create a project
curl --request POST \
--url https://app.gomangrove.com/api/v1/projects \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"project": {
"name": "North Plant",
"project_status": "Draft",
"description": "Biochar production at the north site",
"start_date": "2026-01-01",
"location": [
"USA",
"CA"
]
}
}
'import requests
url = "https://app.gomangrove.com/api/v1/projects"
payload = { "project": {
"name": "North Plant",
"project_status": "Draft",
"description": "Biochar production at the north site",
"start_date": "2026-01-01",
"location": ["USA", "CA"]
} }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
project: {
name: 'North Plant',
project_status: 'Draft',
description: 'Biochar production at the north site',
start_date: '2026-01-01',
location: ['USA', 'CA']
}
})
};
fetch('https://app.gomangrove.com/api/v1/projects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.gomangrove.com/api/v1/projects",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'project' => [
'name' => 'North Plant',
'project_status' => 'Draft',
'description' => 'Biochar production at the north site',
'start_date' => '2026-01-01',
'location' => [
'USA',
'CA'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.gomangrove.com/api/v1/projects"
payload := strings.NewReader("{\n \"project\": {\n \"name\": \"North Plant\",\n \"project_status\": \"Draft\",\n \"description\": \"Biochar production at the north site\",\n \"start_date\": \"2026-01-01\",\n \"location\": [\n \"USA\",\n \"CA\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.gomangrove.com/api/v1/projects")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"project\": {\n \"name\": \"North Plant\",\n \"project_status\": \"Draft\",\n \"description\": \"Biochar production at the north site\",\n \"start_date\": \"2026-01-01\",\n \"location\": [\n \"USA\",\n \"CA\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gomangrove.com/api/v1/projects")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"project\": {\n \"name\": \"North Plant\",\n \"project_status\": \"Draft\",\n \"description\": \"Biochar production at the north site\",\n \"start_date\": \"2026-01-01\",\n \"location\": [\n \"USA\",\n \"CA\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "prj_aBcD1234eFgH5678",
"name": "<string>",
"description": "<string>",
"project_type": "<string>",
"credit_types": [
"<string>"
],
"country": "<string>",
"state": "<string>",
"project_status": "<string>",
"registry_id": 123,
"registry_name": "<string>",
"registry_link": "<string>",
"methodology": "<string>",
"inventory": {
"spot": [
{
"period": 123,
"total": 123
}
],
"forecasts": [
{
"period": 123,
"total": 123
}
],
"spot_total": {
"total": 123
},
"forecast_total": {
"total": 123
},
"total": {
"total": 123
}
},
"images": [
{
"id": 123,
"name": "<string>",
"title": "<string>",
"description": "<string>",
"url": "<string>"
}
],
"sustainable_development_goals": [
"<string>"
],
"field_values": {},
"custom_fields": [
{
"key": "<string>",
"label": "<string>",
"variant": "text",
"value": "<unknown>",
"enumeration_options": [
"<string>"
]
}
],
"ui_url": "https://app.gomangrove.com/nexus/prj_aBcD1234eFgH5678"
}