GET /user

Retourne les informations de l'utilisateur actuellement authentifié. Utile pour obtenir le profil de l'utilisateur après connexion.

Responses

  • 200 application/json

    Détails de l'utilisateur connecté

    Hide response attribute Show response attribute object
    • user object
      Hide user attributes Show user attributes object
      • _id string

        Unique identifier for the user

      • email string(email)

        User's email address

      • first_name string

        User's first name

      • last_name string

        User's last name

      • avatar string

        URL to user's avatar

      • state string

        User's state

        Values are inactive, created, confirmed, linkedin, google, or deleted.

      • positions array[string]

        List of positions associated with the user

      • phone object
        Hide phone attribute Show phone attribute object
        • number string

          User's phone number

      • address object
        Hide address attributes Show address attributes object
        • street string

          Street address

        • street_end string

          Additional street address information

        • zip_code string

          Zip code

        • city string

          City

        • country string

          Country

      • birthdate string(date-time)

        User's birthdate

      • gender string

        User's gender

        Values are H, F, null, or Other.

      • terms_of_sale_signature string(date-time)

        Date when user accepted terms of sale

      • createdAt string(date-time)

        Date when user was created

      • updatedAt string(date-time)

        Date when user was last updated

GET /user
curl \
 --request GET 'https://wuro.pro/api/v3.2/user' \
 --header "X-APP-ID: $API_KEY" \
 --header "X-APP-SECRET: $API_KEY"
Response examples (200)
{
  "user": {
    "_id": "string",
    "email": "hello@example.com",
    "first_name": "string",
    "last_name": "string",
    "avatar": "string",
    "state": "inactive",
    "positions": [
      "string"
    ],
    "phone": {
      "number": "string"
    },
    "address": {
      "street": "string",
      "street_end": "string",
      "zip_code": "string",
      "city": "string",
      "country": "string"
    },
    "birthdate": "2025-05-04T09:42:00Z",
    "gender": "H",
    "terms_of_sale_signature": "2025-05-04T09:42:00Z",
    "createdAt": "2025-05-04T09:42:00Z",
    "updatedAt": "2025-05-04T09:42:00Z"
  }
}