Retrieve Logged-in User

Request

GET https://backend.net0.com/v1/customers/me

This endpoint allows for the retrieval of the currently logged-in customer.

curl --location --request GET 'https://backend.net0.com/v1/customers/me' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <API-KEY>

Response

The response includes all the details about the currently logged-in user.

{
    "id": "4273e3fa-15b3-4cb8-a6a8-3992cf7f5c0f",
    "role": "co-owner",
    "status": "active",
    "avatarUrl": null,
    "phone": "744444444",
    "firstName": "API",
    "lastName": "Dev",
    "email": "[email protected]",
    "verify": true,
    "companyId": 2,
    "createdAt": "2021-11-22T18:37:10.596Z",
    "updatedAt": "2021-11-22T18:45:33.810Z",
    "deletedAt": null,
    "wallet": {
        "id": "20bdfa6e-5be9-4fba-8e62-557d951825fa",
        "credits": 0,
        "customerId": "4273e3fa-15b3-4cb8-a6a8-3992cf7f5c0f",
        "createdAt": "2021-11-22T18:37:11.330Z",
        "updatedAt": "2021-11-22T18:37:11.330Z"
    },
    "company": {
        "id": 2,
        "name": "Test",
        "email": "[email protected]",
        "address": "488 University Ave, Toronto, ON M5G 1V2, Canada",
        "addressCoordinates": "-79.38891579999999,43.6551564",
        "createdAt": "2021-11-22T12:38:37.233Z",
        "updatedAt": "2021-11-22T12:41:47.632Z",
        "ownerId": "de47998a-8634-4979-880e-455b7ebe3795",
        "walletId": "113d34e3-95d7-4d48-854c-04f880bb9690",
        "logoImageUrl": null
    }
}