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