Skip to content

token

Login

Request

Query
login_typestring(Login Type)required

Login type: user, agent or third_party_app

Bodyapplication/x-www-form-urlencodedrequired
grant_typestring or null(Grant Type)
Any of:
string
usernamestring(Username)required
passwordstring, (password)(Password)required
scopestring(Scope)
Default:""
client_idstring or null(Client Id)
Any of:
string
client_secretstring or null(Client Secret)
Any of:
string (password)
POST
/api/v1/token/
curl -i -X POST \
  'https://matric-docs.redocly.app/_mock/openapi/api/v1/token/?login_type=string' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d grant_type=string \
  -d username=string \
  -d 'password=pa$$word' \
  -d scope= \
  -d client_id=string \
  -d 'client_secret=pa$$word'

Responses

Successful Response

Bodyapplication/json
access_tokenstring(Access Token)required
token_typestring(Token Type)required
expires_ininteger(Expires In)required
Response
{ "access_token": "string", "token_type": "string", "expires_in": 0 }