Authentication API

    6 endpoints

    Authentication and authorization.

    POST
    Auth Required

    Logout (clears bearerToken for future API calls).

    Logout (clears bearerToken for future API calls).

    Endpoint

    /admin/auth/requestJWT

    Responses

    200
    Success
    400
    Bad request
    401
    Unauthorized
    404
    Not found
    GET
    Auth Required

    Gets current account information for the logged in user.

    Gets current account information for the logged in user.

    Endpoint

    /public/auth/account

    Responses

    200
    Success
    {
      "schema": "AccountInfoResponse"
    }
    400
    Bad request
    401
    Unauthorized
    404
    Not found
    POST
    Auth Required

    Login with email and password.

    Login with email and password.

    Endpoint

    /public/auth/login

    Responses

    200
    Success
    {
      "schema": "LoginResponse"
    }
    400
    Bad request
    401
    Unauthorized
    404
    Not found
    POST
    Auth Required

    Requests an admin JWT for the current user and a specific collection Returns JWT if valid.

    Requests an admin JWT for the current user and a specific collection Returns JWT if valid.

    Endpoint

    /public/auth/register

    Parameters

    body
    body
    UserAccountRegistrationRequest
    Required

    See UserAccountRegistrationRequest schema

    Responses

    200
    Success
    {
      "schema": "LoginResponse"
    }
    400
    Bad request
    401
    Unauthorized
    404
    Not found
    POST
    Auth Required

    Requests an admin JWT for the current user and a specific collection Returns JWT if valid.

    Requests an admin JWT for the current user and a specific collection Returns JWT if valid.

    Endpoint

    /public/auth/requestJWT

    Responses

    200
    Success
    400
    Bad request
    401
    Unauthorized
    404
    Not found
    POST
    Auth Required

    Login with email and password.

    Login with email and password.

    Endpoint

    /public/auth/verify

    Responses

    200
    Success
    {
      "schema": "VerifyTokenResponse"
    }
    400
    Bad request
    401
    Unauthorized
    404
    Not found