Auth
Create access_token
Exchange an authorization_code for an access-token. The authorization_code is returned in the Connect onSuccess callback after the user successfully submits their utility credentials.
The access_token will not expire. Make sure you securely store it in your database so you can make future requests for the given user.
The fields access_token_expires_in, refresh_token, and refresh_token_expires_in can be ignored. These are included for applications using our legacy authorization framework.
post/auth/token
Request
- Base URLhttps://api.pelm.com
- Authnone declared. Required headers: Pelm-Client-Id, Pelm-Secret
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Pelm-Client-Idstring required
Your Pelm-Client-Id recieved on registration
Pelm-Secretstring required
Your Pelm-Secret recieved on registration
Request body application/x-www-form-urlencoded
Response
Successful operation
Changes
No recorded changes to this operation across all 1 revision of this API.