Skip to main content

Login

POST 

/auth

The Login request allows users to authenticate themselves with ANSCER ANYA by providing their email address and password. This request does not require any additional parameters and can be accessed by any unauthenticated user.

To use this request, you need to provide your email address and password to ANSCER ANYA and send the request to the API endpoint. Once the request is sent, ANSCER ANYA will verify your credentials and return a JSON Web Token (JWT) that can be used to authenticate subsequent requests.

Request

Body

required
    email emailrequired

    Possible values: >= 5 characters and <= 255 characters

    password stringrequired

    Possible values: >= 6 characters and <= 255 characters

Responses

User logged in

Response Headers
  • x-auth-token string

    JWT token

Schema
    _id uuid
    name string

    Possible values: >= 3 characters and <= 50 characters

    email email

    Possible values: >= 5 characters and <= 255 characters

    role userRoles

    Possible values: [developer, admin, user]

    token string

    JWT token

Loading...