API /
Reference /
Authorization
Create access token
POST
https://api.light.inc/oauth/token
Exchanges an authorization code or refresh token for an access token
Authorization
Send one of these on every request. See
Authentication for how to get credentials.
- API key
Basic authentication header of the form Basic <api_key>, where <api_key> is your api key.
- Bearer token
Request body
application/x-www-form-urlencoded
-
client_id
string
-
client_secret
string
-
grant_type
string
-
code
string
-
redirect_uri
string
-
refresh_token
string