Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Login

The /login endpoint must be called with the credentials (username (username) and password (password)) that you normally use to enter DeepLoupe:

1.1. Request example:

curl --location --request POST 'deeploupe-sandbox.betternfaster.com/login/' \
--header 'Content-Type: application/json' \
--header 'Accept-Language: en' \
--data-raw '{
    "username":"my_deeploupe_user",
    "password":"pass123"
}'

1.2. Successful response example (Response HTTP Status Code: 200):

{
    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxMzMxLCJ1c2VybmFtZSI6ImlndWFsZXRfZGV2IiwidXNlcl90eXBlIjoiYWxsIiwiZW1haWwiOiJpZ3VhbGVDASHhdsalkdhsahDASDHSAHLasdlsal33mF1bHQiLCJpYXQiOjE3MDY3MDk3NzEsImV4cCI6MTcwNjcxNTc3MSwidXNlcl92ZXJpZmljYXRpb25fbGV2ZWwiOjAsImFwcGxpY2F0aW9uX3ZlcmlmaWNhdGlvbl9sZXZlbCI6MH0.X4agaKLgxqc0zr9Xid3pw28BDKWtcIZAErO0JWUiVpY",
    "user_info": {
        "user_id": 133321,
        "username": "my_deeploupe_user",
        "user_type": "all",
        "email": "my_deeploupe_user@betternfaster.com",
        "roles": [
            7
        ],
        "application": "depuration_service",
        "active": true,
        "core_user": null,
        "department_id": null,
        "bbk_branch_id": null,
        "bbk_branch_name": null,
        "is_bbk_branch_manager": false,
        "account_officer_code": null,
        "company": "default",
        "iat": 1706709771,
        "exp": 1706715771,
        "user_verification_level": 0,
        "application_verification_level": 0,
        "institution": 132
    },
    "institution_info": {
        "show_summary": true,
        "number_of_query": 30,
        "max_request": 50,
        "remaining_queries": 20,
        "institution_name": "Institución de Ejemplo",
        "stripe_customer_id": "cus_O4xOYRGdksaklwAvusRsr"
    },
    "user_credential_info": {
        "fullname": "Usuario Ejemplo",
        "phone": "412293002893",
        "user_credential_id": 1393931,
        "subscription_users_quantity": 20,
        "first_user": false,
        "preferred_language": "es"
    },
    "subscription": 29331,
    "plan": 11,
    "stripe_subscription_id": "sub_1OG5jjffMYLxyal938N3y87N",
    "subscription_status": "active",
    "subscription_ads": "active",
    "document_company_conf": null
}

The token key represents the Token with the credentials to be used to identify your user in the rest of the calls.

1.3. Unsuccessful response example:

1.3.1. Wrong password or username (Response HTTP Status Code: 400):

{
    "message": "Invalid username or password"
}