API changelog
Download source
  • JSON OpenAPI specification
  • YAML OpenAPI specification
Cosmily logo

Topics

  • Introduction
  • Authentication

Endpoints

  • Analyze
    • POST /analyze/ingredient_list POST
    • GET /analyze/ingredient_groups GET
    • GET /analyze/ingredient_group GET
    • PATCH /analyze/claim/:token PATCH
    • GET /analyze/shared/:token GET
    • GET /analyze/:token/ingredient_feelings GET
    • GET /analyze/:token/categorize GET
    • GET /analyze/:token/missing_ingredients GET
    • GET /analyze/:token/personalize GET
    • GET /analyze/:token/skin_calc GET
    • GET /analyze/:token/rules GET
    • GET /analyze/:token/similar_products GET
    • POST /analyze/effects POST
    • POST /analyze/extract_label POST
  • Articles
    • GET /articles GET
    • GET /articles/:id_or_alias GET
  • Brands
    • GET /brands GET
    • GET /brands/:id_or_alias GET
    • PATCH /brands/:id_or_alias PATCH
    • GET /brands/:id_or_alias/products GET
    • PATCH /brands/:id_or_alias/transfer_ownership PATCH
  • Breadcrumbs
    • GET /breadcrumbs/product_category/:id_or_alias GET
    • GET /breadcrumbs/product/:id_or_alias GET
  • Buy
    • GET /buy/:id_or_alias/amzn GET
    • GET /buy/:id_or_alias GET
  • Census
    • GET /census/countries GET
  • Compare
    • POST /compare/expand POST
    • POST /compare/share POST
    • GET /compare/shared/:token GET
  • Contests
    • GET /contests/most_liked_routine/leaderboard/previous_week GET
    • GET /contests/most_liked_routine/leaderboard GET
    • GET /contests/most_liked_routine/leaderboard/:week_number GET
    • GET /contests/current_week GET
    • GET /contests/previous_week GET
    • GET /contests/:week_number GET
  • Facets
    • GET /facets GET
    • GET /facets/:id GET
    • PATCH /facets/update/:id PATCH
    • POST /facets/create POST
  • Featured
    • GET /featured GET
  • Following
    • GET /following/ingredient_feelings/negative GET
    • GET /following/ingredient_feelings/positive GET
  • Ingredient feelings
    • GET /ingredient_feelings/:id GET
  • Ingredient matchers
    • GET /:token/suggested_category GET
    • POST /:token POST
  • Ingredient opinions
    • GET /ingredient_opinions/:opinion_uuid/current GET
    • GET /ingredient_opinions/:opinion_uuid/history GET
    • GET /ingredient_opinions/entry/:entry_uuid GET
    • GET /ingredient_opinions/hashtag/:hashtag GET
    • POST /ingredient_opinions/create POST
    • DELETE /ingredient_opinions/:opinion_uuid DELETE
    • PATCH /ingredient_opinions/:opinion_uuid PATCH
  • Ingredients
    • GET /ingredients GET
    • GET /ingredients/:id_or_alias GET
    • GET /ingredients/:id_or_alias/products GET
    • GET /ingredients/:id_or_alias/endorsed_opinions GET
    • GET /ingredients/:id_or_alias/featured_opinion GET
    • PUT /ingredients/:id_or_alias/feeling/positive PUT
    • PUT /ingredients/:id_or_alias/feeling/negative PUT
    • DELETE /ingredients/:id_or_alias/feeling DELETE
    • POST /ingredients/:id_or_alias/submit_feedback POST
    • POST /ingredients/create POST
  • My
    • GET /my/ingredient_analyses GET
    • GET /my/user GET
    • PATCH /my/user/supergroups PATCH
    • GET /my/favorite_products GET
    • GET /my/favorite_routines GET
    • GET /my/followed_by GET
    • GET /my/following GET
    • GET /my/ingredient_feelings GET
    • GET /my/ingredient_feelings/negative GET
    • GET /my/ingredient_feelings/positive GET
    • GET /my/ingredient_feelings/:ingredient_id_or_alias GET
    • GET /my/ingredient_opinions GET
    • GET /my/ingredient_opinions/:ingredient_id_or_alias GET
    • GET /my/ingredient_feedback GET
    • GET /my/ingredient_feedback/:ingredient_id_or_alias GET
    • GET /my/product_drafts/authored GET
    • GET /my/product_drafts/reviewed GET
    • GET /my/products GET
    • GET /my/product_pitches GET
    • GET /my/product_tutorials GET
    • GET /my/contests/current_week GET
    • GET /my/contests/previous_week GET
    • GET /my/routines GET
    • GET /my/current_routine_ids GET
    • GET /my/routine_requests GET
    • GET /my/compatibility/product/:id_or_alias GET
    • GET /my/intake_decision GET
    • PATCH /my/survey/active/intake_decision PATCH
    • GET /my/survey/answered GET
    • GET /my/survey/unanswered GET
    • POST /my/survey_answers POST
    • POST /my/survey_answers/reset POST
  • Product categories
    • GET /product_categories GET
    • GET /product_categories/:id_or_alias GET
    • GET /product_categories/:id_or_alias/best_in GET
    • GET /product_categories/:id_or_alias/products GET
  • Product drafts
    • POST /product_drafts/approve POST
    • GET /product_drafts GET
    • GET /product_drafts/:id GET
    • DELETE /product_drafts/:id DELETE
    • PATCH /product_drafts/:id/product_image PATCH
    • POST /product_drafts/auto_classify POST
    • POST /product_drafts/create POST
    • POST /product_drafts/update POST
  • Product pitches
    • POST /product_pitches/create POST
    • PATCH /product_pitches/:id/assign_affiliate PATCH
    • PATCH /product_pitches/:id/add_ingredient_opinion PATCH
    • PATCH /product_pitches/:id/remove_ingredient_opinion PATCH
    • GET /product_pitches/:id/ingredient_opinions GET
  • Product tutorials
    • GET /product_tutorials GET
    • POST /product_tutorials/create POST
    • GET /product_tutorials/:id GET
    • GET /product_tutorials/:id/product_tutorial_instructions GET
    • POST /product_tutorials/:id/product_tutorial_instructions/create POST
    • DELETE /product_tutorials/:id/product_tutorial_instructions/:instruction_id DELETE
    • GET /product_tutorials/:id/product_tutorial_warnings GET
    • POST /product_tutorials/:id/product_tutorial_warnings/create POST
    • DELETE /product_tutorials/:id/product_tutorial_warnings/:warning_id DELETE
    • PATCH /product_tutorials/:id/publish PATCH
    • PATCH /product_tutorials/:id/set_general_info PATCH
    • PATCH /product_tutorials/:id/set_media_url PATCH
    • PATCH /product_tutorials/:id/set_quantity PATCH
  • Products
    • GET /products GET
    • POST /products/create POST
    • GET /products/favorite_lookup GET
    • GET /products/recent GET
    • POST /products/search POST
    • GET /products/lookup GET
    • GET /products/:id_or_alias GET
    • DELETE /products/:id_or_alias/product_image DELETE
    • PATCH /products/:id_or_alias/product_image PATCH
    • GET /products/:id_or_alias/analysis GET
    • GET /products/:id_or_alias/effects GET
    • GET /products/:id_or_alias/similar GET
    • GET /products/:id_or_alias/top_routines GET
    • GET /products/:id_or_alias/top_users GET
    • POST /products/:id_or_alias/favorite POST
    • DELETE /products/:id_or_alias/favorite DELETE
    • GET /routines/:id/favorited_by GET
    • GET /products/:id_or_alias/routine_candidates GET
    • GET /products/:id_or_alias/product_tutorials GET
    • GET /products/:id_or_alias/product_tutorials/featured GET
    • PATCH /products/:id_or_alias/publish PATCH
    • PATCH /products/:id_or_alias/attest_brand PATCH
    • DELETE /products/:id DELETE
  • Routines
    • GET /routines GET
    • POST /routines/create POST
    • POST /routines/request POST
    • DELETE /routines/request/:id DELETE
    • GET /products/favorite_lookup GET
    • GET /routines/:id GET
    • DELETE /routines/:id DELETE
    • GET /routines/:id/compatibility GET
    • GET /routines/:id/analyze/:token/compatibility GET
    • POST /routines/:id/favorite POST
    • DELETE /routines/:id/favorite DELETE
    • GET /routines/:id/favorited_by GET
    • PATCH /routines/:id/publish PATCH
    • PATCH /routines/:id/update PATCH
    • PATCH /routines/:id/update_routine_step_order PATCH
    • PATCH /routines/:id/add_routine_step PATCH
    • GET /routines/:id/product_pitches GET
    • GET /routines/:id/detailed_summary GET
    • GET /routines/:id/routine_steps GET
    • PATCH /routines/:id/routine_steps/:routine_step_id/assign_pitch PATCH
    • PATCH /routines/:id/routine_steps/:routine_step_id/assign_product PATCH
    • PATCH /routines/:id/routine_steps/:routine_step_id/assign_product_tutorial PATCH
  • Rownd
    • POST /rownd POST
  • Sitemap
    • GET /sitemap/comparisons GET
    • GET /sitemap/ingredients GET
    • GET /sitemap/products GET
  • Stats
    • POST /stats/analyze/created_per_day POST
    • POST /stats/ingredient_opinions/created_per_day POST
    • POST /stats/product_buy_clicks/created_per_day POST
    • POST /stats/product_tutorials/created_per_day POST
    • POST /stats/products/created_per_day POST
    • POST /stats/routines/created_per_day POST
    • POST /stats/users/created_per_day POST
  • Unit of measurements
    • GET /unit_of_measurements GET
    • POST /unit_of_measurements/create POST
    • GET /unit_of_measurements/:id GET
  • User relationships
    • GET /user_relationships/lookup GET
  • Users
    • GET /users GET
    • GET /users/:id_or_username GET
    • GET /user/:id_or_username/favorite_products GET
    • GET /user/:id_or_username/favorite_routines GET
    • GET /users/:id_or_username/ingredient_feelings GET
    • GET /users/:id_or_username/ingredient_feelings/:ingredient_id_or_alias GET
    • GET /users/:id_or_username/ingredient_opinions GET
    • GET /users/:id_or_username/product_tutorials GET
    • GET /users/:id_or_username/routines GET
    • PATCH /users/:id/identity/email PATCH
    • PATCH /users/:id/identity/confirm_email_change PATCH
    • PATCH /users/:id/identity/username PATCH
    • GET /users/:id/skin_profile/survey GET
    • GET /users/:id/skin_profile/unanswered GET
    • GET /users/experts GET
    • GET /users/lookup GET
    • GET /users/:id/brands GET
    • POST /users/:id/follow POST
    • GET /users/:id/followed_by GET
    • GET /users/:id/following GET
    • DELETE /users/:id/unfollow DELETE
    • PATCH /users/:id/profile PATCH
    • DELETE /users/:id/profile_picture DELETE
    • PATCH /users/:id/profile_picture PATCH
    • PATCH /users/:id/skin_profile PATCH
    • GET /users/:id/resend_verification_email GET
    • PATCH /users/:id/user_type PATCH
    • POST /users/send_invite_link POST
Powered by Bump.sh
API changelog
Download source
  • JSON OpenAPI specification
  • YAML OpenAPI specification
Cosmily logo

POST /users/send_invite_link

POST /users/send_invite_link

Creates a user and sends account information to email

Body Required

  • email string Required

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
  • 400

    Bad Request

  • 401

    Authorization information is missing or invalid.

  • 422

    Unprocessable Entity

  • 500

    Server Error

POST /users/send_invite_link
curl \
 -X POST https://api.cosmily.com/api/v1/users/send_invite_link \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"email":"joe@cosmily.com"}'
Request example
{
  "email": "joe@cosmily.com"
}
Request examples
{
  "email": "joe@cosmily.com"
}
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
  }
}
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
  }
}