Users

Get the current user

Changed on
get/users/current

Request

  • Base URL
    https://api.ofdb.io/v0
  • URL
    https://api.ofdb.io/v0/users/current
  • Auth
    HTTP bearer

Response

The current user

emailstring required

An e-mail address.

email_confirmedboolean required
role'guest' | 'user' | 'scout' | 'admin' required

A user's role

Example response

{
  "email": "john.smith@example.com"
}

Changes

    • info

      the endpoint scheme security jwtAuth was added to the API

    • breaking

      the response property's minLength was decreased from 3 to 0 for the response status

    • breaking

      the response's property type changed from string to no type for status

    • info

      added to the response property allOf list for the response status