Endpoint

/api/v1/get_user

Method

GET

Description

This endpoint retrieves detailed information about the authenticated user. It provides various details including the user's email, name, associated identities, metadata, and more.

Example Request

bashCode kopieren
GET /api/v1/get_user

Example Response

jsonCode kopieren
{
    "user": {
        "user_id": "google-oauth2|123456789012345678901",
        "email": "[email protected]",
        "given_name": "John",
        "email_verified": true,
        "updated_at": "2024-07-28T18:16:33.568Z",
        "identities": [
            {
                "access_token": "ya29.a0AXyoCgtJQY6FVBiPDTJqCi0fLLf1L28pSqmKxol4FGYxJxfav2njnzYWwFBwXtPX3hk2dCtjcRVMNqGvtMgwkV1fzzfvf0rR2Rvoh9cYOBYoYkpaJ7FQGa5x7EYr42Bg-jIYu4Sf-Lk-JA8i_jDxAk0WRvrF766-HkD2aCgYKARkSARESFQHGX2MiF6Hvujhte15p45fnUGg9OQ0171",
                "expires_in": 3599,
                "connection": "google-oauth2",
                "user_id": "123456789012345678901",
                "provider": "google-oauth2",
                "isSocial": true}
        ],
        "created_at": "2024-03-18T17:08:05.432Z",
        "user_metadata": {
            "message_me": false,
            "newsletter": false,
            "api_keys": [
                "bbot_abcdefghij1234567890",
                "bbot_klmnopqrst1234567890",
                "bbot_uvwxyz12345678901234"
            ],
            "updates": false,
            "features": true,
            "apps": {},
            "tokens": 500,
            "follows_me": true,
            "mentions_me": true},
        "name": "John Doe",
        "nickname": "john.doe",
        "picture": "<https://lh3.googleusercontent.com/a/ACg8ocL54DkmYmCmnGDiKfGJ2zv18r-NpU1XNQOJ2_5LY12BInK1IJQ=s96-c>",
        "family_name": "Doe",
        "last_login": "2024-07-28T18:16:16.163Z",
        "last_ip": "192.168.1.1",
        "logins_count": 125,
        "app_metadata": {}
    }
}

Response Attributes

Notes