X api key (http_api_key)

<strong>Pass <code class="code-inline">x-api-key</code> in your HTTP header</strong>

  • 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.

<strong>Example with cURL:</strong>

   curl \
   -X GET \
   -H "x-api-key: wURhYA73Ix6UeJzMv1hDB5mRmD0CU"

<strong>Example with Postman:</strong>


Run in Postman