API Access

How to signup for API, where can I find details about API, what methods are included

 

Step 1 - Signup to test/sandbox environment (DEV)

Step 2 - Signup to API

Step 3 - Request keys

Now you can develop your solution against our DEV environment,

and when ready you can 

Step 4 -  Go to production

 

OVERVIEW

GreenPowerHub provides API access to most of the features that are available in our marketplace. For details of methods and call please visit our

The developer site documents our API-calls and typically the TEST products goes towards our DEV environment, whilst the other products goes towards PRODUCTION.

DEV/DEMO site

Our DEV environment is available at:

https://dev.greenpowerhub.com

You need a user account in a company, and a test subscription to get access. 

You can signup and get access directly by signing up for a test account at: our website

Please contact sales@greenpowerhub.com for any questions

PRODUCTION site

Our PROD environment is the live environment where clients place their interests and does trades. It is available at: https://app.greenpowerhub.com

Anything you place here will be live and visible/tradable by other customers.

You need a user account in a company, and a company subscription to get access.

Please contact sales@greenpowerhub.com and request access, or signup at www.greenpowerhub.com - Sign up.
To be able to use the API in production you either need a high enough tiered license, or a separate API license. 

SIGNUP DEV SITE - step 1

DEV is our test/demo environment. It is ok to do mistakes here, and any trades you do here has no consequence. Here you can test placing interests, managaing partners and more. But do not get confused, 
Signup to DEV by going to https://www.greenpowerhub.com/signup-test-everything

as described above and fill out the form. This creates a company and user in DEV and allows you to login to https://dev.greenpowerhub.com.

This environment is a test environment so feel free to place interests, trade etc to get acquainted.

 

SIGNUP API - step 2

Signup to API via our developer site https://developer.greenpowerhub.com

signup

You then need to verify your account by clicking in the email.

 

Sign in and go to Products - Premium Test

Here you are able to subscribe to the Premium Test product, 

  1. give the subscription a name and then
  2. hit the Subscribe button

When the subscription is setup (takes a few seconds) you will be redirected to the profile page:

PROFILE PAGE

Here you will be able to get your Subscription keys.

You can also go to the Profile page from the main menu or via this link: https://developer.greenpowerhub.com/profile

SUBSCRIPTION KEY

On the Profile page you can see all your subscriptions, and show the related Subscription keys (click show):

Click Show as seen in above image to view your subscription keys

 

TESTING THE SUBSCRIPTION KEY

When using the developer site, it will automatically use your subscription key when you are signed in. But if you want to use an external tool like Postman etc. you need to put the value in the header:

Subscription key should be put in as a key/value in the header

Key: Ocp-Apim-Subscription-Key

Value: [your key from the user profile page, see above]

Example from Postman:

Now all you need is an API-key and you are ready.

API-KEY - step 3

You can request an API-key by using the information from step 1 and 2 above ands fill out the following form: API Request form

Api-keys are connected to your user. They have the same permissions and longevity as your user and they can act on your behalf. This means that any integration made with your API-key will be in your name, i.e interests placed, trades done etc are connected to the user that owns the API-key. This is so trades have a valid signer, and your counterpart knows who they have made a deal with. To an outside user there is no difference between a trade done via API or in the UI.

API key should be put in as a key/value in the header

Key: X-API-KEY

Value: [your api-key provided by us]

See Postman picture above

Step 4 - Production

When you are ready to move into production, we request a short demo/walkthrough of your solution, for inspiration and validation.

Please book a short meeting here when ready
Book a meeting