1. Log in
Do you already have an account with Eaton, that you use to log into www.eaton.com or my.eaton.com? If so, login by following the below instructions.
Signing in will provide you with the ability to view all the published APIs in the API Specification catalog. Click on the API Specification Catalog on the For Developers page to access the API catalog. You can view the detailed documentation and terms of use for the respective API. In order to request access, please register an app.
If you do not have an existing account, sign up for an Eaton developer account.
Signing in will provide you with the ability to view all the published APIs in the API Specification catalog. Click on the API Specification Catalog on the For Developers page to access the API catalog. You can view the detailed documentation and terms of use for the respective API. In order to request access, please register an app.
2. Teams
The purpose of a Team is to group users together in order to grant collective access to an App. Members of that Team will be able to view an Application’s API key(s) and secret(s).
Creating a team
To create a team, follow these steps:
At any time, you may open the Teams page from the For Developers page to see the list of Teams. Clicking on a Team provides details such as the list of members and their roles. If the logged-in member of the team has the Owner role, they may also manage other member permissions.
Adding developers to a team
To add new Team members to a Team, a Team Owner should follow these steps:
The individuals that have been granted membership in the team will have access to the team upon signing into the developer portal.
Changing a team member's role
Only an owner of a team can change another member’s role. They may also leave the team, but there must always be at least one owner on the team. The last owner will not be allowed to leave the team.
To change the role of a team member, an owner should follow these steps:
Removing a team member
Owners of a team can remove members from the Team. This removes their ability to view the team and access any applications that the team is a part of.
To remove a team member, an owner should follow these steps:
3. Register Apps
To get access to an API, please register your application for which the access is requested.
The API product owner will be notified to review the access request.
4. Applications with teams
Adding an application to a team
Applications can be added to Teams by any owner or app admin of the team. Adding an app to a team will allow all members of that team to view the Client ID and API key of the Application.
To add an application to a team, an owner or app admin should follow these steps:
5. Generating an OAuth token
The most common method to authenticate an Eaton API is via an OAuth token. To generate a token, encode your API key and secret using a Base64 encoder. A call to the OAuth token endpoint provides a token that is valid for 1 hour, after which you will have to refresh and create a new one.
If you do not have the API key and secret, please create an app, and request the product you would like to use.
Request URLs:
Adopter: https://api-adopter.eaton.com/oauth/accesstoken?grant_type=client_credentials
Production: https://api.eaton.com/oauth/accesstoken?grant_type=client_credentials
Generate the OAuth token using the following API call, replacing <base64_value> with the Base64-encoded value of the API key and secret in the below format:
<API key>:<secret>
Sample Request
curl -X POST https://api-qa.eaton.com/oauth/accesstoken?grant_type=client_credentials \
-d "" \
-H "Authorization: Basic <base64_value>" \
-H "Content-Type: application/x-www-form-urlencoded"
Sample Response The API returns an OAuth token in the access_token field, as shown in the example response below:
{
"tokenType": "Bearer",
"access_token": "lBrJlbb2ZxLkTGVBeJgcZSrsgTH9",
"issuedAt": 1620839325348,
"expiresIn": 3599,
"clientID": "Aoi5uQe5zDYZB8za4GrVjnNhjUSK8Df2",
"organization_name": "eaton",
"refresh_count": "0",
"refresh_token_expires_in": "0"
}
Please check the authentication requirements for the respective API. If it does not use an external access token received by passing user credentials, you may use the client id that is generated as the API key. This needs to be passed as a header parameter.
api-key: <API key>