Oauth authorize

Use this endpoint to exchange a client_id and client_secret for a token.

Body Params

The standard request body for a POST /authorize.

string
required
length ≥ 0

Denotes the flow you are using. To refresh a token, use refresh_token.

string
required
length ≥ 1

The client_id given to Bright Energy.

string
required
length ≥ 1

The client_secret given to Bright Energy.

string
required
length ≥ 0

The Authorization Code received from the initial /authorize call.

string
length ≥ 0

This is required only if it was set at the GET /authorize endpoint. The values from /authorize must match the value you set at /oauth/token.

Responses

Language
URL
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json