Logo
Openapi.it Public API Documentation

{{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

 

Body PARAM

Key Datatype Required Description 



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 }



Curl
curl -X POST 'baseUrl/token' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"scopes":["\u003cstring\u003e","\u003cstring\u003e"],"expire":"\u003cinteger\u003e","ttl":"\u003cinteger\u003e"}'

ENDPOINTS