{{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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"scopes":["POST:valutometro.altravia.com/valutazione"],"expire":1634223407,"token":"5f8711afe4754a532a7a8358","success":true,"message":"","error":null}