# Custom Authentication Via SMS

## API Endpoint:&#x20;

{{baseurl}}/api/v1/login-auth-app

### **Description:**

This API endpoint is used for user authentication within the application.

<figure><img src="https://3686328336-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd1Iq7THDAagTQzeC9rTN%2Fuploads%2FfKlDd99yPzYwuNqMCCpo%2Fimage.png?alt=media&#x26;token=aabd0b08-a7ef-4d58-a5c3-d672cdd66437" alt=""><figcaption></figcaption></figure>

### **Request Method:**

* POST

### **Request Body:**

* **country\_id**: The ID of the country where the user is located.
* **phone\_number**: The user's phone number for authentication.
* **language**: The preferred language of the user.

### **Response:**

```json
jsonCopy code{
    "status": true,
    "message": "User details",
    "data": {
        "user": {
            "id": 239,
            "name": "Shiju S",
            "phone": "+919633038429",
            "email": null,
            "avatar": null,
            "is_guest": null,
            "status": 1,
            "firebase_id": 239,
            "default_shipping_address": null,
            "default_billing_address": null,
            "country_id": 2,
            "lang_id": 0,
            "created_at": "2024-03-30T05:23:44.000000Z",
            "updated_at": "2024-03-30T05:50:18.000000Z",
            "deleted_at": null,
            "email_verified": 0,
            "email_token": 340976,
            "email_token_expire_at": "2024-03-30 11:03:54",
            "email_verified_at": null,
            "bearer_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiIzIiwianRpIjoiMGM5MjQ2ZmY4MWYwNGQ0OWU4M2YyYjZmZGU5YmYyNTNlMmUyYjY5YTVkYzU1NGE5NzQwMjVjZDJlMzg5Zj
```

<br>
