01. Access Token

Returns OAuth 2.0 token

Changed on
post/oauth/v2/token

Request

  • Base URL
    https://api.friendlyscore.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Request body

client_idstring required

OAuth client_id

client_secretstring required

OAuth client_secret

grant_typestring required

OAuth grant_type (only client_credentials is currently supported)

Example request

{
  "client_id": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "client_secret": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
  "grant_type": "client_credentials"
}

Response

Returns OAuth 2.0 Token object

access_tokenstring

Access token value

expires_ininteger

Token expiry time in seconds

token_typestring

Token type

scopestring

Optional scope

Example response

{
  "access_token": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
  "token_type": "Bearer"
}

Changes