API Documentation
Authentication
The Greener Choice API uses API keys to authenticate requests. You can view and manage your API keys in the Greener Choice Dashboard.
Test mode secret keys have the prefix gc_test_
and live mode secret keys have the prefix gc_live_
.
Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
Using API Keys
Authenticate yourself by attaching an api-key
header value to all requests. See example below: