> ## Documentation Index
> Fetch the complete documentation index at: https://docs.salesive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get user profile

> Retrieve the authenticated shopper's profile and saved shipping addresses.

## Request

```http theme={null}
GET /user
Authorization: Bearer {{token}}
x-shop-id: {{shopId}}
```

## Headers

| Header          | Type   | Description                             |
| --------------- | ------ | --------------------------------------- |
| `Authorization` | string | Bearer token of the authenticated user. |
| `x-shop-id`     | string | Identify the shop context.              |

## Successful response

```json theme={null}
{
    "status": 200,
    "success": true,
    "message": "User profile retrieved",
    "data": {
        "user": {
            "_id": "651f8a1b2c3d4e5f60718293",
            "name": "Jane Smith",
            "email": "jane@example.com",
            "phone": "+2348099887766",
            "role": "user",
            "shopRole": null,
            "stores": [],
            "avatar": "https://cdn.salesive.com/avatars/jane.webp",
            "authMethod": "google",
            "balance": 0,
            "createdAt": "2026-01-12T09:14:05.221Z",
            "updatedAt": "2026-06-10T18:02:55.870Z"
        },
        "addresses": [
            {
                "_id": "651f8a9b2c3d4e5f60718300",
                "user": "651f8a1b2c3d4e5f60718293",
                "name": "Jane Smith",
                "phone": "+2348099887766",
                "address": "12 Marina Road",
                "city": "Lagos",
                "state": "Lagos",
                "country": "Nigeria",
                "latitude": 6.5244,
                "longitude": 3.3792,
                "isDefault": true,
                "createdAt": "2026-02-01T11:20:00.000Z",
                "updatedAt": "2026-02-01T11:20:00.000Z"
            }
        ]
    }
}
```

## Error response

```json theme={null}
{
    "status": 401,
    "success": false,
    "message": "Token required!",
    "data": {}
}
```


## OpenAPI

````yaml GET /user
openapi: 3.1.0
info:
  title: Salesive Store API
  description: >-
    REST interface for querying products, categories, and merchandising banners
    exposed by Salesive storefronts.
  version: 1.0.0
servers:
  - description: Production
    url: https://store.salesive.com/api/v1
security:
  - BearerAuth: []
    ShopIdHeader: []
paths:
  /user:
    get:
      summary: Get current user profile
      description: >-
        Return the authenticated shopper's profile together with their saved
        shipping addresses.
      parameters:
        - $ref: '#/components/parameters/XShopIdHeader'
      responses:
        '200':
          description: Profile and addresses retrieved.
          content:
            application/json:
              schema:
                type: object
        '401':
          description: Authentication required.
components:
  parameters:
    XShopIdHeader:
      name: x-shop-id
      in: header
      description: >-
        Optional identifier that scopes responses to a specific storefront when
        the referer cannot be inferred.
      required: false
      schema:
        type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT issued by the Salesive Store API for authenticated shoppers.
    ShopIdHeader:
      type: apiKey
      in: header
      name: x-shop-id
      description: >-
        Optional storefront identifier sent as a header to scope responses to a
        specific shop. Try It requests remember this value once provided.

````