API referenceAccount
Retrieve the current user, company and customer
Deprecated
Returns the user the token belongs to, the company that user is a member of and the customer record of that company. The customer block is derived from the company on the Platform.
Authorization
bearerAuth AuthorizationBearer <token>
A personal access token created in the old woodyou.care dashboard under Account > API tokens. New tokens cannot be created for v1.
In: header
Response Body
application/json
application/json
curl -X GET "https://example.com/me"{ "user": { "id": 1, "name": "Jane Doe", "email": "jane@example.com" }, "company": { "id": 4, "name": "Example B.V.", "email": "info@example.com", "slug": "example" }, "customer": { "id": 2, "first_name": "Jane", "last_name": "Doe", "email": "jane@example.com" }}Ping GET
Checks that the API is up. No token needed.
Retrieve the tree totals of the company GET
The number of trees of the company, optionally within a period. co2_compensation uses the legacy formula and is deprecated: the Platform reports trees, not emissions. goal_emissions_compensated compares that figure with the carbon target the company set in the old shop.