Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Get user information

MaurICT edited this page Apr 9, 2020 · 3 revisions

Getting account information from the user

GET /api/user

Example response:

{
    "status": "success",
    "data": {
        "gender": true,
        "username": "test",
        "email": "testperson@mail.ru",
        "firstname": "Henk",
        "lastname": "Henkse",
        "phone": "0123456789",
        "address": "Teststraat 2",
        "postalcode": "4410AA",
        "residence": "Rilland",
        "birthdate": "2001-10-18T00:00:00"
    }
}

Getting Authentication info (like token)

GET /api/user/auth

Example response:

{
    "status": "success",
    "auth": {
        "id": 486,
        "token": "2f1b9a49f92533bhc4d874519adfbd72h44f838394d85f1ddg2e54fca9c69260",
        "ip": "OVERSTAG_APP",
        "registered": "2020-04-09T12:58:28.3289193",
        "userId": 9
    }
}

Logging out user (makes apiKey/token invalid)

GET /api/user/logout

Example response:

{
    "status": "success"
{