authentication

Create a new authentication token to use with the 'renterd_auth' cookie

Creates a new authentication token with the specified 'validity' duration. The token can be attached to a request as the renterd_auth cookie as an alternative way to Basic Auth for the API.`

post/auth

Query parameters

validityinteger required

The duration in milliseconds for which the token will be valid

Response

Successfully created a new token

tokenstring

A hex-encoded string representing the token

Changes