Skip to main content

Validates a token

GET 

<your-unleash-url>/auth/reset/validate

If the token is valid returns the user that owns the token

Responses

tokenUserSchema

Schema
    idintegerrequired

    The user id

    Example: 7
    namestring

    The name of the user

    Example: Test McTest
    emailstringrequired

    The email of the user

    Example: test@example.com
    tokenstringrequired

    A token uniquely identifying a user

    Example: user:xyzrandomstring
    createdBystringnullablerequired

    A username or email identifying which user created this token

    Example: admin@example.com
    role objectrequired

    A role holds permissions to allow Unleash to decide what actions a role holder is allowed to perform

    idintegerrequired

    The role id

    Example: 9
    typestringrequired

    A role can either be a global root role (applies to all projects) or a project role

    Example: root
    namestringrequired

    The name of the role

    Example: Editor
    descriptionstring

    A more detailed description of the role and what use it's intended for

    Example: Users with the editor role have access to most features in Unleash but can not manage users and roles in the global scope. Editors will be added as project owners when creating projects and get superuser rights within the context of these projects. Users with the editor role will also get access to most permissions on the default project by default.
    projectstringnullable

    What project the role belongs to

    Example: default

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L '<your-unleash-url>/auth/reset/validate' \
-H 'Accept: application/json' \
-H 'Authorization: <Authorization>'
Request Collapse all
Base URL
<your-unleash-url>
Auth
ResponseClear

Click the Send API Request button above and see the response here!