Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 798 Bytes

get.md

File metadata and controls

46 lines (32 loc) · 798 Bytes

Show Current User

Get the details of the currently Authenticated User along with basic subscription information.

URL : /api/user/

Method : GET

Auth required : YES

Permissions required : None

Success Response

Code : 200 OK

Content examples

For a User with ID 1234 on the local database where that User has saved an email address and name information.

{
    "id": 1234,
    "first_name": "Joe",
    "last_name": "Bloggs",
    "email": "[email protected]"
}

For a user with ID 4321 on the local database but no details have been set yet.

{
    "id": 4321,
    "first_name": "",
    "last_name": "",
    "email": ""
}

Notes

  • If the User does not have a UserInfo instance when requested then one will be created for them.