OAuth2

Token

Used by the client to obtain an access token by presenting an authorization grant or refresh token

post/v2/oauth/token

Request

  • Base URL
    https://api.sidequestvr.com
  • URL
    https://api.sidequestvr.com/v2/oauth/token
  • Auth
    none declared

Request body application/x-www-url-formencoded

grant_type'refresh_token' required

The grant type

  • refresh_token - Generate a new access token by providing a refresh token
refresh_tokenstring required

The refresh token to get a new access token for when grant_type is refresh

client_idstring required

The client id associated with the oauth client

Response

Success

access_tokenstring required

The access token which is used as a bearer token in the Authorization header

access_token_expires_atstring date-time required

The date and time when the access token expires and is no longer valid

scopesstring[] required

A list of scopes that this token has access to

users_idinteger required

The identifier for the user this token is for

apps_idinteger required

When the token is scoped, the identifier for the app that the token is scoped to

client_idstring required

The id of the API client this token is issued for

Example response

{
  "access_token_expires_at": "1970-04-20 07:10:00+00"
}

Changes

No recorded changes to this operation across all 4 revisions of this API.