{{baseUrl}}/token

POST {{baseUrl}}/token

With this call passing one or more scopes you receive a token that you will need to authenticate with the same scopes you passed. Tokens with expiration dates can be very useful if you want to restrict access to just the small number of scopes that your application/service needs: in this way you can avoid unwanted requests

Request Body

{"scopes"=>["<string>", "<string>"], "expire"=>"<integer>", "ttl"=>"<integer>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;scopes&quot;:[&quot;POST:valutometro.altravia.com/valutazione&quot;],&quot;expire&quot;:1634223407,&quot;token&quot;:&quot;5f8711afe4754a532a7a8358&quot;,&quot;success&quot;:true,&quot;message&quot;:&quot;&quot;,&quot;error&quot;:null}