- The GreenSwapp API uses API keys to authenticate requests. You can get API keys by contacting GreenSwapp.
- 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.
- Every incoming request to the API must contain an API key. You can use API key by passing the API key as the
x-api-key
in HTTP header of each incoming HTTP request.
- All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.
curl \
-X GET https://trial.greenswapp.com/product?product=Oatly+Oat+Milk+Barista+Edition \
-H "x-api-key: wURhYA73Ix6UeJzMv1hDB5mRmD0CU"