Light APIv1.0.0

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

Response

  • access_token string

  • expires_in integer · int64

  • token_type string

  • refresh_token string