API
Brand Authentication

Brand Authentication

This API authenticates a brand and provide required settings to run our AR products in their system.

ParameterValue
URL/api/v1/brands/id-login
MethodPOST
Body Databrand_id

Example Curl

curl 'https://m.mirrar.com/api/v1/brands/id-login' \
  -H 'accept: */*' \
  -H 'accept-language: en-US,en;q=0.9' \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/x-www-form-urlencoded; charset=UTF-8' \
  -H 'pragma: no-cache' \
  -H 'priority: u=1, i' \
  -H 'sec-ch-ua: "Chromium";v="124", "Google Chrome";v="124", "Not-A.Brand";v="99"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "macOS"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: same-site' \
  --data-raw 'brand_id=your unique brand id'

Response

{
    "meta": {
        "code": 200,
        "message": "You have successfully logged in"
    },
    "data": {
        "uuid": "brand id",
        "name": "brand name",
        "max_design_count": 10000,
        "webar_status": 1,
        "instore_status": 1,
        "android_sdk_bundle": "",
        "ios_sdk_bundle": "",
        "webar_sdk_domain": "",
        "admin_status": 1,
        "warp_status": 1,
        "brand_type": "FINE",
        "design_count": 200,
        "logo_url": "https://mirrar.s3.ap-south-1.amazonaws.com/tryat-home/logo.png",
        "bucket_name": "brand bucket name",
        "has_subsidiary": 0,
        "instore_expires_at": "2100-01-01 00:00:00",
        "webar_expires_at": "2100-01-01 00:00:00",
        "warp_expires_at": "2100-01-01 00:00:00",
        "active_product_codes": {
            "Bracelets": {
                "items": [
                    "Bracelet_1",
                    "Bracelet_2",
                ],
                "type": "wrist"
            },
            "Earrings": {
                "items": [
                    "Earring_1",
                    "Earring_2",
                ],
                "type": "ear"
            },
            "Necklaces": {
                "items": [
                    "Necklace_1",
                    "Necklace_2",
                ],
                "type": "neck"
            },
            "Rings": {
                "items": [
                    "Ring_1",
                    "Ring_2",
                ],
                "type": "finger"
            },
            "Sets": {
                "items": [
                    "SET_1",
                    "SET_2",
                ],
                "type": "set"
            },
            "brand_filters": {
                "items": [
                    "calibration",
                    "collection",
                    "metal_type",
                    "sub_category",
                    "store_name",
                    "total_price",
                    "location",
                    "metal_purity_(in_kt)",
                    "metal_weight_(in_gms)"
                ],
                "type": "generic"
            },
            "config": {
                "items": [
                    "logo_url"
                ],
                "type": "generic"
            }
        },
        "disable_product_codes": {
            "Bracelets": {
                "items": [],
                "type": "wrist"
            },
            "Earrings": {
                "items": [
                    "Earring_2"
                ],
                "type": "ear"
            },
            "Necklaces": {
                "items": [
                    "Necklace_1"
                ],
                "type": "neck"
            },
            "brand_filters": {
                "items": [],
                "type": "generic"
            },
            "config": {
                "items": [],
                "type": "generic"
            },
        },
        "webar_ml_model": 1,
        "viewer_ml_model": 1,
        "whatsapp_number": "",
        "contact_number": "",
        "communication_email": "",
        "leads_email": "",
        "studio_mode": "https://mirrar.s3.ap-south-1.amazonaws.com/tryat-home/studio_mode.png",
        "gallery_mode": "https://mirrar.s3.ap-south-1.amazonaws.com/tryat-home/gallery_mode.png",
        "warp_desktop": "https://mirrar.s3.ap-south-1.amazonaws.com/tryat-home/warp_desktop.png",
        "warp_mobile": "https://mirrar.s3.ap-south-1.amazonaws.com/tryat-home/warp_mobile.png",
        "warp_table": "https://mirrar.s3.ap-south-1.amazonaws.com/tryat-home/warp_table.png",
        "industry": "jewellery",
        "default_screen": "camera",
        "primary_color": "#4f4f4f",
        "amplitude_id": null,
        "loading_text": null,
        "ui_components": "{\"ui_components\":{\"filters\":true,\"wishlist\":true,\"shopping_cart\":true,\"product_code\":true,\"loading_text\":\"Please wait, virtual try-on powered shopping experience loading!\",\"details_button\":true,\"share_message_title\":\"\",\"share_message_text\":\"\",\"inactive_mirrar\":0,\"experimentation_version\":\"\",\"categories_text\":true,\"necklace_stacking\":true,\"ring_stacking\":true,\"multiple_hand_models\":true,\"multiple_face_models\":true,\"camera_mode\":true,\"gallery_mode\":true,\"studio_mode\":true,\"profile_tab\":true,\"take_photo\":true,\"image_share_options\":true,\"user_options\":true,\"zoom_in_out\":true,\"change_photo\":true,\"show_logo\":true,\"save_user_photo\":true,\"survey_popup\":true,\"flipped_camera\":true,\"video_calling\":false,\"sort_field\":\"\",\"alternate_cart_flow\":false,\"comparison_mode\":true,\"customize_screen\":false,\"skintone_feature\":false,\"category_scroll_buttons\":true,\"visual_recommendation\":false,\"gender_based_model_load\":false,\"mail_captured_photo\":false,\"cart_single_product\":false,\"single_product\":false,\"hardcode_face_gallery_mode\":false,\"model_image_calibration\":null,\"makupJsonLoad\":false,\"photo_capture_machine_learning\":false,\"show_metric_breakdown_button\":false,\"default_camera_flip_hand\":false,\"apply_necklace_blur\":true,\"keep_picker_panel_expanded\":false}}",
        "gallery_mode_hand_images": "[\"galleryModeHandModel6.jpg\",\"galleryModeHandModel5.jpg\"]",
        "gallery_mode_face_images": [
            "https://mirrar.s3.ap-south-1.amazonaws.com/tryat-home/galleryModeFaceModel.jpg"
        ],
        "subdomain": "tryathome",
        "amplitude_secret": null,
        "subdomain_visibility": null,
        "post_event": "",
        "model_images": null
    }
}