MENU navbar-image

Introduction

This documentation aims to provide all the information you need to work with our API.

<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile).
You can switch the language used with the tabs at the top right (or from the nav menu at the top left on mobile).</aside>

Authenticating requests

To authenticate requests, include an Authorization header with the value "Bearer {YOUR_AUTH_KEY}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

You can retrieve your token by visiting your dashboard and clicking Generate API token.

Endpoints

GET api/meta

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/meta" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/meta"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/meta

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/health

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/health" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/health"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/health

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/openapi.json

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/openapi.json" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/openapi.json"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/openapi.json

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/v1/openapi.json

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/v1/openapi.json" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/openapi.json"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/openapi.json

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

POST api/v1/auth/register

requires authentication

Example request:
curl --request POST \
    "https://parcelplan.laravel.cloud/api/v1/auth/register" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/auth/register"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/auth/register

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

POST api/v1/auth/login

requires authentication

Example request:
curl --request POST \
    "https://parcelplan.laravel.cloud/api/v1/auth/login" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/auth/login"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/auth/login

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/v1/plots

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/v1/plots" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/plots"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/plots

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/v1/plots/{slug}

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/v1/plots/{slug}" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/plots/{slug}"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/plots/{slug}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/v1/plots/{plot_slug}/summary

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/summary" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/summary"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/plots/{plot_slug}/summary

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/v1/plots/{plot_slug}/geojson

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/geojson" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/geojson"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/plots/{plot_slug}/geojson

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/v1/plots/{plot_slug}/geometry

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/geometry" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/geometry"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/plots/{plot_slug}/geometry

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/v1/plots/{plot_slug}/location

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/location" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/location"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/plots/{plot_slug}/location

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/v1/plots/{plot_slug}/dimensions

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/dimensions" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/dimensions"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/plots/{plot_slug}/dimensions

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/v1/plots/{plot_slug}/soil

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/soil" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/soil"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/plots/{plot_slug}/soil

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/v1/plots/{plot_slug}/terrain

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/terrain" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/terrain"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/plots/{plot_slug}/terrain

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/v1/plots/{plot_slug}/climate

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/climate" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/climate"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/plots/{plot_slug}/climate

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/v1/plots/{plot_slug}/water

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/water" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/water"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/plots/{plot_slug}/water

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/v1/plots/{plot_slug}/land-use

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/land-use" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/land-use"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/plots/{plot_slug}/land-use

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/v1/plots/{plot_slug}/accessibility

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/accessibility" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/accessibility"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/plots/{plot_slug}/accessibility

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/v1/plots/{plot_slug}/pricing

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/pricing" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}/pricing"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/plots/{plot_slug}/pricing

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

POST api/v1/plots

requires authentication

Example request:
curl --request POST \
    "https://parcelplan.laravel.cloud/api/v1/plots" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/plots"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/plots

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

PUT api/v1/plots/{slug}

requires authentication

Example request:
curl --request PUT \
    "https://parcelplan.laravel.cloud/api/v1/plots/{slug}" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/plots/{slug}"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());

Request      

PUT api/v1/plots/{slug}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

PATCH api/v1/plots/{plot_slug}

requires authentication

Example request:
curl --request PATCH \
    "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/plots/{plot_slug}"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "PATCH",
    headers,
}).then(response => response.json());

Request      

PATCH api/v1/plots/{plot_slug}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

DELETE api/v1/plots/{slug}

requires authentication

Example request:
curl --request DELETE \
    "https://parcelplan.laravel.cloud/api/v1/plots/{slug}" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/plots/{slug}"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "DELETE",
    headers,
}).then(response => response.json());

Request      

DELETE api/v1/plots/{slug}

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/v1/plots/{restorablePlot_slug}/restore

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/v1/plots/{restorablePlot_slug}/restore" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/plots/{restorablePlot_slug}/restore"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/plots/{restorablePlot_slug}/restore

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/v1/teams

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/v1/teams" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/teams"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/teams

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/v1/teams/current

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/v1/teams/current" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/teams/current"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/teams/current

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

GET api/v1/users/me

requires authentication

Example request:
curl --request GET \
    --get "https://parcelplan.laravel.cloud/api/v1/users/me" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/users/me"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "GET",
    headers,
}).then(response => response.json());

Request      

GET api/v1/users/me

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

PUT api/v1/users/me

requires authentication

Example request:
curl --request PUT \
    "https://parcelplan.laravel.cloud/api/v1/users/me" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/users/me"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "PUT",
    headers,
}).then(response => response.json());

Request      

PUT api/v1/users/me

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}

POST api/v1/auth/logout

requires authentication

Example request:
curl --request POST \
    "https://parcelplan.laravel.cloud/api/v1/auth/logout" \
    --header "Authorization: Bearer {YOUR_AUTH_KEY}"
const url = new URL(
    "https://parcelplan.laravel.cloud/api/v1/auth/logout"
);

const headers = {
    "Authorization": "Bearer {YOUR_AUTH_KEY}",
    "Accept": "application/json",
};


fetch(url, {
    method: "POST",
    headers,
}).then(response => response.json());

Request      

POST api/v1/auth/logout

Headers

Authorization        

Example: Bearer {YOUR_AUTH_KEY}