Getting Started

Written by Heinz Hambrock

Getting Started with our Application

Getting Started with our APIs

To begin using the SiGREEN API, follow these steps:

  1. Request SiGREEN API access from the SiGREEN team via sigreensupport.industry@siemens.com
  2. After our approval process you will get Client ID and a Client Secret.
  3. Make a request against our identity provider SiemensID to receive a JWT by using Client ID and Client Secret provided by SiGREEN team.
  4. Include the JWT Token Authorization header of your HTTP requests.

Request a Token

Environment Siemens ID URL
SiGREEN UAT https://siemens-00340.eu.auth0.com/oauth/token/
SiGREEN PROD https://siemens-00236.eu.auth0.com/oauth/token/
curl https://siemens-00236.eu.auth0.com/oauth/token \ <-- Please reference to the table above regarding different environments
 -H 'content-type: application/json' \
 -d "{
           \"client_id\":\"$CLIENT_ID\",
           \"client_secret\":\"$CLIENT_SECRET\",
           \"audience\":\"https://app.sigreen.siemens.com/\",
           \"grant_type\":\"client_credentials\"
     }"

 

Example response

{
  "access_token": "jwtHeader.jwtPayload.jwtSignature",
  "token_type": "Bearer",
  "expires_in": 1800
}

 

Example request to SiGREEN APIs

Environment SiGREEN Base URL
SiGREEN UAT https://app-uat.sigreen-playground.siemens.cloud/api
SiGREEN PROD https://app.sigreen.siemens.com/api

 

curl --request POST \
  --url https://app.sigreen.siemens.com/api/products/factoryEmissions/42564 \
  --header 'Authorization: Bearer jwtHeader.jwtPayload.jwtSignature'