v1tokens

Authenticates a user with Authorization header and returns a token object.

Header parameters
authorization
string
base64 encoded string containing login and password
x-forwarded-for
string
set externally to indicate real source of the request
Request body

Lifespan of the token

object
ttl
integer, null
Responses

New token has been created

object
expiry
string
id
string
metadata
object
token
string
user
string

Validates a token provided in the request body.

Request body

Token to validate

object
token
string, null
Responses

Validation results

object
valid
boolean