POST /token
Exchange an Authorization Code or Refresh Token for a fresh GraphQL access token
Request
Endpoint
POST https://auth.open-utilities.com/v1/token
Headers
Content-Type
- Must beapplication/x-www-form-urlencoded
Form Data
Name | Type | Description |
---|---|---|
client_id | string | |
client_secret | optional string | Required where PKCE is not being used |
grant_type | string | Must be |
code | string | The code returned to your redirect URI after consent flow. Required for grant_type= |
refresh_token | string | Required for grant_type= |
code_verifier | string | Required where PKCE is being used |
Last updated