GET /my/user

GET /my/user

Returns the profile of the logged in user

Responses

  • 200

    successful operation

    Hide response attribute Show response attribute object
    • data object
      Hide data attributes Show data attributes object
      • id integer
      • auth0_id string
      • username string
      • email string
      • user_type string
      • followed_by_count integer
      • following_count integer
      • supergroups array[string]
      • last_active string
      • followed_by_me boolean
      • survey_completed boolean
      • profile object
        Hide profile attributes Show profile attributes object
        • id integer
        • user_id integer
        • full_name string
        • tagline string
        • about_me string
        • instagram_handle string
        • twitter_handle string
        • tiktok_handle string
        • instagram_url string
        • twitter_url string
        • tiktok_url string
        • profile_url string
        • website string
        • referrer_id integer
      • skin_profile object
        Hide skin_profile attributes Show skin_profile attributes object
        • id integer
        • user_id integer
        • complete boolean
        • gender string

          Values are male, female, or non_binary.

        • age_range string

          Values are 18_24, 25_34, 35_44, 45_54, or 55+.

        • climate string

          Values are continental, dry, polar, temperate, or tropical.

        • locale_density string

          Values are urban, suburban, or rural.

        • skin_types array[string]

          Values are balanced, dry, oily, sensitive, acnee_prone, rosacea, or allergenic.

        • skin_goals array[string]

          Values are acne_fighting, anti_aging, antioxidant, antiseptic, healing, moisturising, softening, soothing, uv_protecting, or whitening.

        • skin_concerns array[string]

          Values are alcohol, allergen, comedogenic_rating, fragrance, fungal_acne_feeding, gluten, paraben, peg, silicone, or sulfate.

        • regular_treatments array[string]

          Values are botox, dermal_fillers, facials, chemical_peels, laser_hair_removal, microdermabrasion, or pigmentation_removal.

        • routine_time_commitment string

          Values are short, medium, or long.

        • weekly_sun_exposure string

          Values are low, medium, or high.

        • weekly_workouts integer

          Minimum value is 0, maximum value is 7.

        • skin_reactivity integer

          Minimum value is 1, maximum value is 5.

        • skin_oilyness integer

          Minimum value is 1, maximum value is 5.

        • stress_level integer

          Minimum value is 1, maximum value is 5.

        • breakout_frequency string

          Values are never, rarely, sometimes, or often.

        • morning_skin_feel string

          Values are normal, oily, rough, or dry.

        • value_most_in_product string

          Values are affordability, clean_beauty, vegan_beauty, or quick_results.

        • updated_at string(DateTime)
      • profile_picture object
        Hide profile_picture attributes Show profile_picture attributes object
        • id integer
        • user_id integer
        • image string
        • url string
  • 500

    Server Error

  • 400

    Bad Request

  • 401

    Authorization information is missing or invalid.

  • 403

    Authorization forbidden

GET /my/user
curl \
 -X GET https://api.cosmily.com/api/v1/my/user \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": {
    "id": 42,
    "auth0_id": "string",
    "username": "string",
    "email": "string",
    "user_type": "string",
    "followed_by_count": 42,
    "following_count": 42,
    "supergroups": [
      "string"
    ],
    "last_active": "string",
    "followed_by_me": true,
    "survey_completed": true,
    "profile": {
      "id": 122,
      "user_id": 122,
      "full_name": "Jane Doe",
      "tagline": "Skincare lover from NYC.",
      "about_me": "Native New Yorker Janehn Doe is a NYC & MIAMI based esthetician, known for her microcurrent facials.  Her clients include some of the industry's top editors and models, and she's been featured in Vogue, Elle, Harper’s Bazaar, and countless other publications. ",
      "instagram_handle": "jane_doe122",
      "twitter_handle": "jane_doe122",
      "tiktok_handle": "jane_doe122",
      "instagram_url": "https://instagram.com/jane_doe122",
      "twitter_url": "https://twitter.com/jane_doe122",
      "tiktok_url": "https://instagram.com/jane_doe122",
      "profile_url": "https://cosmily.com/u/jane_doe",
      "website": "https://janedoe.com/",
      "referrer_id": 42
    },
    "skin_profile": {
      "id": 42,
      "user_id": 42,
      "complete": true,
      "gender": "female",
      "age_range": "25_34",
      "climate": "temperate",
      "locale_density": "suburban",
      "skin_types": [
        "oily",
        "rosacea"
      ],
      "skin_goals": [
        "anti_aging",
        "softening",
        "uv_protecting"
      ],
      "skin_concerns": [
        "allergen",
        "fragrance",
        "sulfate"
      ],
      "regular_treatments": [
        "botox",
        "laser_hair_removal",
        "facials"
      ],
      "routine_time_commitment": "medium",
      "weekly_sun_exposure": "medium",
      "weekly_workouts": 42,
      "skin_reactivity": 42,
      "skin_oilyness": 42,
      "stress_level": 42,
      "breakout_frequency": "sometimes",
      "morning_skin_feel": "oily",
      "value_most_in_product": "affordability",
      "updated_at": "2022-07-27T22:29:03.152Z"
    },
    "profile_picture": {
      "id": 42,
      "user_id": 42,
      "image": "string",
      "url": "string"
    }
  }
}
Response examples (200)
{
  "data": {
    "id": 42,
    "auth0_id": "string",
    "username": "string",
    "email": "string",
    "user_type": "string",
    "followed_by_count": 42,
    "following_count": 42,
    "supergroups": [
      "string"
    ],
    "last_active": "string",
    "followed_by_me": true,
    "survey_completed": true,
    "profile": {
      "id": 122,
      "user_id": 122,
      "full_name": "Jane Doe",
      "tagline": "Skincare lover from NYC.",
      "about_me": "Native New Yorker Janehn Doe is a NYC & MIAMI based esthetician, known for her microcurrent facials.  Her clients include some of the industry's top editors and models, and she's been featured in Vogue, Elle, Harper’s Bazaar, and countless other publications. ",
      "instagram_handle": "jane_doe122",
      "twitter_handle": "jane_doe122",
      "tiktok_handle": "jane_doe122",
      "instagram_url": "https://instagram.com/jane_doe122",
      "twitter_url": "https://twitter.com/jane_doe122",
      "tiktok_url": "https://instagram.com/jane_doe122",
      "profile_url": "https://cosmily.com/u/jane_doe",
      "website": "https://janedoe.com/",
      "referrer_id": 42
    },
    "skin_profile": {
      "id": 42,
      "user_id": 42,
      "complete": true,
      "gender": "female",
      "age_range": "25_34",
      "climate": "temperate",
      "locale_density": "suburban",
      "skin_types": [
        "oily",
        "rosacea"
      ],
      "skin_goals": [
        "anti_aging",
        "softening",
        "uv_protecting"
      ],
      "skin_concerns": [
        "allergen",
        "fragrance",
        "sulfate"
      ],
      "regular_treatments": [
        "botox",
        "laser_hair_removal",
        "facials"
      ],
      "routine_time_commitment": "medium",
      "weekly_sun_exposure": "medium",
      "weekly_workouts": 42,
      "skin_reactivity": 42,
      "skin_oilyness": 42,
      "stress_level": 42,
      "breakout_frequency": "sometimes",
      "morning_skin_feel": "oily",
      "value_most_in_product": "affordability",
      "updated_at": "2022-07-27T22:29:03.152Z"
    },
    "profile_picture": {
      "id": 42,
      "user_id": 42,
      "image": "string",
      "url": "string"
    }
  }
}