Getting Started with our Application¶
- Please find our Getting Started Guide of the SiGREEN application here: Getting Started with the application
- There is also a demo application available here: Demo Application
Getting Started with our APIs¶
To begin using the SiGREEN API, follow these steps:
- Request SiGREEN API access from the SiGREEN team via sigreensupport.industry@siemens.com
- After our approval process you will get Client ID and a Client Secret.
- Make a request against our identity provider SiemensID to receive a JWT by using Client ID and Client Secret provided by SiGREEN team.
- 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¶
curl --request POST \
--url https://app.sigreen.siemens.com/api/products/factoryEmissions/42564 \
--header 'Authorization: Bearer jwtHeader.jwtPayload.jwtSignature'