---
title: "User login"
method: POST
path: "/users/login"
tags: ["Users"]
---

# User login

`POST /users/login`

## Request body

- LoginUser
  - `username` string, string — Username of the user.
  - `password` string, string — Password of the user.

## Response `200`

User loggedin successfully

- User
  - `user_type_id` integer — User Types
  - `id` integer
  - `created_at` string
  - `updated_at` string
  - `role_id` integer
  - `username` string
  - `email` string
  - `password` string
  - `provider_id` integer
  - `first_name` string
  - `last_name` string
  - `gender_id` integer
  - `dob` string, date
  - `about_me` string
  - `address` string
  - `address1` string
  - `city_id` integer
  - `state_id` integer
  - `country_id` integer
  - `zip_code` string
  - `latitude` number, float
  - `longitude` number, float
  - `phone` string
  - `mobile` string
  - `available_wallet_amount` number, float
  - `last_login_ip_id` string
  - `last_logged_in_time` string
  - `is_active` integer
  - `is_email_confirmed` integer
  - `is_agree_terms_conditions` integer
  - `is_subscribed` integer

## Other responses

- `default` — Unexpected error

---

[API](https://skmtc.net/agriya/apis/ofos-api-endpoints.md) · [All operations](https://skmtc.net/agriya/apis/ofos-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agriya/ofos-api-endpoints/revisions/8db13a44d758/schema)
