Skip to main content
Version: v3New

Get Location Access Token from Agency Token

POST 

/oauth/location-token

This API allows you to generate locationAccessToken from AgencyAccessToken

Request

Version stringrequired

API Version

Available optionsv3
application/x-www-form-urlencoded

Bodyrequired

    companyIdstringrequired

    Company Id of location you want to request token for

    locationIdstringrequired

    The location ID for which you want to obtain accessToken

application/json

Successful response

Schema
    access_tokenstring

    Location access token which can be used to authenticate & authorize API under following scope

    token_typestring

    The token type (always Bearer)

    expires_innumber

    Time in seconds remaining for token to expire

    scopestring

    Scopes the following accessToken have access to

    locationIdstring

    Location ID - Present only for Sub-Account Access Token

    planIdstring

    Plan Id of the subscribed plan in paid apps.

    userIdstringrequired

    USER ID - Represent user id of person who performed installation

    appIdstring

    App ID of the installed application

    versionIdstring

    Version ID of the installed app version

    refresh_tokenstring

    The OAuth2 refresh token used to obtain a new access token for this specific location.