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 be application/x-www-form-urlencoded

Form Data

NameTypeDescription

client_id

string

client_secret

optional string

Required where PKCE is not being used

grant_type

string

Must be authorization_code or refresh_token

code

string

The code returned to your redirect URI after consent flow. Required for grant_type=authorization_code

refresh_token

string

Required for grant_type=refresh_token

code_verifier

string

Required where PKCE is being used

Last updated