POST api/token

POST api/token

Request information

Header parameters

Name
Description
Type
Additional info
Content-type
application/x-www-form-urlencoded
string
Authorization
basic QVBJOjU4RjI4MzJDLTI5Q0UtNDhFMC05QjdFLTc1QzlEODFGNkM0MA==
string

Body parameters

Name
Description
Type
Additional info
username
test
string
password
test
string
grant_type
password
string

Response information


Response formats

Name
Description
Type
Additional information
id
string
name
string
adress
string
post
string
contact
string
VAT_number
string
MAT_number
string
TAX
string


Confirmation response

{

    "access_token": "r0D2xgUfs23VfwU2uCOBHMqKf4eLQoPBxspFVbg8-tHVVI5f2uy3lXniiYhNBtbFXVMO-uCGJuPJTzLVme",

    "token_type": "bearer",

    "expires_in": 3599,

    "refresh_token": "539516258b2a41a285e30259c494e977",

    "client_id": "API",

    "userName": "test",

    ".issued": "Fri, 10 Dec 2021 10:53:37 GMT",

    ".expires": "Fri, 10 Dec 2021 11:53:37 GMT"

}

V tem prispevku