عرض المستخدم الحالي

GET https://app.alaaqat.com/api/me

الإستجابة

الإستجابة تكون دائماً بصيغة User.

{
    "id": 1,
    "email": "test@gmail.com",
    "email_verified_at": "2024-04-19T22:37:45.000000Z",
    "created_at": "2024-04-19T22:37:45.000000Z",
    "updated_at": "2024-05-27T15:21:42.000000Z",
    "firstname": "Test",
    "lastname": "Test",
    "image": "http://localhost/storage/users/1/UDydTbOyFRH1Wgds3ktmhNCVfJCQK6gmvVLU3ae0.jpg",
    "locale": "en",
    "contacts_view_id": null,
    "deals_view_id": null,
    "account": {
        "id": 1,
        "name": "test",
        "created_at": "2024-04-19T22:37:56.000000Z",
        "updated_at": "2024-04-19T22:37:56.000000Z",
        "industry": "Accounting",
        "logo": "https://ui-avatars.com/api/?name=test",
        "address": null,
        "timeZone": null,
        "calendar": null,
        "hour12": null,
        "locale": null,
        "currency": null,
        "plan": "business",
        "pivot": {
            "user_id": 1,
            "account_id": 1,
            "created_at": "2024-04-19T22:37:56.000000Z",
            "updated_at": "2024-05-27T21:12:39.000000Z",
            "status": "active",
            "last_used": "2024-05-27 21:12:39",
            "timeZone": "Asia/Amman",
            "calendar": "gregory",
            "hour12": true,
            "locale": "en-US",
            "currency": "USD"
        },
        "subscription": {
            "id": "sub_o8P6Fwuj6HCazyA4GGZFC42tHM",
            "account_id": 1,
            "name": "business",
            "status": "active",
            "trial_ends_at": null,
            "paused_at": null,
            "ends_at": "2024-06-15 23:03:32",
            "canceled_at": null,
            "created_at": "2024-05-15T23:03:32.000000Z",
            "updated_at": "2024-05-15T23:03:32.000000Z",
            "provider": "paddle",
            "will_change_at": null,
            "will_change_to": null,
            "interval": 30
        }
    },
    "notification_preferences": [
        {
            "id": 1,
            "user_id": 1,
            "account_id": 1,
            "name": "IncomingMessage",
            "stored": false,
            "popup": true,
            "browser": true,
            "email": false,
            "created_at": "2024-04-24T21:17:59.000000Z",
            "updated_at": "2024-04-24T21:17:59.000000Z"
        },
        {
            "name": "ObjectsExport",
            "stored": true,
            "popup": true,
            "browser": true,
            "email": true
        },
        {
            "name": "ObjectsImport",
            "stored": true,
            "popup": true,
            "browser": true,
            "email": true
        },
        {
            "name": "WhatsAppTemplateChangeStatus",
            "stored": true,
            "popup": true,
            "browser": true,
            "email": true
        },
        {
            "name": "WhatsappBroadcastCompleted",
            "stored": true,
            "popup": true,
            "browser": true,
            "email": true
        },
        {
            "name": "WhatsAppChangeTemplateCategory",
            "stored": true,
            "popup": true,
            "browser": true,
            "email": true
        }
    ],
    "teams": [
        {
            "id": 1,
            "name": "super admin",
            "description": null,
            "made_by": 1,
            "created_at": "2024-04-19T22:37:56.000000Z",
            "updated_at": "2024-04-19T22:37:56.000000Z",
            "account_id": 1,
            "pivot": {
                "user_id": 1,
                "team_id": 1,
                "created_at": "2024-04-19T22:37:56.000000Z",
                "updated_at": "2024-04-19T22:37:56.000000Z"
            },
            "permissions": []
        }
    ],
    "unread_notifications_count": 0,
    "has2FA": true
}